From 1af7a22460dafe12f22f9b564d946f3d583f4cb0 Mon Sep 17 00:00:00 2001 From: startxfr Date: Sun, 6 Dec 2015 03:44:47 +0100 Subject: debuging images and improve startup display --- Services/nodejs/README.md | 4 ++-- Services/nodejs/docker-compose.yml | 2 +- Services/nodejs/run.sh | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) (limited to 'Services/nodejs') diff --git a/Services/nodejs/README.md b/Services/nodejs/README.md index 69a99d3..240b7b8 100644 --- a/Services/nodejs/README.md +++ b/Services/nodejs/README.md @@ -19,8 +19,8 @@ Could use various network protocol (like http, websocket, smtp, telnet) accordin ## Available flavours -* `:latest` : Fedora core 23 + NodeJS -* `:fc23` : Fedora core 23 + NodeJS +* `:latest` : Fedora core 23 + NodeJS v0.10.36 +* `:fc23` : Fedora core 23 + NodeJS v0.10.36 * `:fc22` : Fedora core 22 + NodeJS * `:fc21` : Fedora core 21 + NodeJS * `:centos7` : CentOS 7 + NodeJS diff --git a/Services/nodejs/docker-compose.yml b/Services/nodejs/docker-compose.yml index 48774e0..2ae018b 100644 --- a/Services/nodejs/docker-compose.yml +++ b/Services/nodejs/docker-compose.yml @@ -6,7 +6,7 @@ server: cpu_shares: 5 restart: "on-failure:2" ports: - - "8000:8000" + - "9221:8000" environment: CONTAINER_TYPE: "service" CONTAINER_SERVICE: "nodejs" diff --git a/Services/nodejs/run.sh b/Services/nodejs/run.sh index 366446c..1bd6a50 100644 --- a/Services/nodejs/run.sh +++ b/Services/nodejs/run.sh @@ -22,12 +22,12 @@ function display_container_nodejs_header { if [ -v CONTAINER_TYPE ]; then echo "| Type : $CONTAINER_TYPE" fi - if [ -v CONTAINER_INSTANCE ]; then - echo "| Instance : $CONTAINER_INSTANCE" - fi if [ -v CONTAINER_SERVICE ]; then echo "| Service : $CONTAINER_SERVICE" fi + if [ -v CONTAINER_INSTANCE ]; then + echo "| Instance : $CONTAINER_INSTANCE" + fi if [ -v APP_PATH ]; then echo "| App path : $APP_PATH" fi @@ -46,7 +46,7 @@ function begin_config { FILE_LIST=$(find $TMP_APP_PATH -maxdepth 1 -mindepth 1 -printf "%f\n") for FILE in $FILE_LIST; do echo -n "adding $APP_PATH/$FILE" - mv -f $TMP_APP_PATH/$FILE $APP_PATH/ + cp -r $TMP_APP_PATH/$FILE $APP_PATH/ echo " DONE" done fi -- cgit v1.2.3