From fa08769b39fbd5086c145c5a4ab87c2c0a556015 Mon Sep 17 00:00:00 2001 From: Joshua Wiedekopf Date: Fri, 9 Jun 2023 14:50:33 +0200 Subject: [PATCH] remove buildplatform for Quay --- Dockerfile | 5 +---- README.md | 9 ++++++++- docker-compose.yml | 1 + 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index e0c3853..f7d39b2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,4 @@ -FROM --platform=$BUILDPLATFORM azul/zulu-openjdk:17 -ARG TARGETPLATFORM -ARG BUILDPLATFORM -RUN echo "Running on $BUILDPLATFORM, building for $TARGETPLATFORM" +FROM azul/zulu-openjdk:17 WORKDIR /app ADD . /app RUN ./gradlew clean jar diff --git a/README.md b/README.md index 1503935..6794e6c 100644 --- a/README.md +++ b/README.md @@ -50,4 +50,11 @@ By default, the application will be exposed on port 4242, and you can change thi For a permanent deployment, you will need to also adjust the public address in the configuration file to match your hostname, so that the proxy can rewrite the URLs in the responses from the central server correctly. Currently, this app doesn't do TLS termination, so you will need to put it behind a reverse proxy that does TLS termination for you if -required. If you do so, also adjust the protocol in the configuration file to `https`. \ No newline at end of file +required. If you do so, also adjust the protocol in the configuration file to `https`. + +If you need to change the build architecture (e.g. when running on an ARM-based system), it is recommended to build the +docker container from source. Simply uncomment the following line from the docker-compose file: + +``` + # build: . +``` \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 0439b91..0998358 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,6 +2,7 @@ version: '3' services: proxy: image: quay.io/itcrl/termserver-dfn-proxy:latest + #build: . ports: - "4242:4242" volumes: