Created
March 14, 2019 01:01
-
-
Save Sudok/df30e958e7988b603ec6c82ee1a277ea to your computer and use it in GitHub Desktop.
Setup Osx
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
Terminal: | |
Iterm + zsh + OhMyZsh | |
https://medium.com/@arojunior/otimizando-o-terminal-do-mac-os-x-com-iterm-e-oh-my-zsh-1b0e843b5eb2 | |
Brew: | |
Gerenciador de pacote Osx: | |
https://brew.sh/index_pt-br | |
Asdf: | |
(Setor para zsh em vez do bash ) | |
https://asdf-vm.com/#/core-manage-asdf-vm | |
Docker(comandos): | |
Install(docker-ce): | |
https://docs.docker.com/docker-for-mac/install/ | |
Comandos: | |
Comando docker: | |
docker run -P “com P maiúsculo, mapeia as portas automaticamente, mas não usa as mesma portas geralmente" | |
POSTGRES - https://hub.docker.com/_/postgres/ | |
docker run -p 5432:5432 --name dev-postgres -e POSTGRES_PASSWORD=postgres -d postgres:latest | |
MYSQL - https://hub.docker.com/_/mysql/ | |
docker run -p 3306:3306 --name dev-mysql -e MYSQL_ROOT_PASSWORD=407463 -d mysql:5.7 | |
docker run -p 3306:3306 --name dev-mysql -e MYSQL_ROOT_PASSWORD=407463 -d mysql:latest | |
Sem senha | |
docker run -p 3306:3306 --name dev-mysql -e MYSQL_ALLOW_EMPTY_PASSWORD=true -d mysql:latest | |
docker run -p 3306:3306 --name dev-mysql -e MYSQL_ALLOW_EMPTY_PASSWORD=true -d mysql:5.7 | |
MongoDB | |
docker run -p 27017:27017 --name dev-mongo -d mongo:latest | |
CASO DE MERDA: glauber/407~ | |
Redis | |
docker run -p 6379:6379 --name dev-redis -d redis:latest | |
Redshift | |
docker run -p 4455:4455 —name dev-redshift -d redash:latest | |
RethinkDB | |
docker run -p 8080:8080 -p 28015:28015 -p 29015:29015 --name dev-rethinkdb -d rethinkdb:latest | |
docker run -it --rm --name pg1 -e POSTGRES_PASSWORD=123456 -e POSTGRES_USER=sudok postgres:9.4 | |
MSSQL: | |
docker pull microsoft/mssql-server-linux:2017-latest | |
Config: | |
docker run -d --name dev-mssql -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=407463' -e 'MSSQL_PID=Developer' -p 1433:1433 microsoft/mssql-server-linux:2017-latest | |
Install SQL-CLI: | |
npm install -g sql-cli | |
COMANDOS DOCKER: | |
conectar no container: | |
docker exec -t -i <container_name> /bin/bash | |
https://hub.docker.com/_/mongo | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment