les ee97b7acc1 update README and dev documentation 3 years ago
..
Dockerfile 73f3a19cc5 ripulisti 3 years ago
README.md ee97b7acc1 update README and dev documentation 3 years ago
Vagrantfile 73f3a19cc5 ripulisti 3 years ago

README.md

Create a subnet for our test and build the image (debian stable-slim with openssh server and python3 -> ansible dependencies)

docker network create --subnet=172.172.0.0/16 silicone
docker build -t silicone:base .

Create a container with static ip for each service to test (e.g. etherpad here)

docker run --name etherpad -d --net silicone --ip 172.172.0.2 -it silicone:base

Copy your ssh key

docker cp ~/.ssh/id_rsa.pub etherpad:/root/.ssh/authorized_keys
docker exec -it etherpad chown root.root /root/.ssh/authorized_keys

Then you can go with ansible using 172.172.0.2 as your host inside inventory.