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. --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.github/workflows/build.yml') diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3b6b11d2..3f6ca4dd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -66,7 +66,7 @@ jobs: uses: docker/build-push-action@v3 with: file: opendc-web/opendc-web-runner/Dockerfile - - name: Build API + - name: Build Web Server uses: docker/build-push-action@v3 with: - file: opendc-web/opendc-web-api/Dockerfile + file: opendc-web/opendc-web-server/Dockerfile -- cgit v1.2.3 From 1724ab032deedea0a9c54e827829632a9ba066aa Mon Sep 17 00:00:00 2001 From: Fabian Mastenbroek Date: Sat, 30 Jul 2022 12:22:45 +0200 Subject: ci: Build Docker image for OpenDC web UI This change adds a build step for building the OpenDC web UI as Docker image. We forgot this step and found that the image failed to build during previous commits. --- .github/workflows/build.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to '.github/workflows/build.yml') diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3f6ca4dd..324866e0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -62,11 +62,16 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v3 - - name: Build Runner + - name: Build UI uses: docker/build-push-action@v3 with: - file: opendc-web/opendc-web-runner/Dockerfile + context: opendc-web/opendc-web-ui + file: opendc-web/opendc-web-ui/Dockerfile - name: Build Web Server uses: docker/build-push-action@v3 with: file: opendc-web/opendc-web-server/Dockerfile + - name: Build Runner + uses: docker/build-push-action@v3 + with: + file: opendc-web/opendc-web-runner/Dockerfile -- cgit v1.2.3