From 45069bbabf6a4d46dbac740ed386b368c442c4bc Mon Sep 17 00:00:00 2001 From: nvim Date: Mon, 25 Nov 2024 17:29:09 +0100 Subject: [PATCH] Update generate static step Ref: https://github.com/hl7au/au-fhir-inferno/issues/2 --- .github/workflows/build-and-release-package.yaml | 4 ---- Makefile | 2 +- compose.generate.yml | 10 ++++++++++ 3 files changed, 11 insertions(+), 5 deletions(-) create mode 100644 compose.generate.yml diff --git a/.github/workflows/build-and-release-package.yaml b/.github/workflows/build-and-release-package.yaml index 1f95032..176b692 100644 --- a/.github/workflows/build-and-release-package.yaml +++ b/.github/workflows/build-and-release-package.yaml @@ -15,10 +15,6 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v4 - - name: Set up permissions for data directory - run: | - sudo chown -R $USER:$USER data - sudo chmod -R 755 data - name: Generate static content run: make generate - name: Log in to the Container registry diff --git a/Makefile b/Makefile index bb1120f..c8d60d1 100644 --- a/Makefile +++ b/Makefile @@ -22,7 +22,7 @@ remove_data: rm -rf data/redis generate: - $(compose) run inferno_web bundle exec rake web:generate + $(compose) -f compose.generate.yml run inferno bundle exec rake web:generate migrate: $(compose) run inferno_web /opt/inferno/migrate.sh diff --git a/compose.generate.yml b/compose.generate.yml new file mode 100644 index 0000000..0160263 --- /dev/null +++ b/compose.generate.yml @@ -0,0 +1,10 @@ +version: '3' +services: + inferno: + build: + context: ./ + mem_limit: 1500m + restart: unless-stopped + volumes: + - ./resources:/opt/inferno/resources + - ./_site:/opt/inferno/_site