Commit d61dd13338d055ec166f35d99736f7807164f5bb

Authored by Carlos Vieira
1 parent b6b323be
Exists in master

Adicionando o docker hub e o make test não executa mais o projeto

build.sh
... ... @@ -4,7 +4,7 @@ if [ -n "$1" ]
4 4 then
5 5 profile=$1
6 6 else
7   - profile=$(cat app/profile | awk 'FNR == 1 {print $3}')
  7 + profile="default"
8 8 fi
9 9  
10 10 if test -d "recipes/$profile"
... ...
docker/Dockerfile
... ... @@ -2,6 +2,8 @@ FROM httpd:2.4
2 2  
3 3 COPY ./conf/httpd.conf /usr/local/apache2/conf/httpd.conf
4 4  
  5 +ADD public_html /usr/local/apache2/htdocs
  6 +
5 7 EXPOSE 80
6 8  
7 9  
... ...
docker/docker-compose.yml
1   -version: '2'
2   -services:
3   - web:
4   - build: .
5   - ports:
6   - - "80:80"
7   - volumes:
8   - - ./public_html:/usr/local/apache2/htdocs/
  1 +web:
  2 + image: govbr/barra.govbr
  3 + ports:
  4 + - "80:80"
... ...
makefile
1 1 # Makefile
2 2  
3   -test: build teste run
  3 +test: build teste
4 4 run: build
5 5 venv/bin/python app/barrabrasil.py
6 6  
... ...