Please, go to "env" folder and follow Readme.md
Please, open Jenkins URL on localhost:8080, just for your convinient there is no need to authentificate, however, you can setup your first admin user yourself while issuing Docker command regarding Jenkins
- Run CI job
- Run CD job
docker exec cclient /bin/sh -c "echo '{\"service\": {\"name\": \"app\", \"tags\": [\"go\"], \"port\": 5000}}' >> /consul/config/app.json"
docker exec cclient consul reload
dig @127.0.0.1 -p 8600 app.service.consul
curl @127.0.0.1 -p 8600 app.service.consul/get_value/first-key
5
curl @127.0.0.1 -p 8600 app.service.consul/set_value?key=first-key&value=first-value
Success