Some fixes

This commit is contained in:
Willem Dantuma
2023-05-19 19:53:23 +02:00
parent c2e698cc9d
commit 04461a34ff
3 changed files with 21 additions and 2 deletions

View File

@@ -17,6 +17,7 @@ WORKDIR /opt/re3gistry
RUN sh ./init-config.sh \ RUN sh ./init-config.sh \
&& cp -R app/* /opt/tomcat/webapps/ \ && cp -R app/* /opt/tomcat/webapps/ \
&& cp -R webapp/public_html/* /var/www/localhost/htdocs/ \ && cp -R webapp/public_html/* /var/www/localhost/htdocs/ \
&& chmod +x start.sh && chmod +x start.sh \
&& touch /opt/tomcat/webapps/re3gistry2/WEB-INF/classes/configurations_files/system.installed
ENTRYPOINT [ "/opt/re3gistry/start.sh" ] ENTRYPOINT [ "/opt/re3gistry/start.sh" ]

18
createdatabase.sql Normal file
View File

@@ -0,0 +1,18 @@
CREATE DATABASE re3gistry
WITH
OWNER = farmmaps
ENCODING = 'UTF8'
LC_COLLATE = 'en_US.utf8'
LC_CTYPE = 'en_US.utf8'
TABLESPACE = pg_default
CONNECTION LIMIT = -1
IS_TEMPLATE = False;
ALTER DATABASE re3gistry
SET search_path TO data, public;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres
GRANT INSERT, SELECT, UPDATE, DELETE ON TABLES TO re3gistry;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres
GRANT SELECT, USAGE ON SEQUENCES TO re3gistry;