GeoSales-Evolution / self-deployable-docker

Docker repo capable of deploying itself... or something like that
MIT License
2 stars 2 forks source link

Feat/respawn complete #15

Closed jeffque closed 1 year ago

jeffque commented 1 year ago

Closes #2


How to test

This assumes user capable of running docker commands.

Open 2 distinct terminals, A and B.

Terminal A:

make
make -C ouroborus

The first command will build both images, both are needed indeed. The second command will start ouroborus server.

Terminal B (must exec after both Terminal A commands):

curl localhost:8000/respawn -X PUT
for a in 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5; do
  docker ps
  echo
  sleep 1
done

Curl will send a message for ouroborus respawn itself. Than, one can follow what is happening by the repetition of docker ps command.