From a01f964b531f12fd89cbdb0f2132aecbfaebf546 Mon Sep 17 00:00:00 2001 From: Fabian Mastenbroek Date: Sat, 30 Jul 2022 12:15:10 +0200 Subject: refactor(web/server): Create standalone OpenDC distribution This change updates the Quarkus configuration of the OpenDC web server to serve as a fully standalone distribution that is capable of serving the web UI, web API, and experiment runner. Such an approach vastly simplifies local deployments. For Docker deployments, we create a custom Quarkus profile that uses PostgreSQL and disables the web UI. --- opendc-web/opendc-web-api/Dockerfile | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 opendc-web/opendc-web-api/Dockerfile (limited to 'opendc-web/opendc-web-api/Dockerfile') diff --git a/opendc-web/opendc-web-api/Dockerfile b/opendc-web/opendc-web-api/Dockerfile deleted file mode 100644 index ff300170..00000000 --- a/opendc-web/opendc-web-api/Dockerfile +++ /dev/null @@ -1,17 +0,0 @@ -FROM openjdk:17-slim -MAINTAINER OpenDC Maintainers - -# Obtain (cache) Gradle wrapper -COPY gradlew /app/ -COPY gradle /app/gradle -WORKDIR /app -RUN ./gradlew --version - -# Build project -COPY ./ /app/ -RUN ./gradlew --no-daemon :opendc-web:opendc-web-api:build - -FROM openjdk:17-slim -COPY --from=0 /app/opendc-web/opendc-web-api/build/quarkus-app /opt/opendc -WORKDIR /opt/opendc -CMD java -jar quarkus-run.jar -- cgit v1.2.3