Skip to content

Commit

Permalink
Tradeoff: adding git
Browse files Browse the repository at this point in the history
Signed-off-by: Damien DUPORTAL <damien.duportal@gmail.com>
  • Loading branch information
dduportal committed Mar 15, 2017
1 parent 8bdbd58 commit 95c3323
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ RUN groupadd -g ${gid} ${group} \
# setup SSH server
RUN apt-get update \
&& apt-get install --no-install-recommends -y \
openssh-server \
openssh-server git \
&& apt-get clean
RUN sed -i 's/#PermitRootLogin.*/PermitRootLogin no/' /etc/ssh/sshd_config
RUN sed -i 's/#RSAAuthentication.*/RSAAuthentication yes/' /etc/ssh/sshd_config
Expand Down
4 changes: 3 additions & 1 deletion tests/tests.bats
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,13 @@ load keys
docker run -d --name "${SUT_CONTAINER}" -P $SUT_IMAGE "$PUBLIC_SSH_KEY"
}

@test "image has bash and java installed and in the PATH" {
@test "image has bash, git and java installed and in the PATH" {
docker exec "${SUT_CONTAINER}" which bash
docker exec "${SUT_CONTAINER}" bash --version
docker exec "${SUT_CONTAINER}" which java
docker exec "${SUT_CONTAINER}" java -version
docker exec "${SUT_CONTAINER}" which git
docker exec "${SUT_CONTAINER}" git --version
}

@test "slave container is running" {
Expand Down

0 comments on commit 95c3323

Please sign in to comment.