Public | Automated Build

Last pushed: a year ago
Short Description
Micro-serviço para cadastro de endereços.
Full Description

FE Endereco

Docker

docker-compose build fe_endereco
docker-compose run --rm fe_endereco pip install -r /requirements/development.txt
docker-compose run --rm fe_endereco pip install -r /requirements/production.txt
docker-compose run --rm fe_endereco python manage.py migrate
docker-compose run --rm --name fe_endereco --service-ports fe_endereco /bin/bash

Docker Cleanup

#!shell
docker stop $(docker ps -a -q); docker rm $(docker ps -a -q)
docker rmi $(docker images -f "dangling=true" -q)

Dreamhost

cat ~/.ssh/fe_microservices.pub | ssh -o PubkeyAuthentication=no fems05@klamathfalls.dreamhost.com "mkdir ~/.ssh; cat >> ~/.ssh/authorized_keys"
ssh fems05@klamathfalls.dreamhost.com
fab -c fab_dreamhost deploy

Migrations

#!shell
python manage.py migrate fe_endereco zero
python manage.py makemigrations fe_endereco
python manage.py migrate fe_endereco
Docker Pull Command
Owner
fernandoe
Source Repository

Comments (0)