services:
builder:
image: swr.cn-southwest-2.myhuaweicloud.com/yuanrong-dev/compile_arm:2.1
platform: linux/arm64
working_dir: /workspace
volumes:
- ../:/workspace
- go-modules:/go/pkg/mod
- bazel-cache:/root/.cache/bazel
environment:
- GO111MODULE=on
- CGO_ENABLED=1
- GOOS=linux
- GOARCH=arm64
- GOPROXY=${GOPROXY:-https://goproxy.cn,direct}
- BUILD_VERSION=${BUILD_VERSION:-v0.0.1}
- JOBS=${JOBS:-4}
command: ["bash"]
build-all:
image: swr.cn-southwest-2.myhuaweicloud.com/yuanrong-dev/compile_arm:2.1
platform: linux/arm64
working_dir: /workspace
volumes:
- ../:/workspace
- go-modules:/go/pkg/mod
- bazel-cache:/root/.cache/bazel
environment:
- GO111MODULE=on
- CGO_ENABLED=1
- GOOS=linux
- GOARCH=arm64
- GOPROXY=${GOPROXY:-https://goproxy.cn,direct}
- BUILD_VERSION=${BUILD_VERSION:-v0.0.1}
- JOBS=${JOBS:-4}
command: ["make", "all"]
build-fs:
extends: build-all
command: ["make", "functionsystem"]
build-ds:
extends: build-all
command: ["make", "datasystem"]
build-rt:
extends: build-all
command: ["make", "yuanrong"]
volumes:
go-modules:
bazel-cache: