infra/dev/README.md

16 lines
481 B
Markdown
Raw Normal View History

2020-11-11 11:32:29 +01:00
# only once
docker network create --subnet=172.172.0.0/16 silicone
docker build -t silicone:base .
# for each service to test
# create a container with static ip
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