zeus 3 years ago
parent
commit
70e31a6900
  1. 5
      install/usr/share/swarmlab.io/sec/sec_bootstrap
  2. 1
      install/usr/share/swarmlab.io/sec/sec_bootstrapmysql
  3. 6
      install/usr/share/swarmlab.io/sec/swarmlab-sec

5
install/usr/share/swarmlab.io/sec/sec_bootstrap

@ -48,7 +48,10 @@ case $ROLE in
ttyd -p 3787 bash &
apache2ctl start
/usr/local/bin/docker-entrypoint.sh apache2*
/usr/local/bin/apache2-foreground
# apache2ctl start
tail -f /dev/null
# Start ssh server

1
install/usr/share/swarmlab.io/sec/sec_bootstrapmysql

@ -70,6 +70,7 @@ case $ROLE in
# -i "${USER_HOME}/.ssh/id_rsa" \
# ${USER}@${MPI_MASTER_SERVICE_NAME} \
ttyd -p 3787 bash &
chmod 644 /etc/mysql/mysql.conf.d/mysqld.cnf
mysqld --user=root
tail -f /dev/null
#done

6
install/usr/share/swarmlab.io/sec/swarmlab-sec

@ -171,7 +171,8 @@ if [ -d "$Wdir/project" ]; then
&& chown -R \${USER1}:\${USER1} \${SSHDIR} \
&& chown -R \${USER1}:\${USER1} \${USER_HOME}
WORKDIR /home/docker/project
#WORKDIR /home/docker/project
WORKDIR /var/www/html
COPY .vimrc /home/docker
EXPOSE 3787
USER docker
@ -257,7 +258,8 @@ if [ "$Wdir" == "$HOME" ]; then
&& chown -R \${USER1}:\${USER1} \${USER_HOME}
COPY .vimrc /home/docker
WORKDIR /home/docker/project
#WORKDIR /home/docker/project
WORKDIR /var/www/html
EXPOSE 3787
USER docker
EOF

Loading…
Cancel
Save