This is an automated email from the ASF dual-hosted git repository. dockerzhang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/inlong.git
The following commit(s) were added to refs/heads/master by this push: new 081c088f7 [INLONG-6522][Docker] Add notes for building arm images (#6523) 081c088f7 is described below commit 081c088f7fcc5e17470dfc5707e2f7ac0e14b016 Author: Lucas <100204617+lucaspeng12...@users.noreply.github.com> AuthorDate: Thu Nov 17 18:34:31 2022 +0800 [INLONG-6522][Docker] Add notes for building arm images (#6523) --- .github/workflows/ci_docker.yml | 7 +++++++ docker/build-docker-images.sh | 14 ++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/.github/workflows/ci_docker.yml b/.github/workflows/ci_docker.yml index 18e253581..433194b60 100644 --- a/.github/workflows/ci_docker.yml +++ b/.github/workflows/ci_docker.yml @@ -51,6 +51,13 @@ jobs: name: Docker build and push runs-on: ubuntu-latest steps: + - name: Maximize build space + uses: easimon/maximize-build-space@master + with: + root-reserve-mb: 512 + swap-size-mb: 1024 + remove-dotnet: 'true' + - name: Checkout uses: actions/checkout@v3 diff --git a/docker/build-docker-images.sh b/docker/build-docker-images.sh index 485e57f78..5314054ee 100644 --- a/docker/build-docker-images.sh +++ b/docker/build-docker-images.sh @@ -131,6 +131,9 @@ if [ "$BUILD_ARCH" = "$ARCH_X86" ]; then cp ${tubemq_all_tarball} ${tubemq_all_dockerfile_path}/target/${tubemq_all_tarball_name} fi +echo "=== Start to build ============" +echo "=== Build docker tag:${tag} ===" + docker ${USE_BUILDX} build ${USE_PLATFORM} ${TYPE} -t inlong/manager:${tag} inlong-manager/manager-docker/ --build-arg VERSION=${version} docker ${USE_BUILDX} build ${USE_PLATFORM} ${TYPE} -t inlong/dataproxy:${tag} inlong-dataproxy/dataproxy-docker/ --build-arg DATAPROXY_TARBALL=${DATAPROXY_TARBALL} docker ${USE_BUILDX} build ${USE_PLATFORM} ${TYPE} -t inlong/audit:${tag} inlong-audit/audit-docker/ --build-arg AUDIT_TARBALL=${AUDIT_TARBALL} @@ -143,6 +146,13 @@ if [ "$BUILD_ARCH" = "$ARCH_X86" ]; then docker ${USE_BUILDX} build ${USE_PLATFORM} ${TYPE} -t inlong/tubemq-build:${tag} inlong-tubemq/tubemq-docker/tubemq-build/ fi +echo "=== Build images result =======" +docker images | grep inlong +echo "=== End build =================" + +echo "=== Start to tag ==============" +echo "=== Tag postfix:${POSTFIX} ====" + docker tag inlong/manager:${tag} inlong/manager:latest${POSTFIX} docker tag inlong/dataproxy:${tag} inlong/dataproxy:latest${POSTFIX} docker tag inlong/audit:${tag} inlong/audit:latest${POSTFIX} @@ -154,3 +164,7 @@ if [ "$BUILD_ARCH" = "$ARCH_X86" ]; then docker tag inlong/tubemq-build:${tag} inlong/tubemq-build:latest${POSTFIX} docker tag inlong/tubemq-all:${tag} inlong/tubemq-all:latest${POSTFIX} fi + +echo "=== Tag images result =========" +docker images | grep inlong +echo "=== End tag ==================="