Skip to content

Commit

Permalink
[CI] enable ssh in docker image for dist test (dmlc#4432)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rhett-Ying authored Aug 18, 2022
1 parent e14860d commit d248e76
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ pipeline {
agent {
docker {
label "linux-cpu-node"
image "dgllib/dgl-ci-cpu:v220816"
image "dgllib/dgl-ci-cpu:ssh_v220818"
args "--shm-size=4gb"
alwaysPull true
}
Expand Down
7 changes: 6 additions & 1 deletion docker/Dockerfile.ci_cpu
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,9 @@ RUN ["/bin/bash", "-i", "-c", "conda env create -f /install/conda_env/tensorflow
COPY install/conda_env/mxnet_cpu.yml /install/conda_env/mxnet_cpu.yml
RUN ["/bin/bash", "-i", "-c", "conda env create -f /install/conda_env/mxnet_cpu.yml"]

ENV CONDA_ALWAYS_YES=
ENV CONDA_ALWAYS_YES=

# SSH
RUN ["/bin/bash", "-i", "-c", "ssh-keygen -f ~/.ssh/id_rsa -N ''"]
RUN ["/bin/bash", "-i", "-c", "cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys"]
ENTRYPOINT service ssh restart && bash
3 changes: 2 additions & 1 deletion docker/install/ubuntu_install_core.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
apt update && apt install -y --no-install-recommends --force-yes \
apt-utils git build-essential make wget unzip sudo \
libz-dev libxml2-dev libopenblas-dev libopencv-dev \
graphviz graphviz-dev libgraphviz-dev ca-certificates
graphviz graphviz-dev libgraphviz-dev ca-certificates \
systemd vim openssh-client openssh-server

0 comments on commit d248e76

Please sign in to comment.