File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22# # NOTE: Must be run from the root of the project,
33# # otherwise the war file COPY command will not work!
44# #
5- FROM tomee:9-jre17 -Temurin-ubuntu-webprofile
5+ FROM tomee:10-jre21 -Temurin-ubuntu-webprofile
66
7- ARG TAG=1.0.0-SNAPSHOT
7+ ARG TAG="NO-TAG"
88ARG NS_VERSION=${TAG}
9+ ARG UID=56700
10+ ARG GID=56700
911
1012WORKDIR /usr/local/tomee
1113
12- RUN groupadd -g 1000 notifier && useradd -u 1000 -g 1000 notifier
14+ RUN groupadd -g $GID notifier && useradd -u $UID -g $GID notifier
1315
1416RUN apt-get update \
1517 && apt-get install -y --no-install-recommends \
@@ -23,11 +25,11 @@ RUN apt-get update \
2325 telnet \
2426 vim
2527
26- COPY .. /target/notification-service-${NS_VERSION}.war ./webapps/notifications.war
28+ COPY ./target/notification-service-${NS_VERSION}.war ./webapps/notifications.war
2729
2830RUN chown -R notifier:notifier .
2931
30- USER 1000
32+ USER $UID
3133
3234# metadata
3335LABEL org.opencontainers.image.title="Notifications"
Original file line number Diff line number Diff line change 11services :
22 webapp :
3- image : ghcr.io/dataoneorg/notification-service:DEVELOP
3+ image : ghcr.io/dataoneorg/notification-service:develop
44 ports :
55 - " 8080:8080"
66
Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ database:
44 password : notifications_password
55 name : notifications
66 version : 16.0
7- # jdbcUrl: jdbc:postgresql://host.docker.internal:5432/notifications # for docker-compose
8- jdbcUrl : jdbc:postgresql://localhost:5432/notifications # for local development
7+ jdbcUrl : jdbc:postgresql://host.docker.internal:5432/notifications # for docker-compose
8+ # jdbcUrl: jdbc:postgresql://localhost:5432/notifications # for local development
99 # jdbcUrl: jdbc:postgresql://ns-postgresql-hl:5432/notifications # for k8s
1010
1111 # # See HikariCP configuration options at:
You can’t perform that action at this time.
0 commit comments