docker files added

This commit is contained in:
Lucio Lelii 2022-02-02 11:27:52 +01:00
parent d672386824
commit 6d3e9394c4
2 changed files with 31 additions and 0 deletions

8
Dockerfile Normal file
View File

@ -0,0 +1,8 @@
FROM luciolelii/smartgears:3.4.3-SNAPSHOT
COPY ./target/storagehub.war /usr/local/tomcat/webapps/
COPY ./docker/jackrabbit /app/jackrabbit
COPY ./docker/storagehub.xml /usr/local/tomcat/conf/Catalina/localhost/
RUN unzip /usr/local/tomcat/webapps/storagehub.war -d /usr/local/tomcat/webapps/storagehub
RUN sed -i 's/<root /<logger name="org.gcube.data.access.storagehub" level="DEBUG" \/>\n <root /g' /usr/local/tomcat/lib/logback.xml
RUN sed -i 's/${{adminId}}/workspace/g; s/${{adminPwd}}/gcube/g' /usr/local/tomcat/webapps/storagehub/WEB-INF/web.xml

23
docker-compose.yml Normal file
View File

@ -0,0 +1,23 @@
version: '3.7'
services:
postgres:
image: postgres:10.5
restart: always
environment:
- POSTGRES_DB=workspace-db
- POSTGRES_USER=ws-db-user
- POSTGRES_PASSWORD=dbPwd
logging:
options:
max-size: 10m
max-file: "3"
ports:
- '5423:5432'
volumes:
- ./postgres-data:/var/lib/postgresql/data
# copy the sql script to create tables
# - ./sql/create_tables.sql:/docker-entrypoint-initdb.d/create_tables.sql
storagehub:
build: .
ports:
- '8080:8080'