This commit is contained in:
Alfredo Oliviero 2024-02-07 10:11:14 +01:00
parent 493961ad0b
commit f969b88376
3 changed files with 12 additions and 2 deletions

View File

@ -1,4 +1,4 @@
FROM smartgears-distribution:4.0.0-java11-tomcat9
FROM d4science/smartgears-distribution:4.0.0-SNAPSHOT-java11-tomcat9
ARG REPOUSER=admin
ARG REPOPWD=admin
COPY ./target/identity-manager.war /tomcat/webapps/
@ -8,4 +8,4 @@ COPY ./docker/container.ini /etc/
RUN unzip /tomcat/webapps/identity-manager.war -d /tomcat/webapps/identity-manager
RUN rm /tomcat/webapps/identity-manager.war
# COPY ./docker/storage-settings.properties /tomcat/webapps/identity-manager/WEB-INF/classes/
RUN sed -i "s/{{adminId}}/$REPOUSER/g; s/{{adminPwd}}/$REPOPWD/g" /tomcat/webapps/storagehub/WEB-INF/web.xml
# RUN sed -i "s/{{adminId}}/$REPOUSER/g; s/{{adminPwd}}/$REPOPWD/g" /tomcat/webapps/storagehub/WEB-INF/web.xml

7
docker-compose.yaml Normal file
View File

@ -0,0 +1,7 @@
version: '0.1'
services:
identity-manager:
platform: linux/amd64
build: .
ports:
- '8080:8080'

3
docker.md Normal file
View File

@ -0,0 +1,3 @@
mvn clean package
docker build -t idm .
docker compose up