infra/dev
2021-01-04 18:54:02 +01:00
..
Dockerfile ripulisti 2020-11-10 23:14:10 +01:00
README.md update README and dev documentation 2021-01-04 18:54:02 +01:00
Vagrantfile ripulisti 2020-11-10 23:14:10 +01:00

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.