Skip to content
Snippets Groups Projects
Commit ab35506a authored by Pierre Ozoux's avatar Pierre Ozoux
Browse files

Fixes Failing discovery

parent a74cdaa2
No related branches found
No related tags found
No related merge requests found
...@@ -14,7 +14,7 @@ BindsTo=static@%i.service ...@@ -14,7 +14,7 @@ BindsTo=static@%i.service
[Service] [Service]
# Start # Start
## Test whether service is accessible and then register useful information ## Test whether service is accessible and then register useful information
ExecStart=/bin/bash -euxc ' \ ExecStart=/bin/bash -c ' \
sleep 3; \ sleep 3; \
while true; do \ while true; do \
app=`echo %p | cut -d"-" -f1`; \ app=`echo %p | cut -d"-" -f1`; \
......
...@@ -14,7 +14,7 @@ BindsTo=static-git@%i.service ...@@ -14,7 +14,7 @@ BindsTo=static-git@%i.service
[Service] [Service]
# Start # Start
## Test whether service is accessible and then register useful information ## Test whether service is accessible and then register useful information
ExecStart=/bin/bash -euxc ' \ ExecStart=/bin/bash -c ' \
sleep 3; \ sleep 3; \
while true; do \ while true; do \
app=`echo %p | cut -d"-" -f1,2`; \ app=`echo %p | cut -d"-" -f1,2`; \
......
...@@ -14,8 +14,8 @@ BindsTo=wordpress@%i.service ...@@ -14,8 +14,8 @@ BindsTo=wordpress@%i.service
[Service] [Service]
# Start # Start
## Test whether service is accessible and then register useful information ## Test whether service is accessible and then register useful information
ExecStart=/bin/bash -euxc ' \ ExecStart=/bin/bash -c ' \
sleep 3; \ sleep 30; \
while true; do \ while true; do \
app=`echo %p | cut -d"-" -f1`; \ app=`echo %p | cut -d"-" -f1`; \
ip=`docker inspect --format \'{{.NetworkSettings.IPAddress}}\' $app-%i`; \ ip=`docker inspect --format \'{{.NetworkSettings.IPAddress}}\' $app-%i`; \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment