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

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