|
@ -151,6 +151,7 @@ if [ -d "$Wdir/project" ]; then |
|
|
|
|
|
|
|
|
WORKDIR /home/docker/project |
|
|
WORKDIR /home/docker/project |
|
|
COPY .vimrc /home/docker |
|
|
COPY .vimrc /home/docker |
|
|
|
|
|
EXPOSE 3787 |
|
|
USER docker |
|
|
USER docker |
|
|
EOF |
|
|
EOF |
|
|
fi |
|
|
fi |
|
@ -233,6 +234,7 @@ if [ "$Wdir" == "$HOME" ]; then |
|
|
|
|
|
|
|
|
COPY .vimrc /home/docker |
|
|
COPY .vimrc /home/docker |
|
|
WORKDIR /home/docker/project |
|
|
WORKDIR /home/docker/project |
|
|
|
|
|
EXPOSE 3787 |
|
|
USER docker |
|
|
USER docker |
|
|
EOF |
|
|
EOF |
|
|
fi |
|
|
fi |
|
@ -247,6 +249,7 @@ fi |
|
|
/bin/cp -f $DIR/$hostnames_get $Wdir/$hostnames_get |
|
|
/bin/cp -f $DIR/$hostnames_get $Wdir/$hostnames_get |
|
|
/bin/cp -f $DIR/ROOT_PASSWORD $Wdir/ROOT_PASSWORD |
|
|
/bin/cp -f $DIR/ROOT_PASSWORD $Wdir/ROOT_PASSWORD |
|
|
/bin/cp -rf $DIR/.vimrc $Wdir/.vimrc |
|
|
/bin/cp -rf $DIR/.vimrc $Wdir/.vimrc |
|
|
|
|
|
/bin/cp -rf $DIR/bin $Wdir |
|
|
/bin/cp -rf $DIR/install-vim-plugin.sh $Wdir/install-vim-plugin.sh |
|
|
/bin/cp -rf $DIR/install-vim-plugin.sh $Wdir/install-vim-plugin.sh |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -268,10 +271,12 @@ services: |
|
|
entrypoint: ["sec_bootstrap", "role=masterservice", "sec_master_service_name=masterservice", "sec_worker_service_name=workerservice"] |
|
|
entrypoint: ["sec_bootstrap", "role=masterservice", "sec_master_service_name=masterservice", "sec_worker_service_name=workerservice"] |
|
|
ports: |
|
|
ports: |
|
|
- "\${SSH_PORT}:22" |
|
|
- "\${SSH_PORT}:22" |
|
|
|
|
|
- "\${R_PORT1}:3787" # console |
|
|
networks: |
|
|
networks: |
|
|
- ${HYBRID_NETWORK} |
|
|
- ${HYBRID_NETWORK} |
|
|
volumes: |
|
|
volumes: |
|
|
- $Wdir/project:/home/docker/project |
|
|
- $Wdir/project:/home/docker/project |
|
|
|
|
|
- $Wdir/bin/ttyd.x86_64:/usr/bin/ttyd |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
workerservice: |
|
|
workerservice: |
|
@ -286,11 +291,13 @@ services: |
|
|
user: root |
|
|
user: root |
|
|
entrypoint: ["sec_bootstrap", "role=workerservice", "sec_master_service_name=masterservice", "sec_worker_service_name=workerservice"] |
|
|
entrypoint: ["sec_bootstrap", "role=workerservice", "sec_master_service_name=masterservice", "sec_worker_service_name=workerservice"] |
|
|
ports: |
|
|
ports: |
|
|
- "\${SSH_PORT}:22" |
|
|
#- "\${SSH_PORT}:22" |
|
|
|
|
|
- "\${R_PORT2}:3787" # console |
|
|
networks: |
|
|
networks: |
|
|
- ${HYBRID_NETWORK} |
|
|
- ${HYBRID_NETWORK} |
|
|
volumes: |
|
|
volumes: |
|
|
- $Wdir/project:/home/docker/project |
|
|
- $Wdir/project:/home/docker/project |
|
|
|
|
|
- $Wdir/bin/ttyd.x86_64:/usr/bin/ttyd |
|
|
|
|
|
|
|
|
networks: |
|
|
networks: |
|
|
${HYBRID_NETWORK}: |
|
|
${HYBRID_NETWORK}: |
|
|