Skip to content

Commit

Permalink
Docker compose fix in case of retrying
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Hassine committed Jul 2, 2019
1 parent 48873f0 commit 33b61bc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions opencti-docker/integration/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ do
sleep 2
done

while ! nc -z opencti ${OPENCTI_PORT}; do
echo "Waiting OpenCTI GraphQL to launch..."
sleep 2
done

# Replace the token in the configuration
cd /opt/opencti/integration
cp config.yml.docker.sample config.yml.sample
Expand Down
5 changes: 5 additions & 0 deletions opencti-docker/worker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ do
sleep 2
done

while ! nc -z opencti ${OPENCTI_PORT}; do
echo "Waiting OpenCTI GraphQL to launch..."
sleep 2
done

# Replace the token in the configuration
cd /opt/opencti/worker
cp config.yml.docker.sample config.yml.sample
Expand Down

0 comments on commit 33b61bc

Please sign in to comment.