Last active
December 13, 2018 00:57
-
-
Save raecoo/96c5a31d50abda509bcf57dd5dfe63a0 to your computer and use it in GitHub Desktop.
Docker Environment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias dev-docker='docker run --name ubuntu_bash -v /target/projects:/root/projects --rm -i -t ubuntu:16.04 bash' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ docker pull banno/hbase-standalone | |
$ docker run -d -p 2181:2181 -p 60000:60000 -p 60010:60010 -p 60020:60020 -p 60030:60030 banno/hbase-standalone |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker run -p 3306:3306 -d --name mysql -v /docker-data/mysql:/var/lib/mysql -e MYSQL_ROOT_HOST=% -e MYSQL_ROOT_PASSWORD=password mysql/mysql-server:5.7 | |
docker exec -it mysql bash | |
bash# mysql -uroot -ppassword | |
mysql> CREATE USER 'qe'@'%' IDENTIFIED BY 'password'; | |
mysql> GRANT ALL PRIVILEGES ON * . * TO 'qe'@'%'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker run -d -p 5432:5432 --name postgres -v /docker-data/postgres:/var/lib/postgresql/data -e POSTGRES_PASSWORD=postgres POSTGRES_USER=postgres --rm -it postgres:10.6 |
Author
raecoo
commented
Dec 13, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment