...
Code Block | ||||
---|---|---|---|---|
| ||||
... __start_mysql() { echo "Running the start_mysql function." mysqladmin -u root password mysqlPassword mysql -uroot -pmysqlPassword -e "CREATE SCHEMA IF NOT EXISTS dts DEFAULT CHARACTER SET latin1 COLLATE latin1_bin;" mysql -uroot -pmysqlPassword -e "CREATE USER 'dts'@'localhost' IDENTIFIED BY 'dts';" mysql -uroot -pmysqlPassword -e "GRANT ALL PRIVILEGES ON dts.* TO 'dts'@'localhost' WITH GRANT OPTION;" mysql -uroot -pmysqlPassword -e "FLUSH PRIVILEGES;" #mysql -uroot -pmysqlPassword dts < /dts_dump_file.sql killall mysqld sleep 10 } |
Build
...
and
...
deploy container
Code Block | ||||
---|---|---|---|---|
| ||||
sudo docker build -t="opencds/apelon:centos6" . |
...