From 64e4f414fc13242ffd3190b7a60e74af46982e84 Mon Sep 17 00:00:00 2001 From: EdwinBetanc0urt Date: Mon, 9 Dec 2024 14:15:15 -0400 Subject: [PATCH] feat: Update docker images. --- .github/workflows/publish.yml | 4 ++-- README.md | 1 + docker/{backend_alpine.Dockerfile => alpine.Dockerfile} | 3 ++- docker/{backend_focal.Dockerfile => focal.Dockerfile} | 3 ++- 4 files changed, 7 insertions(+), 4 deletions(-) rename docker/{backend_alpine.Dockerfile => alpine.Dockerfile} (92%) rename docker/{backend_focal.Dockerfile => focal.Dockerfile} (92%) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 2d4cd78..c0fa362 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -167,7 +167,7 @@ jobs: uses: docker/build-push-action@v5 with: context: . - file: docker/backend_alpine.Dockerfile + file: docker/alpine.Dockerfile push: true tags: | ${{ secrets.DOCKER_HUB_REPO_NAME }}:alpine-${{ github.event.release.tag_name }} @@ -207,7 +207,7 @@ jobs: uses: docker/build-push-action@v5 with: context: . - file: docker/backend_focal.Dockerfile + file: docker/focal.Dockerfile platforms: linux/amd64,linux/amd64/v2,linux/arm64/v8 push: true tags: | diff --git a/README.md b/README.md index 5abb681..6d55617 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,7 @@ To use this Docker image you must have your Docker engine version greater than o - `DB_PASSWORD`: Database password that Adempiere-Backend will use to connect with the database. Default: `adempiere` - `SERVER_PORT`: Port to access adempiere-grpc-template-service from outside of the container. Default: `50059` - `SERVER_LOG_LEVEL`: Log Level. Default: `WARNING` +- `JAVA_OPTIONS`: Custom settings to the Java Virtual Machine (JVM). Default: `-Xms64M -Xmx1512M`. - `TZ`: (Time Zone) Indicates the time zone to set in the nginx-based container, the default value is `America/Caracas` (UTC -4:00). You can download the last image from docker hub, just run the follow command: diff --git a/docker/backend_alpine.Dockerfile b/docker/alpine.Dockerfile similarity index 92% rename from docker/backend_alpine.Dockerfile rename to docker/alpine.Dockerfile index 54ff905..5170b8f 100644 --- a/docker/backend_alpine.Dockerfile +++ b/docker/alpine.Dockerfile @@ -1,4 +1,4 @@ -FROM eclipse-temurin:11.0.22_7-jdk-alpine +FROM eclipse-temurin:11.0.24_8-jdk-alpine LABEL maintainer="ySenih@erpya.com; EdwinBetanc0urt@outlook.com;" \ description="Backend gRPC" @@ -14,6 +14,7 @@ ENV \ DB_PASSWORD="adempiere" \ DB_TYPE="PostgreSQL" \ ADEMPIERE_APPS_TYPE="" \ + JAVA_OPTIONS="\"-Xms64M\" \"-Xmx1512M\"" \ TZ="America/Caracas" EXPOSE ${SERVER_PORT} diff --git a/docker/backend_focal.Dockerfile b/docker/focal.Dockerfile similarity index 92% rename from docker/backend_focal.Dockerfile rename to docker/focal.Dockerfile index ba1885a..32e8efe 100644 --- a/docker/backend_focal.Dockerfile +++ b/docker/focal.Dockerfile @@ -1,4 +1,4 @@ -FROM eclipse-temurin:11.0.22_7-jdk-focal +FROM eclipse-temurin:11.0.24_8-jdk-focal LABEL maintainer="ySenih@erpya.com; EdwinBetanc0urt@outlook.com;" \ description="Backend gRPC" @@ -14,6 +14,7 @@ ENV \ DB_PASSWORD="adempiere" \ DB_TYPE="PostgreSQL" \ ADEMPIERE_APPS_TYPE="" \ + JAVA_OPTIONS="\"-Xms64M\" \"-Xmx1512M\"" \ TZ="America/Caracas" EXPOSE ${SERVER_PORT}