Skip to content
Snippets Groups Projects
Commit 39a0f65b authored by Wouter Deconinck's avatar Wouter Deconinck
Browse files

fix: install correct mc binary for arm64

parent 2f2070d8
No related branches found
No related tags found
1 merge request!572fix: install correct mc binary for arm64
...@@ -188,9 +188,18 @@ COPY profile.d/z11_jug_env.sh /etc/profile.d ...@@ -188,9 +188,18 @@ COPY profile.d/z11_jug_env.sh /etc/profile.d
COPY singularity.d /.singularity.d COPY singularity.d /.singularity.d
## Add minio client into /usr/local/bin ## Add minio client into /usr/local/bin
## FIXME: This should download .../linux-arm64/mc for arm64. ADD https://dl.min.io/client/mc/release/linux-amd64/mc /usr/local/bin/mc-amd64
ADD https://dl.min.io/client/mc/release/linux-amd64/mc /usr/local/bin ADD https://dl.min.io/client/mc/release/linux-arm64/mc /usr/local/bin/mc-arm64
RUN chmod a+x /usr/local/bin/mc RUN declare -A target=( \
["linux/amd64"]="amd64" \
["linux/arm64"]="arm64" \
) \
&& mv /usr/local/bin/mc-${target[${TARGETPLATFORM}]} /usr/local/bin/mc \
&& chmod a+x /usr/local/bin/mc \
&& unset target[${TARGETPLATFORM}] \
&& for t in ${target[*]} ; do \
rm /usr/local/bin/mc-${t} ; \
done
## ======================================================================================== ## ========================================================================================
## STAGE 3 ## STAGE 3
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment