From 6004466a0d2ff7ccf5f609e7d3e226f04bf1a136 Mon Sep 17 00:00:00 2001 From: Henning Benum <82902462+Kamelon7@users.noreply.github.com> Date: Tue, 12 Dec 2023 08:46:20 +0100 Subject: [PATCH] Fix deploy for CA and Hub (#2640) * Add Dockerfiles to CA for Vapor setup * Re-add assets to vapor.yml for CA and Hub --- sourcecode/apis/contentauthor/production.Dockerfile | 3 +++ sourcecode/apis/contentauthor/staging.Dockerfile | 3 +++ sourcecode/apis/contentauthor/vapor.yml | 3 +++ sourcecode/hub/vapor.yml | 4 ++++ 4 files changed, 13 insertions(+) create mode 100644 sourcecode/apis/contentauthor/production.Dockerfile create mode 100644 sourcecode/apis/contentauthor/staging.Dockerfile diff --git a/sourcecode/apis/contentauthor/production.Dockerfile b/sourcecode/apis/contentauthor/production.Dockerfile new file mode 100644 index 0000000000..14a22f03a1 --- /dev/null +++ b/sourcecode/apis/contentauthor/production.Dockerfile @@ -0,0 +1,3 @@ +FROM laravelphp/vapor:php82 + +COPY . /var/task diff --git a/sourcecode/apis/contentauthor/staging.Dockerfile b/sourcecode/apis/contentauthor/staging.Dockerfile new file mode 100644 index 0000000000..14a22f03a1 --- /dev/null +++ b/sourcecode/apis/contentauthor/staging.Dockerfile @@ -0,0 +1,3 @@ +FROM laravelphp/vapor:php82 + +COPY . /var/task diff --git a/sourcecode/apis/contentauthor/vapor.yml b/sourcecode/apis/contentauthor/vapor.yml index 0b12acd4d6..bf9e4d3867 100644 --- a/sourcecode/apis/contentauthor/vapor.yml +++ b/sourcecode/apis/contentauthor/vapor.yml @@ -5,6 +5,9 @@ environments: memory: 1024 cli-memory: 512 runtime: docker + domain: ca.edlibdev.net + network: edlib-cerpus-test + cache: edlib-cerpus-test-cache build: - 'COMPOSER_MIRROR_PATH_REPOS=1 composer install --no-interaction --prefer-dist --no-dev --optimize-autoloader' - 'php artisan optimize' diff --git a/sourcecode/hub/vapor.yml b/sourcecode/hub/vapor.yml index d04523d48d..d3a576d93f 100644 --- a/sourcecode/hub/vapor.yml +++ b/sourcecode/hub/vapor.yml @@ -5,6 +5,10 @@ environments: memory: 1024 cli-memory: 512 runtime: docker + domain: hub.edlibdev.net + network: edlib-cerpus-test + database: edlib-cerpus-test-hub + cache: edlib-cerpus-test-cache build: - 'COMPOSER_MIRROR_PATH_REPOS=1 composer install --no-interaction --prefer-dist --no-dev --optimize-autoloader' - 'php artisan optimize'