Skip to content

Commit

Permalink
Update ngen-related images to have mc client.
Browse files Browse the repository at this point in the history
Making MinIO CLI client available within ngen worker image and
derivatives (e.g., calibration worker), though without a pre-configured
alias for connected to the object store service.
  • Loading branch information
robertbartel committed Aug 6, 2024
1 parent e7b2391 commit cd11a7f
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions docker/main/ngen/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -908,8 +908,16 @@ COPY --chown=${USER} --from=build_bmi_sac_sma /dmod/ /dmod/
COPY --chown=${USER} --from=build_bmi_snow_17 /dmod/ /dmod/

USER root
# Update path and make sure dataset directory is there
RUN echo "export PATH=${PATH}" >> /etc/profile \
# TODO: (later) consider something like this in the future (at least optionally) when downloading the mc client below:
# ARG MINIO_CLIENT_RELEASE="RELEASE.2024-07-08T20-59-24Z"
# ...
# https://dl.min.io/client/mc/release/linux-amd64/archive/mc.${MINIO_CLIENT_RELEASE}

# Setup minio client; also update path and make sure dataset directory is there
RUN curl -L -o /dmod/bin/mc https://dl.min.io/client/mc/release/linux-amd64/mc \
&& chmod +x /dmod/bin/mc \
&& mkdir /dmod/.mc \
&& echo "export PATH=${PATH}" >> /etc/profile \
&& sed -i "s/PasswordAuthentication yes/#PasswordAuthentication yes/g" /etc/ssh/sshd_config \
&& sed -i "s/PermitRootLogin yes/PermitRootLogin no/g" /etc/ssh/sshd_config \
&& sed -i "s/#ClientAliveInterval.*/ClientAliveInterval 60/" /etc/ssh/sshd_config \
Expand Down

0 comments on commit cd11a7f

Please sign in to comment.