Add rsync and git to build_docker_image too.

wip-fakessh-exit-status
David Wilson 7 years ago
parent e2d3ac9b6a
commit f04a503caa

@ -11,7 +11,7 @@ DOCKERFILE = r"""
FROM debian:stable FROM debian:stable
RUN apt-get update RUN apt-get update
RUN \ RUN \
apt-get install -y python2.7 openssh-server sudo && \ apt-get install -y python2.7 openssh-server sudo rsync git && \
apt-get clean apt-get clean
RUN \ RUN \
mkdir /var/run/sshd && \ mkdir /var/run/sshd && \
@ -27,7 +27,7 @@ RUN \
( echo 'has-sudo-nopw:y' | chpasswd; ) && \ ( echo 'has-sudo-nopw:y' | chpasswd; ) && \
mkdir ~has-sudo-pubkey/.ssh mkdir ~has-sudo-pubkey/.ssh
COPY data/docker/has-sudo-pubkey.key /home/has-sudo-pubkey/.ssh/authorized_keys COPY data/docker/has-sudo-pubkey.key.pub /home/has-sudo-pubkey/.ssh/authorized_keys
RUN \ RUN \
chown -R has-sudo-pubkey ~has-sudo-pubkey && \ chown -R has-sudo-pubkey ~has-sudo-pubkey && \
chmod -R go= ~has-sudo-pubkey chmod -R go= ~has-sudo-pubkey

Loading…
Cancel
Save