Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ MAINTAINER Francisco Neto <francisco.neto@capes.gov.br>
COPY entrypoint /
COPY c10.sql.dumpall /
COPY index.html /var/www/html/
COPY uabdatagatherer.zip /

ENTRYPOINT ["/entrypoint"]
7 changes: 7 additions & 0 deletions build/entrypoint
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ else
cat /c10.sql.dumpall | runuser postgres -c psql
fi

if [ ! -d "/var/www/html/c10/blocks/uabdatagatherer" ] ; then
unzip /uabdatagatherer.zip -d /var/www/html/c10/blocks/
chown -R www-data.www-data /var/www/html/c10/blocks/uabdatagatherer
fi
rm -f /uabdatagatherer.zip


echo "Criando arquivo config.php"
echo "ALTER USER postgres WITH PASSWORD '${DBPASS}';" | runuser postgres -c psql
cat > /var/www/html/c10/config.php <<_EOF
Expand Down
Binary file added build/uabdatagatherer.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion docker-compose.dev.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '3'
services:
c10:
image: capes/c10
image: c10:uab
build: ./build
ports:
- 80:80
Expand Down