zeus 3 years ago
parent
commit
7b52d918a5
  1. 1
      install/usr/share/swarmlab.io/sec/sec_bootstrapmysql
  2. 2
      install/usr/share/swarmlab.io/sec/swarmlab-sec

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

@ -72,6 +72,7 @@ case $ROLE in
ttyd -p 3787 bash & ttyd -p 3787 bash &
chmod 644 /etc/mysql/mysql.conf.d/mysqld.cnf chmod 644 /etc/mysql/mysql.conf.d/mysqld.cnf
mysqld --user=root mysqld --user=root
mysql -e "create database $MYSQL_DATABASE ; GRANT ALL PRIVILEGES ON $MYSQL_DATABASE.* TO $MYSQL_USER@localhost IDENTIFIED BY '$MYSQL_PASSWORD'"
tail -f /dev/null tail -f /dev/null
#done #done
;; ;;

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

@ -327,6 +327,8 @@ services:
- NET_ADMIN - NET_ADMIN
user: root user: root
entrypoint: ["sec_bootstrapmysql", "role=workerservice", "sec_master_service_name=masterservice", "sec_worker_service_name=workerservice"] entrypoint: ["sec_bootstrapmysql", "role=workerservice", "sec_master_service_name=masterservice", "sec_worker_service_name=workerservice"]
ports:
- "\${R_PORT3}:3787" # console
networks: networks:
- ${HYBRID_NETWORK} - ${HYBRID_NETWORK}
volumes: volumes:

Loading…
Cancel
Save