Update fix Add name to docker-compose.yaml

This commit is contained in:
BHodl
2022-03-22 21:02:25 -04:00
parent 0fd7ea955b
commit 1b2f53f237
3 changed files with 4 additions and 4 deletions

View File

@@ -1,5 +1,7 @@
version: "3"
name: cyphernode
services:
##########################

View File

@@ -59,10 +59,9 @@ export USER=$(id -u <%= default_username %>):$(id -g <%= default_username %>)
<% } %>
current_path="$(cd "$(dirname "$0")" >/dev/null && pwd)"
dist_dir=${current_path##/*/}
# Let's make sure the container readyness files are deleted before starting the stack
docker run --rm -v ${dist_dir}_container_monitor:/container_monitor alpine sh -c 'rm -f /container_monitor/*_ready'
docker run --rm -v cyphernode_container_monitor:/container_monitor alpine sh -c 'rm -f /container_monitor/*_ready'
<% if (docker_mode == 'swarm') { %>
docker stack deploy -c $current_path/docker-compose.yaml cyphernode

View File

@@ -52,13 +52,12 @@ export USER=$(id -u <%= default_username %>):$(id -g <%= default_username %>)
<% } %>
current_path="$(cd "$(dirname "$0")" >/dev/null && pwd)"
dist_dir=${current_path##/*/}
# Will test if Cyphernode is fully up and running...
docker run --rm -it -v $current_path/testfeatures.sh:/testfeatures.sh \
-v <%= gatekeeper_datapath %>:/gatekeeper \
-v $current_path:/dist \
-v ${dist_dir}_container_monitor:/container_monitor:ro \
-v cyphernode_container_monitor:/container_monitor:ro \
--network cyphernodenet eclipse-mosquitto:<%= mosquitto_version %> /testfeatures.sh
if [ -f $current_path/exitStatus.sh ]; then