Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,16 @@ SSH.pm manages machines that accept SSH connection, they may be physical machine
Note that Linux is the priority here, as for now SSH.pm doesn't intend to support Windows, and does not guarantee compatibility with OS X, BSD, or another Unix-like opertating systems.

**But as soon as we get to alpha phase we *will* add support to other Unix-like systems**



## Build automation

Execute the build automation script:

`./build-images`

All Dockerfiles inside the `docker/` path will be built.

Note that all Dockerfiles should respect the follow pattern: `Dockerfile.$IMAGE_TAG`.

15 changes: 15 additions & 0 deletions build-images.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

DOCKER_ROOT=docker
DOCKER_FILES=$DOCKER_ROOT/*

for docker_file in $DOCKER_FILES
do
IMAGE_TAG=$(echo $docker_file | sed -e "s/docker\/Dockerfile\.//" )

echo "Building sshpm-test-server images..."
docker build -t sshpm-test-server:$IMAGE_TAG -f $docker_file $DOCKER_ROOT &


done

3 changes: 3 additions & 0 deletions docker/Dockerfile.ubuntu-1404
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ RUN mkdir /var/run/sshd
RUN echo 'root:test_password' | chpasswd
RUN sed -i 's/PermitRootLogin .*/PermitRootLogin yes/' /etc/ssh/sshd_config

# Install sudo
RUN apt-get install -y sudo

# SSH login fix. Otherwise user is kicked off after login
RUN sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd

Expand Down
3 changes: 3 additions & 0 deletions docker/Dockerfile.ubuntu-1604
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ RUN mkdir /var/run/sshd
RUN echo 'root:test_password' | chpasswd
RUN sed -i 's/PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config

# Install sudo
RUN apt-get install -y sudo

# SSH login fix. Otherwise user is kicked off after login
RUN sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd

Expand Down
3 changes: 3 additions & 0 deletions docker/Dockerfile.ubuntu-1610
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ RUN mkdir /var/run/sshd
RUN echo 'root:test_password' | chpasswd
RUN sed -i 's/PermitRootLogin .*/PermitRootLogin yes/' /etc/ssh/sshd_config

# Install sudo
RUN apt-get install -y sudo

# SSH login fix. Otherwise user is kicked off after login
RUN sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd

Expand Down
3 changes: 3 additions & 0 deletions docker/Dockerfile.ubuntu-1704
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ RUN mkdir /var/run/sshd
RUN echo 'root:test_password' | chpasswd
RUN sed -i 's/PermitRootLogin .*/PermitRootLogin yes/' /etc/ssh/sshd_config

# Install sudo
RUN apt-get install -y sudo

# SSH login fix. Otherwise user is kicked off after login
RUN sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd

Expand Down