Skip to content

Instantly share code, notes, and snippets.

@jniltinho
Last active August 19, 2019 20:31
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jniltinho/ee2fe797f53af7789c01ce7b831c06d3 to your computer and use it in GitHub Desktop.
Save jniltinho/ee2fe797f53af7789c01ce7b831c06d3 to your computer and use it in GitHub Desktop.
Install Rancher 1.6 on Ubuntu 16.04

Instalando Rancher no Ubuntu 16.04 64Bits

O ambiente foi criado na nuvem do Google

Preparando ambiente Manager

1 Agent Server: 2 CPUs, 7.5GB de RAM, 30GB de HD.

Para ambiente de Homologação (HOMO)

2 Nodes Servers: 2 CPUs, 7.5 GB de RAM, 50GB de HD.

Para ambiente de Desenvolvimento (DEV)

2 Nodes Servers: 2 CPUs, 7.5 GB de RAM, 50GB de HD.

Para ambiente de Produção (PROD)

2 Nodes Servers: 4 CPUs, 15 GB de RAM, 100GB de HD.

Instalando em todos os Servers

apt-get update && apt-get upgrade -y
apt-get install -y curl
curl https://releases.rancher.com/install-docker/17.03.sh | sh

systemctl start docker
systemctl enable docker

Instalando Manager Server

docker run -d --restart=unless-stopped -p 8080:8080 rancher/server:stable

Depois de instalar você precisar acessar o servidor via Navegador http://ip-do-servidor:8080

Depois de acessado vá até: Admin -> Access Control, habilite Local Authentication, crie seu primeiro usuário administrativo e salve, em seguida faça logout da plataforma e acesse: http://ip-do-servidor:8080/login

Instalando o Rancher Compose

VERSION="0.12.5"

wget https://github.com/rancher/rancher-compose/releases/download/v${VERSION}/rancher-compose-linux-amd64-v${VERSION}.tar.gz
tar zxf rancher-compose-linux-amd64-v${VERSION}.tar.gz
rm rancher-compose-linux-amd64-v${VERSION}.tar.gz
mv rancher-compose-v${VERSION}/rancher-compose /usr/local/bin/rancher-compose
chmod +x /usr/local/bin/rancher-compose
rm -r rancher-compose-v${VERSION}

Acesso Manager Server

IP: http://ip-do-servidor:8080/login
LOGIN: admin
SENHA: XXXXXXXX

Links

https://github.com/rancher/install-docker

https://www.mundodocker.com.br/racheros-painel-docker/

https://gist.github.com/jeefy/7fed19a335d5caae24639e7ee7be1b71

https://gridscale.io/en/community/tutorials/install-rancher-ubuntu-16-04-lts/

https://www.howtoforge.com/tutorial/ubuntu-rancher-docker-container-manager/

Videos

Caso você não conheça o Rancher sugiro que assista os vídeos abaixo:

https://www.youtube.com/watch?v=nti93nVWO7w

https://www.youtube.com/watch?v=3RktdDUw4GA

https://www.youtube.com/watch?v=UAhBZQd9LHI

Cursos

https://www.schoolofnet.com/curso-iniciando-com-rancher/

https://www.schoolofnet.com/curso-avancando-com-rancher/

https://www.temporealeventos.com.br/curso-rancher-ead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment