From 04a1c54e408c212201ca199dad7a479eaba8a7fc Mon Sep 17 00:00:00 2001 From: Sam Rose Date: Tue, 28 May 2024 14:15:47 +0100 Subject: [PATCH] Create SQS single image build script and yarn task. --- package.json | 1 + scripts/build-single-image-sqs.sh | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 scripts/build-single-image-sqs.sh diff --git a/package.json b/package.json index f3a088b35e..41726f5cb4 100644 --- a/package.json +++ b/package.json @@ -75,6 +75,7 @@ "build:digitalocean": "cd hosting/digitalocean && ./build.sh && cd -", "build:docker:single:multiarch": "docker buildx build --platform linux/arm64,linux/amd64 -f hosting/single/Dockerfile -t budibase:latest .", "build:docker:single": "./scripts/build-single-image.sh", + "build:docker:single:sqs": "./scripts/build-single-image-sqs.sh", "build:docker:dependencies": "docker build -f hosting/dependencies/Dockerfile -t budibase/dependencies:latest ./hosting", "publish:docker:couch": "docker buildx build --platform linux/arm64,linux/amd64 -f hosting/couchdb/Dockerfile -t budibase/couchdb:latest -t budibase/couchdb:v3.3.3 --push ./hosting/couchdb", "publish:docker:couch-sqs": "docker buildx build --platform linux/arm64,linux/amd64 -f hosting/couchdb/Dockerfile.v2 -t budibase/couchdb:v3.3.3-sqs --push ./hosting/couchdb", diff --git a/scripts/build-single-image-sqs.sh b/scripts/build-single-image-sqs.sh new file mode 100644 index 0000000000..502ba5fa14 --- /dev/null +++ b/scripts/build-single-image-sqs.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +yarn build:apps +version=$(./scripts/getCurrentVersion.sh) +docker build -f hosting/single/Dockerfile -t budibase:sqs --build-arg BUDIBASE_VERSION=$version --build-arg TARGETBUILD=single --build-arg BASEIMG=budibase/couchdb:v3.3.3-sqs .