diff --git a/build/Dockerfile b/build/Dockerfile index 1d73a7e..a5efb18 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -4,5 +4,6 @@ MAINTAINER Francisco Neto COPY entrypoint / COPY c10.sql.dumpall / COPY index.html /var/www/html/ +COPY uabdatagatherer.zip / ENTRYPOINT ["/entrypoint"] diff --git a/build/entrypoint b/build/entrypoint index bd56ab0..8cd2cbc 100755 --- a/build/entrypoint +++ b/build/entrypoint @@ -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 diff --git a/build/uabdatagatherer.zip b/build/uabdatagatherer.zip new file mode 100644 index 0000000..09d349a Binary files /dev/null and b/build/uabdatagatherer.zip differ diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml index 9e00872..95723b2 100644 --- a/docker-compose.dev.yml +++ b/docker-compose.dev.yml @@ -1,7 +1,7 @@ version: '3' services: c10: - image: capes/c10 + image: c10:uab build: ./build ports: - 80:80