|
@ -37,7 +37,7 @@ EOF |
|
|
# PACKAGES enabled ths with apt-get update && apt-get $APTPARAM install -y openssh-server $PACKAGES in in RUN export DEBIAN_FRONTEND=noninteractive |
|
|
# PACKAGES enabled ths with apt-get update && apt-get $APTPARAM install -y openssh-server $PACKAGES in in RUN export DEBIAN_FRONTEND=noninteractive |
|
|
APTPARAM=" --no-install-recommends " |
|
|
APTPARAM=" --no-install-recommends " |
|
|
IMAGE_local="microservice-numpy" |
|
|
IMAGE_local="microservice-numpy" |
|
|
HYBRID_NETWORK="swarmlab-numpy" |
|
|
HYBRID_NETWORK="microservice-numpy" |
|
|
# dont edit |
|
|
# dont edit |
|
|
#IMAGE_origin="hub.swarmlab.io:5480/hybrid-numpy:latest" |
|
|
#IMAGE_origin="hub.swarmlab.io:5480/hybrid-numpy:latest" |
|
|
IMAGE_origin="hub.swarmlab.io:5480/hubrid-numpyslim:latest" |
|
|
IMAGE_origin="hub.swarmlab.io:5480/hubrid-numpyslim:latest" |
|
@ -113,6 +113,12 @@ fi |
|
|
|
|
|
|
|
|
create_dockerfile () |
|
|
create_dockerfile () |
|
|
{ |
|
|
{ |
|
|
|
|
|
docker pull $IMAGE_origin << ANSWERS |
|
|
|
|
|
yes |
|
|
|
|
|
yes |
|
|
|
|
|
yes |
|
|
|
|
|
ANSWERS |
|
|
|
|
|
|
|
|
. $Wdir/ROOT_PASSWORD |
|
|
. $Wdir/ROOT_PASSWORD |
|
|
if [ -d "$Wdir/project" ]; then |
|
|
if [ -d "$Wdir/project" ]; then |
|
|
# ----------------------------------------------- |
|
|
# ----------------------------------------------- |
|
@ -188,6 +194,12 @@ fi |
|
|
create_project () |
|
|
create_project () |
|
|
{ |
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
docker pull $IMAGE_origin << ANSWERS |
|
|
|
|
|
yes |
|
|
|
|
|
yes |
|
|
|
|
|
yes |
|
|
|
|
|
ANSWERS |
|
|
|
|
|
|
|
|
if [ "$Wdir" == "$HOME" ]; then |
|
|
if [ "$Wdir" == "$HOME" ]; then |
|
|
echo"" |
|
|
echo"" |
|
|
echo "You are in Your Home directory" |
|
|
echo "You are in Your Home directory" |
|
@ -470,7 +482,6 @@ up_master () |
|
|
#docker-compose up --force-recreate -d masterservice |
|
|
#docker-compose up --force-recreate -d masterservice |
|
|
|
|
|
|
|
|
docker-compose rm -f -s -v |
|
|
docker-compose rm -f -s -v |
|
|
docker pull $IMAGE_origin |
|
|
|
|
|
docker-compose up --build --remove-orphans -d masterservice << ANSWERS |
|
|
docker-compose up --build --remove-orphans -d masterservice << ANSWERS |
|
|
yes |
|
|
yes |
|
|
yes |
|
|
yes |
|
|