Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@vscale-redmine251:~# cat inst_docker_redmine_mysql
- #!/bin/bash
- docker pull sameersbn/redmine:2.5.3-1
- docker pull sameersbn/mysql:latest
- mkdir -p /opt/redmine
- mkdir -p /opt/redmine/mysql
- mkdir -p /opt/redmine/data
- root@vscale-redmine251:~# cat d_mysql
- #!/bin/bash
- docker run --name=mysql -it \
- -e 'DB_NAME=redmine' -e 'DB_USER=redmine' -e 'DB_PASS=password' \
- -v /opt/redmine/mysql:/var/lib/mysql \
- -p 3306:3306 -d \
- sameersbn/mysql:latest
- root@vscale-redmine251:~# cat d_cp_mysql
- #!/bin/bash
- #docker cp -i files/backup.sql mysql:/home/
- #docker exec -i -t mysql /bin/bash -c mysql -u redmine -ppassword redmine < /home/backup.sql'
- docker exec -i mysql mysql -h 127.0.0.1 -P 3306 -uredmine -ppassword redmine < files/backup.sql
- root@vscale-redmine251:~# cat d_redmine
- #!/bin/bash
- docker run --name=redmine -it \
- -p 10080:80 \
- -p 10443:443 \
- --env='REDMINE_PORT=10080' \
- --link mysql:mysql \
- -v /var/run/docker.sock:/run/docker.sock \
- -v /opt/redmine/data:/home/redmine/data \
- -d sameersbn/redmine:2.5.3-1
- root@vscale-redmine251:~# cat d_cp_redmine
- #!/bin/bash
- cp -r ./files/2* /opt/redmine/data/files/
- root@vscale-redmine251:~#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement