This file contains hidden or 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
| sudo sh -c "echo -n 'usuario:' >> /etc/nginx/.htpasswd" | |
| sudo sh -c "openssl passwd senha >> /etc/nginx/.htpasswd" | |
| cat /etc/nginx/.htpasswd | |
| # Config do nginx | |
| server { |
This file contains hidden or 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
| sudo apt-get install alien dpkg-dev debhelper build-essential | |
| sudo alien packagename.rpm | |
| sudo dpkg -i packagename.deb |
This file contains hidden or 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
| # Comandos basicos | |
| docker pull mysql | |
| docker images | |
| docker run --name database -e MYSQL_ROOT_PASSWORD=teste123 -d mysql | |
| docker ps | |
| docker run --name blog --link database:mysql -e WORDPRESS_DB_PASSWORD=teste123 -p 80:80 -d wordpress | |
| docker system prune | |
This file contains hidden or 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
| # Gerando certificados para SSL Self Signed | |
| openssl req \ | |
| -newkey rsa:4096 -nodes -sha256 -keyout domain.key \ | |
| -x509 -days 3650 -out domain.crt | |
| # Gerando CSR | |
| openssl req \ |
This file contains hidden or 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 stop rancher-server | |
| docker cp rancher-server:/var/lib/mysql /storage/rancher-server | |
| sudo chown -R 102:105 /storage/rancher-server/mysql | |
| docker pull rancher/server:latest | |
| docker run -d -v /storage/rancher-server/mysql:/var/lib/mysql -v /etc/localtime:/etc/localtime:ro -p 8080:8080 --restart=always --name rancher-server-v1 rancher/server:latest |
This file contains hidden or 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
| # Instalar a biblioteca | |
| sudo apt-get install libaio1 | |
| # Criar a pasta | |
| sudo mkdir /opt/oracle | |
| # Extrair para /opt/oracle | |
| instantclient-basic-linux.x64-18.5.0.0.0dbru.zip | |
| instantclient-sdk-linux.x64-18.5.0.0.0dbru.zip |
This file contains hidden or 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
| # Adicionar em conf\tomcat-users.xml | |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <tomcat-users> | |
| <role rolename="manager-script"/> | |
| <user username="admin" password="admin" roles="manager-script"/> | |
| </tomcat-users> |
This file contains hidden or 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 \ | |
| --name=mariadb \ | |
| --restart=always \ | |
| -v /etc/localtime:/etc/localtime:ro \ | |
| -e MYSQL_ROOT_PASSWORD=senha \ | |
| -v /storage/mariadb:/var/lib/mysql \ | |
| mariadb:latest | |
| docker run -d \ | |
| --restart=always \ |
This file contains hidden or 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
| #!/bin/bash | |
| # RODAR COMO USUARIO LOCAL | |
| if [[ $(id -u) -eq 0 ]] | |
| then echo "Por favor não executar como SUDO" | |
| exit 1 | |
| fi | |
| echo 'Instalando nvm' |
This file contains hidden or 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 build -t alexishida.com/teste:v1.0 . | |
| docker commit -m "Mensagem do commit" -a "Alex Ishida" <nome da container> alexishida.com/teste:v1.0 (criar imagem local) | |
| docker push alexishida.com/teste:v1.0 (enviar imagem para o repositorio) |