You have some nodes in AWS that you want to load balance.
You want to use the magical scaling properties of ELB.
You want to do some things that ELB doesn't do, like force HTTPS (or add headers, or something else).
composer create-project "symfony/skeleton:^4.0" SymfonyLogin |
wget -O - https://gist.githubusercontent.com/jeffersonsouza/14e1ac073673f7c643df0355672d8d0a/raw/d88b292ff6d922b46f231d31f1cf038f0a24b2be/install-docker-ce-ubuntu.sh | bash |
sudo rm -fr /var/cache/apt/* | |
sudo rm -fr /var/lib/apt/* | |
sudo rm -fr /home/curso/.vscode/* |
#!/bin/bash | |
rm -fR ~/ionic/EventsApp | |
cd ~/ionic | |
git clone https://github.com/cursodeionic/events-app.git | |
cd events-app | |
npm install |
Para conectar no servidor: | |
ssh -i cursorancher.pem ubuntu@ipdoservidor | |
No servidor: | |
wget -O - https://gist.githubusercontent.com/jeffersonsouza/14e1ac073673f7c643df0355672d8d0a/raw/62801d2726dcf2b1a5120a33d503f0e750bbc7e8/install-docker-ce-ubuntu.sh | bash | |
Documentação Rancher 2.0 | |
http://rancher.com/docs/rancher/v2.0/en/quick-start-guide |
How to setup docker behing a HTTP proxy
mkdir /etc/systemd/system/docker.service.d
sudo touch /etc/systemd/system/docker.service.d/http-proxy.conf
Add proxy info
node('nodejs') { | |
stage('Clean'){ | |
echo 'Estou limpando...' | |
deleteDir() | |
} | |
stage('Checkout'){ | |
echo 'Estou Checando...' | |
git 'https://github.com/jeffersonsouza/example-todo-api.git' | |
} |
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
#!/bin/bash | |
sudo apt-get install apt-transport-https ca-certificates -y | |
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D | |
sudo rm -f /etc/apt/sources.list.d/docker.list | |
echo "deb https://apt.dockerproject.org/repo ubuntu-xenial main" | tee /etc/apt/sources.list.d/docker.list | |
sudo apt-get update | |
sudo apt-get purge lxc-docker | |
sudo apt-get install linux-image-extra-$(uname -r) linux-image-extra-virtual | |
sudo apt-get install docker-engine |