DEV: Allow booting app with slim image and make default for aarch46

This commit is contained in:
David Taylor 2022-12-30 12:45:32 +00:00 committed by Rafael dos Santos Silva
parent 13bfcd2517
commit 76383a95e6
2 changed files with 5 additions and 11 deletions

View File

@ -137,17 +137,11 @@ jobs:
--tag discourse/base:aarch64-slim
docker tag discourse/base:aarch64-slim localhost:5000/discourse/base:aarch64-slim
docker push localhost:5000/discourse/base:aarch64-slim
- name: build release image
- name: release slim image as release
working-directory: image/base
run: |
docker buildx create --name builder --use --driver-opt network=host
docker buildx build . --load \
-f release.Dockerfile \
--platform linux/arm64 \
--network=host \
--build-arg from=localhost:5000/discourse/base \
--build-arg tag=aarch64-slim \
--tag discourse/base:aarch64
docker tag discourse/base:aarch64 localhost:5000/discourse/base:aarch64-slim
docker push localhost:5000/discourse/base:aarch64
- name: Print summary
run: docker images discourse/base
- name: push to dockerhub

View File

@ -106,7 +106,7 @@ run:
- bash -c "ln -s /shared/tmp/{backups,restores} $home/tmp"
- chown -R discourse:www-data /shared/log/rails /shared/uploads /shared/backups /shared/tmp
# scrub broken symlinks from plugins that have been removed
- find public/plugins/ -maxdepth 1 -xtype l -delete
- "[ ! -d public/plugins ] || find public/plugins/ -maxdepth 1 -xtype l -delete"
- exec:
cmd:
@ -156,7 +156,7 @@ run:
- exec:
cd: $home
cmd:
- "[ ! -d 'node_modules' ] || su discourse -c 'yarn install --production --frozen-lockfile && yarn cache clean'"
- su discourse -c 'yarn install --production --frozen-lockfile && yarn cache clean'
- exec:
cd: $home