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

Diff of /lbbs-combo/build.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.1 by sysadm, Thu Jan 8 03:27:09 2026 UTC Revision 1.2 by sysadm, Fri Jan 9 11:16:28 2026 UTC
# Line 1  Line 1 
1  #!/bin/sh  #!/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  git submodule update --init --recursive
12    
13  docker build ./leafok_bbs --file ./leafok_bbs/Dockerfile/dockerfile.apache --tag leafok/lbbs-apache:latest  docker buildx ls | grep multi-platform-builder
14  docker build ./leafok_bbs --file ./leafok_bbs/Dockerfile/dockerfile.php --tag leafok/lbbs-php:latest  
15  docker build ./lbbs --file ./lbbs/Dockerfile/dockerfile.bbsd --tag leafok/lbbs-bbsd:latest  if [ $? -ne 0 ]; then
16  docker build . --file Dockerfile/dockerfile.apache.testing --tag leafok/lbbs-apache:testing      docker buildx create --use --name multi-platform-builder --platform=$DOCKER_PLATFORMS
17  docker build . --file Dockerfile/dockerfile.php.testing --tag leafok/lbbs-php:testing  else
18  docker build . --file Dockerfile/dockerfile.bbsd.testing --tag leafok/lbbs-bbsd:testing      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


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

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