We only need the welcome app image

This commit is contained in:
kexkey
2019-04-04 09:10:27 -04:00
committed by kexkey
parent c3932fea71
commit b50da5f051
4 changed files with 32 additions and 3 deletions

14
dist/apps/welcome/config.toml vendored Normal file
View File

@@ -0,0 +1,14 @@
[server]
listen = "0.0.0.0:8080"
index_template = "templates/index.html"
path_prefix = "/welcome"
[gatekeeper]
status_url = "https://gatekeeper/v0/getblockchaininfo"
installation_info_url = "https://gatekeeper/s/stats/installation.json"
config_archive_url = "https://gatekeeper/s/stats/config.7z"
certs_url = "https://gatekeeper/s/stats/client.7z"
key_label = "000"
key_file = "/data/keys.properties"
cert_file = "/data/cert.pem"

View File

@@ -6,7 +6,9 @@ services:
- "TRACING=1"
image: cyphernode_welcome
volumes:
- "~/cyphernode_welcome/data:/data"
- "$GATEKEEPER_DATAPATH/certs/cert.pem:/data/cert.pem"
- "$GATEKEEPER_DATAPATH/keys.properties:/data/keys.properties"
- "$APP_SCRIPT_PATH/config.toml:/data/config.toml"
networks:
- cyphernodeappsnet
restart: always

View File

@@ -3,6 +3,14 @@ echo "SCRIPT_NAME: $SCRIPT_NAME"
echo "SHARED_HTPASSWD_PATH: $SHARED_HTPASSWD_PATH"
echo "APP_SCRIPT_PATH: $APP_SCRIPT_PATH"
echo "APP_START_SCRIPT_PATH: $APP_START_SCRIPT_PATH"
echo "GATEKEEPER_DATAPATH: $GATEKEEPER_DATAPATH"
export SHARED_HTPASSWD_PATH
docker-compose -f $APP_SCRIPT_PATH/docker-compose.yaml up -d --remove-orphans
export GATEKEEPER_DATAPATH
export APP_SCRIPT_PATH
if [ "$DOCKER_MODE" == "swarm" ]; then
docker stack deploy -c $APP_SCRIPT_PATH/docker-compose.yaml cn_welcome
elif [ "$DOCKER_MODE" == "compose" ]; then
docker-compose -f $APP_SCRIPT_PATH/docker-compose.yaml up -d --remove-orphans
fi

View File

@@ -3,5 +3,10 @@ echo "SCRIPT_NAME: $SCRIPT_NAME"
echo "SHARED_HTPASSWD_PATH: $SHARED_HTPASSWD_PATH"
echo "APP_SCRIPT_PATH: $APP_SCRIPT_PATH"
echo "APP_START_SCRIPT_PATH: $APP_START_SCRIPT_PATH"
echo "GATEKEEPER_DATAPATH: $GATEKEEPER_DATAPATH"
docker-compose -f $APP_SCRIPT_PATH/docker-compose.yaml down
if [ "$DOCKER_MODE" == "swarm" ]; then
docker stack rm cn_welcome
elif [ "$DOCKER_MODE" == "compose" ]; then
docker-compose -f $APP_SCRIPT_PATH/docker-compose.yaml down
fi