/[LeafOK_CVS]/lbbs-combo/build.sh
ViewVC logotype

Contents of /lbbs-combo/build.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations)
Fri Jan 9 11:16:28 2026 UTC (2 months ago) by sysadm
Branch: MAIN
Changes since 1.1: +25 -6 lines
Content type: text/x-sh
Update for multi-platform build

1 #!/bin/sh
2
3 if [ ! -n "$DOCKER_PLATFORMS" ]; then
4 DOCKER_PLATFORMS="linux/amd64,linux/arm64"
5 fi
6
7 if [ ! -n "$RUN_PLATFORM" ]; then
8 RUN_PLATFORM="linux/amd64"
9 fi
10
11 git submodule update --init --recursive
12
13 docker buildx ls | grep multi-platform-builder
14
15 if [ $? -ne 0 ]; then
16 docker buildx create --use --name multi-platform-builder --platform=$DOCKER_PLATFORMS
17 else
18 docker buildx use multi-platform-builder
19 fi
20
21 docker buildx inspect multi-platform-builder --bootstrap
22
23 docker buildx build . --platform=$DOCKER_PLATFORMS --file Dockerfile/dockerfile.apache.testing --tag leafok/lbbs-apache:testing
24 docker buildx build . --platform=$DOCKER_PLATFORMS --file Dockerfile/dockerfile.php.testing --tag leafok/lbbs-php:testing
25 docker buildx build . --platform=$DOCKER_PLATFORMS --file Dockerfile/dockerfile.bbsd.testing --tag leafok/lbbs-bbsd:testing
26
27 docker buildx build . --platform=$RUN_PLATFORM --file Dockerfile/dockerfile.apache.testing --tag leafok/lbbs-apache:testing --load
28 docker buildx build . --platform=$RUN_PLATFORM --file Dockerfile/dockerfile.php.testing --tag leafok/lbbs-php:testing --load
29 docker buildx build . --platform=$RUN_PLATFORM --file Dockerfile/dockerfile.bbsd.testing --tag leafok/lbbs-bbsd:testing --load

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1