From 4894cdbf5a22dffc11844805f75b971e2221871d Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Fri, 17 Nov 2017 15:37:36 -0500 Subject: Use yum update; Disable DNS lookup in SSHD; Disable conda auto-update; Add git; Start bash by default --- Dockerfile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9ee58b3..0f6bc5d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -28,7 +28,7 @@ ENV MC_VERSION=${MC_VERSION} \ CONDA_PACKAGES=${CONDA_PACKAGES} # Toolchain -RUN yum install -y \ +RUN yum update -y && yum install -y \ openssh-server \ curl \ wget \ @@ -51,7 +51,8 @@ RUN yum install -y \ # SSH Server configuration # Create 'jenkins' user -RUN ssh-keygen -f /etc/ssh/ssh_host_rsa_key -N '' -t rsa \ +RUN sed -i 's|#UseDNS.*|UseDNS no|' /etc/ssh/sshd_config \ + && ssh-keygen -f /etc/ssh/ssh_host_rsa_key -N '' -t rsa \ && ssh-keygen -f /etc/ssh/ssh_host_dsa_key -N '' -t dsa \ && groupadd jenkins \ && useradd -g jenkins -m -d $HOME -s /bin/bash jenkins \ @@ -66,9 +67,11 @@ RUN curl -q -O ${MC_URL}/${MC_INSTALLER} \ # Configure Conda # Reset permissions ENV PATH "${MC_PATH}/bin:${PATH}" -RUN conda install --yes --quiet \ +RUN conda config --set auto_update_conda false \ + && conda install --yes --quiet \ conda=${CONDA_VERSION} \ conda-build=${CONDA_BUILD_VERSION} \ + git \ ${CONDA_PACKAGES} \ && chown -R jenkins: ${OPT} ${HOME} @@ -76,5 +79,4 @@ WORKDIR ${HOME} EXPOSE 22 -CMD ["/usr/sbin/sshd", "-D"] - +CMD ["/bin/bash"] -- cgit