Skip to content

Commit 378e45a

Browse files
committed
Synched from swisspost/gateleen and docker build scripts added
1 parent 706995c commit 378e45a

File tree

5 files changed

+37
-0
lines changed

5 files changed

+37
-0
lines changed

Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FROM eclipse-temurin:21
2+
RUN mkdir /opt/app
3+
COPY ./gateleen-playground/target/playground.jar /opt/app/playground.jar
4+
CMD ["java", "-jar", "/opt/app/playground.jar"]
5+
6+
7+

build-docker.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/usr/bin/env bash
2+
docker build -t guentherm/gateleen:$1 .
3+
docker tag guentherm/gateleen:$1 guentherm/gateleen:latest
4+
docker push guentherm/gateleen:$1
5+
6+

build.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env bash
2+
mvn -Dmaven.test.skip=false clean install package

docker-compose.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
version: '2'
2+
services:
3+
gateleen:
4+
image: "guentherm/gateleen:2.1.20"
5+
container_name: gateleen
6+
hostname: gateleen
7+
# network_mode: host
8+
ports:
9+
- "7012:7012"
10+
restart: always
11+
logging:
12+
driver: "json-file"
13+
options:
14+
max-size: "25m"
15+
max-file: "2"
16+
17+

gateleen-playground/pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@
2828
<artifactId>gateleen-monitoring</artifactId>
2929
<version>${project.version}</version>
3030
</dependency>
31+
<dependency>
32+
<groupId>org.swisspush.gateleen</groupId>
33+
<artifactId>gateleen-cache</artifactId>
34+
<version>${project.version}</version>
35+
</dependency>
3136
<dependency>
3237
<groupId>org.swisspush.gateleen</groupId>
3338
<artifactId>gateleen-runconfig</artifactId>

0 commit comments

Comments
 (0)