Skip to content

Commit 7ddbc02

Browse files
committed
get docker version working
1 parent 2b621a8 commit 7ddbc02

3 files changed

Lines changed: 10 additions & 8 deletions

File tree

docker/Dockerfile

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,16 @@
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"
88
ARG NS_VERSION=${TAG}
9+
ARG UID=56700
10+
ARG GID=56700
911

1012
WORKDIR /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

1416
RUN 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

2830
RUN chown -R notifier:notifier .
2931

30-
USER 1000
32+
USER $UID
3133

3234
# metadata
3335
LABEL org.opencontainers.image.title="Notifications"

docker/docker-compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
services:
22
webapp:
3-
image: ghcr.io/dataoneorg/notification-service:DEVELOP
3+
image: ghcr.io/dataoneorg/notification-service:develop
44
ports:
55
- "8080:8080"
66

src/main/resources/properties.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)