diff --git a/docker/Dockerfile.c7-systemd-linux b/docker/Dockerfile.c7-systemd-linux deleted file mode 100644 index 7d74e32ccc..0000000000 --- a/docker/Dockerfile.c7-systemd-linux +++ /dev/null @@ -1,16 +0,0 @@ -FROM centos:centos7.9.2009 -ENV container docker -RUN (cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == \ -systemd-tmpfiles-setup.service ] || rm -f $i; done); \ -rm -f /lib/systemd/system/multi-user.target.wants/*;\ -rm -f /etc/systemd/system/*.wants/*;\ -rm -f /lib/systemd/system/local-fs.target.wants/*; \ -rm -f /lib/systemd/system/sockets.target.wants/*udev*; \ -rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \ -rm -f /lib/systemd/system/basic.target.wants/*;\ -rm -f /lib/systemd/system/anaconda.target.wants/*; -VOLUME [ "/sys/fs/cgroup" ] - -RUN yum update -y && yum upgrade -y && yum -y clean all && rm -fr /var/cache && rm -rf /core.* - -CMD ["/usr/sbin/init"] diff --git a/docker/Dockerfile.centos7-cve-fix b/docker/Dockerfile.centos7-cve-fix new file mode 100644 index 0000000000..e4b410ac52 --- /dev/null +++ b/docker/Dockerfile.centos7-cve-fix @@ -0,0 +1,6 @@ +FROM centos:centos7.9.2009 +ENV container docker + +RUN yum update -y && yum upgrade -y && yum -y clean all && rm -fr /var/cache && rm -rf /core.* + +CMD ["/usr/sbin/init"] diff --git a/docker/Dockerfile.ilogtail-build-linux-amd64 b/docker/Dockerfile.ilogtail-build-linux similarity index 50% rename from docker/Dockerfile.ilogtail-build-linux-amd64 rename to docker/Dockerfile.ilogtail-build-linux index e9b4793e84..bda2ecc2ee 100644 --- a/docker/Dockerfile.ilogtail-build-linux-amd64 +++ b/docker/Dockerfile.ilogtail-build-linux @@ -1,17 +1,20 @@ -FROM local/ilogtail-toolchain-linux-amd64 as dep-build +FROM --platform=$TARGETPLATFORM sls-opensource-registry.cn-shanghai.cr.aliyuncs.com/ilogtail-community-edition/ilogtail-toolchain-linux:1.2.0 as dep-build -RUN curl -sSfL https://ilogtail-community-edition.oss-cn-shanghai.aliyuncs.com/toolchain/goc-v1.4.1-linux-amd64.tar.gz -o goc-v1.4.1-linux-amd64.tar.gz && \ - tar -xzf goc-v1.4.1-linux-amd64.tar.gz +ARG TARGETPLATFORM -RUN curl -sSfL https://ilogtail-community-edition.oss-cn-shanghai.aliyuncs.com/prebuilt-dependencies/ilogtail-deps.linux-amd64.tar.gz -o ilogtail-deps.linux-amd64.tar.gz && \ - tar -xzf ilogtail-deps.linux-amd64.tar.gz +RUN curl -sSfL https://ilogtail-community-edition.oss-cn-shanghai.aliyuncs.com/toolchain/goc-v1.4.1-linux-${TARGETPLATFORM##*/}.tar.gz -o goc-v1.4.1-linux-${TARGETPLATFORM##*/}.tar.gz && \ + tar -xzf goc-v1.4.1-linux-${TARGETPLATFORM##*/}.tar.gz -FROM local/ilogtail-toolchain-linux-amd64 +RUN curl -sSfL https://ilogtail-community-edition.oss-cn-shanghai.aliyuncs.com/prebuilt-dependencies/ilogtail-deps.linux-${TARGETPLATFORM##*/}.tar.gz -o ilogtail-deps.linux-${TARGETPLATFORM##*/}.tar.gz && \ + tar -xzf ilogtail-deps.linux-${TARGETPLATFORM##*/}.tar.gz && \ + mv ilogtail-deps.linux-${TARGETPLATFORM##*/} ilogtail-deps + +FROM --platform=$TARGETPLATFORM sls-opensource-registry.cn-shanghai.cr.aliyuncs.com/ilogtail-community-edition/ilogtail-toolchain-linux:1.2.0 RUN mkdir -p /usr/local/bin /opt/logtail # install goc for coverage COPY --from=dep-build goc /usr/local/bin # install c++ deps -COPY --from=dep-build ilogtail-deps.linux-amd64 /opt/logtail/deps +COPY --from=dep-build ilogtail-deps /opt/logtail/deps ARG USERNAME=admin ARG USER_UID=500 diff --git a/docker/Dockerfile.ilogtail-build-linux-arm64 b/docker/Dockerfile.ilogtail-build-linux-arm64 deleted file mode 100644 index 28fb201ec2..0000000000 --- a/docker/Dockerfile.ilogtail-build-linux-arm64 +++ /dev/null @@ -1,31 +0,0 @@ -FROM local/ilogtail-toolchain-linux-arm64 as dep-build - -RUN curl -sSfL https://ilogtail-community-edition.oss-cn-shanghai.aliyuncs.com/toolchain/goc-v1.4.1-linux-arm64.tar.gz -o goc-v1.4.1-linux-arm64.tar.gz && \ - tar -xzf goc-v1.4.1-linux-arm64.tar.gz - -RUN curl -sSfL https://ilogtail-community-edition.oss-cn-shanghai.aliyuncs.com/prebuilt-dependencies/ilogtail-deps.linux-arm64.tar.gz -o ilogtail-deps.linux-arm64.tar.gz && \ - tar -xzf ilogtail-deps.linux-arm64.tar.gz - -FROM local/ilogtail-toolchain-linux-arm64 -RUN mkdir -p /usr/local/bin /opt/logtail -# install goc for coverage -COPY --from=dep-build goc /usr/local/bin -# install c++ deps -COPY --from=dep-build ilogtail-deps.linux-arm64 /opt/logtail/deps - -ARG USERNAME=admin -ARG USER_UID=500 -ARG GROUPNAME=$USERNAME -ARG GROUP_GID=$USER_UID - -# Create the user -RUN if getent passwd $USERNAME; then userdel -f $USERNAME; fi && \ - if getent group $GROUPNAME; then groupdel $GROUPNAME; fi && \ - groupadd --gid $GROUP_GID $USERNAME && \ - useradd --uid $USER_UID --gid $GROUP_GID -m $USERNAME && \ - echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME && \ - chmod 0440 /etc/sudoers.d/$USERNAME && \ - chown -R $USERNAME:$GROUPNAME $(eval echo ~$USERNAME) && \ - chmod 755 $(eval echo ~$USERNAME) - -USER $USERNAME diff --git a/docker/Dockerfile.ilogtail-toolchain-linux-arm64 b/docker/Dockerfile.ilogtail-toolchain-linux similarity index 63% rename from docker/Dockerfile.ilogtail-toolchain-linux-arm64 rename to docker/Dockerfile.ilogtail-toolchain-linux index 9b5c75cf35..3293378e28 100644 --- a/docker/Dockerfile.ilogtail-toolchain-linux-arm64 +++ b/docker/Dockerfile.ilogtail-toolchain-linux @@ -1,4 +1,6 @@ -FROM local/c7-systemd-linux-arm64 as toolchain-build +FROM --platform=$TARGETPLATFORM sls-opensource-registry.cn-shanghai.cr.aliyuncs.com/ilogtail-community-edition/centos7-cve-fix:1.0.0 as toolchain-build + +ARG TARGETPLATFORM # install dependencies RUN yum -y install epel-release centos-release-scl @@ -20,10 +22,12 @@ ENV MANPATH=/opt/rh/devtoolset-8/root/usr/share/man \ WORKDIR / # prepare cmake -RUN wget -nv https://ilogtail-community-edition.oss-cn-shanghai.aliyuncs.com/toolchain/cmake-3.23.2-linux-aarch64.tar.gz && \ - tar -xzf cmake-3.23.2-linux-aarch64.tar.gz -ENV CMAKE_ROOT=/cmake-3.23.2-linux-aarch64 \ - PATH=/cmake-3.23.2-linux-aarch64/bin:$PATH +RUN [[ ${TARGETPLATFORM##*/} == 'amd64' ]] && ARCH='x86_64' || ARCH='aarch64' && \ + wget -nv https://ilogtail-community-edition.oss-cn-shanghai.aliyuncs.com/toolchain/cmake-3.23.2-linux-${ARCH}.tar.gz && \ + tar -xzf cmake-3.23.2-linux-${ARCH}.tar.gz && \ + mv cmake-3.23.2-linux-${ARCH} cmake-3.23.2 +ENV CMAKE_ROOT=/cmake-3.23.2 \ + PATH=/cmake-3.23.2/bin:$PATH # build clang RUN wget -nv https://ilogtail-community-edition.oss-cn-shanghai.aliyuncs.com/toolchain/llvm-project-14.0.0.src.tar.xz && \ @@ -45,22 +49,24 @@ RUN wget -nv https://ilogtail-community-edition.oss-cn-shanghai.aliyuncs.com/too cd / # prepare go -RUN wget -nv https://ilogtail-community-edition.oss-cn-shanghai.aliyuncs.com/toolchain/go1.18.5.linux-arm64.tar.gz && \ - tar -xzf go1.18.5.linux-arm64.tar.gz +RUN wget -nv https://ilogtail-community-edition.oss-cn-shanghai.aliyuncs.com/toolchain/go1.19.10.linux-${TARGETPLATFORM##*/}.tar.gz && \ + tar -xzf go1.19.10.linux-${TARGETPLATFORM##*/}.tar.gz # prepare golangci-lint -RUN wget -nv https://ilogtail-community-edition.oss-cn-shanghai.aliyuncs.com/toolchain/golangci-lint-1.49.0-linux-arm64.tar.gz && \ - tar -xzf golangci-lint-1.49.0-linux-arm64.tar.gz +RUN wget -nv https://ilogtail-community-edition.oss-cn-shanghai.aliyuncs.com/toolchain/golangci-lint-1.53.2-linux-${TARGETPLATFORM##*/}.tar.gz && \ + tar -xzf golangci-lint-1.53.2-linux-${TARGETPLATFORM##*/}.tar.gz && \ + mv golangci-lint-1.53.2-linux-${TARGETPLATFORM##*/} golangci-lint-1.53.2 -FROM local/c7-systemd-linux-arm64 +FROM --platform=$TARGETPLATFORM sls-opensource-registry.cn-shanghai.cr.aliyuncs.com/ilogtail-community-edition/centos7-cve-fix:1.0.0 # install dev tool set and debug utilities RUN yum -y install gcc gcc-c++ make libuuid-devel libstdc++-static systemd-devel iproute gdb net-tools which wget vim tree man openssh-clients sudo && \ yum -y clean all && rm -fr /var/cache && rm -rf /core.* -RUN debuginfo-install -y glibc-2.17-326.el7_9.aarch64 libuuid-2.23.2-65.el7_9.1.aarch64 +RUN [[ ${TARGETPLATFORM##*/} == 'amd64' ]] && ARCH='x86_64' || ARCH='aarch64' && \ + debuginfo-install -y glibc-2.17-326.el7_9.${ARCH} libuuid-2.23.2-65.el7_9.1.${ARCH} # install cmake -COPY --from=toolchain-build /cmake-3.23.2-linux-aarch64 /usr/ +COPY --from=toolchain-build /cmake-3.23.2 /usr/ # install clang-format COPY --from=toolchain-build /llvm-project-14.0.0.src/build/bin/clang-format /usr/bin/ @@ -68,20 +74,20 @@ RUN chmod +x /usr/bin/clang-format # install golang WORKDIR / -COPY --from=toolchain-build /go /go -ENV GOROOT=/go GOPATH=/opt/go PATH=/go/bin:$PATH +COPY --from=toolchain-build /go /usr/local/go +ENV GOROOT=/usr/local/go GOPATH=/opt/go PATH=/usr/local/go/bin:$PATH # install golangci-lint -COPY --from=toolchain-build /golangci-lint-1.49.0-linux-arm64/golangci-lint /opt/go/bin/ +COPY --from=toolchain-build /golangci-lint-1.53.2/golangci-lint /opt/go/bin/ # install go language server RUN go env -w GOPROXY="https://goproxy.cn,direct" -RUN go install golang.org/x/tools/gopls@v0.10.1 && \ - go install github.com/go-delve/delve/cmd/dlv@v1.6.1 && \ - go install github.com/josharian/impl@v1.1.0 && \ +RUN go install golang.org/x/tools/gopls@v0.12.2 && \ + go install github.com/go-delve/delve/cmd/dlv@v1.20.2 && \ + go install github.com/josharian/impl@v1.2.0 && \ go install github.com/fatih/gomodifytags@v1.16.0 && \ go install github.com/cweill/gotests/gotests@v1.6.0 && \ - go install honnef.co/go/tools/cmd/staticcheck@v0.2.2 + go install honnef.co/go/tools/cmd/staticcheck@v0.4.3 # install git COPY --from=toolchain-build /git-2.29.3/git /usr/bin diff --git a/docker/Dockerfile.ilogtail-toolchain-linux-amd64 b/docker/Dockerfile.ilogtail-toolchain-linux-amd64 deleted file mode 100644 index 7f93becf4c..0000000000 --- a/docker/Dockerfile.ilogtail-toolchain-linux-amd64 +++ /dev/null @@ -1,89 +0,0 @@ -FROM local/c7-systemd-linux-amd64 as toolchain-build - -# install dependencies -RUN yum -y install epel-release centos-release-scl -RUN yum -y install devtoolset-8-gcc devtoolset-8-gcc-c++ make -RUN yum -y install curl-devel expat-devel gettext-devel openssl-devel perl-devel python3-devel zlib-devel \ - asciidoc xmlto docbook2X wget - -# using gcc8 -ENV MANPATH=/opt/rh/devtoolset-8/root/usr/share/man \ - PERL5LIB=/opt/rh/devtoolset-8/root//usr/lib64/perl5/vendor_perl:/opt/rh/devtoolset-8/root/usr/lib/perl5:/opt/rh/devtoolset-8/root//usr/share/perl5/vendor_perl \ - X_SCLS=devtoolset-8 \ - PCP_DIR=/opt/rh/devtoolset-8/root \ - LD_LIBRARY_PATH=/opt/rh/devtoolset-8/root/usr/lib64:/opt/rh/devtoolset-8/root/usr/lib:/opt/rh/devtoolset-8/root/usr/lib64/dyninst:/opt/rh/devtoolset-8/root/usr/lib/dyninst:/opt/rh/devtoolset-8/root/usr/lib64:/opt/rh/devtoolset-8/root/usr/lib \ - PATH=/usr/ali/bin:/opt/rh/devtoolset-8/root/usr/bin:$PATH \ - PYTHONPATH=/opt/rh/devtoolset-8/root/usr/lib64/python2.7/site-packages:/opt/rh/devtoolset-8/root/usr/lib/python2.7/site-packages \ - PKG_CONFIG_PATH=/opt/rh/devtoolset-8/root/usr/lib64/pkgconfig \ - INFOPATH=/opt/rh/devtoolset-8/root/usr/share/info - -WORKDIR / - -# prepare cmake -RUN wget -nv https://ilogtail-community-edition.oss-cn-shanghai.aliyuncs.com/toolchain/cmake-3.23.2-linux-x86_64.tar.gz && \ - tar -xzf cmake-3.23.2-linux-x86_64.tar.gz -ENV CMAKE_ROOT=/cmake-3.23.2-linux-x86_64 \ - PATH=/cmake-3.23.2-linux-x86_64/bin:$PATH - -# build clang -RUN wget -nv https://ilogtail-community-edition.oss-cn-shanghai.aliyuncs.com/toolchain/llvm-project-14.0.0.src.tar.xz && \ - tar -xf llvm-project-14.0.0.src.tar.xz && \ - mkdir llvm-project-14.0.0.src/build && \ - cd llvm-project-14.0.0.src/build && \ - cmake -G 'Unix Makefiles' -D CMAKE_C_COMPILER=/opt/rh/devtoolset-8/root/usr/bin/gcc \ - -D CMAKE_CXX_COMPILER=/opt/rh/devtoolset-8/root/usr/bin/g++ \ - -D LLVM_ENABLE_PROJECTS='clang' \ - -D CMAKE_BUILD_TYPE=Release ../llvm && \ - make -sj$(nproc) clang-format && \ - cd / - -# build git -RUN wget -nv https://ilogtail-community-edition.oss-cn-shanghai.aliyuncs.com/toolchain/git-2.29.3.tar.xz && \ - tar -xf git-2.29.3.tar.xz && \ - cd git-2.29.3 && \ - make -sj$(nproc) install install-man prefix=$PWD/build && \ - cd / - -# prepare go -RUN wget -nv https://ilogtail-community-edition.oss-cn-shanghai.aliyuncs.com/toolchain/go1.18.5.linux-amd64.tar.gz && \ - tar -xzf go1.18.5.linux-amd64.tar.gz - -# prepare golangci-lint -RUN wget -nv https://ilogtail-community-edition.oss-cn-shanghai.aliyuncs.com/toolchain/golangci-lint-1.49.0-linux-amd64.tar.gz && \ - tar -xzf golangci-lint-1.49.0-linux-amd64.tar.gz - -FROM local/c7-systemd-linux-amd64 - -# install dev tool set and debug utilities -RUN yum -y install gcc gcc-c++ make libuuid-devel libstdc++-static systemd-devel iproute gdb net-tools which wget vim tree man openssh-clients sudo && \ - yum -y clean all && rm -fr /var/cache && rm -rf /core.* -RUN debuginfo-install -y glibc-2.17-326.el7_9.x86_64 libuuid-2.23.2-65.el7_9.1.x86_64 - -# install cmake -COPY --from=toolchain-build /cmake-3.23.2-linux-x86_64 /usr/ - -# install clang-format -COPY --from=toolchain-build /llvm-project-14.0.0.src/build/bin/clang-format /usr/bin/ -RUN chmod +x /usr/bin/clang-format - -# install golang -WORKDIR / -COPY --from=toolchain-build /go /go -ENV GOROOT=/go GOPATH=/opt/go PATH=/go/bin:$PATH - -# install golangci-lint -COPY --from=toolchain-build /golangci-lint-1.49.0-linux-amd64/golangci-lint /opt/go/bin/ - -# install go language server -RUN go env -w GOPROXY="https://goproxy.cn,direct" -RUN go install golang.org/x/tools/gopls@v0.10.1 && \ - go install github.com/go-delve/delve/cmd/dlv@v1.6.1 && \ - go install github.com/josharian/impl@v1.1.0 && \ - go install github.com/fatih/gomodifytags@v1.16.0 && \ - go install github.com/cweill/gotests/gotests@v1.6.0 && \ - go install honnef.co/go/tools/cmd/staticcheck@v0.2.2 - -# install git -COPY --from=toolchain-build /git-2.29.3/git /usr/bin -RUN chmod +x /usr/bin/git - diff --git a/docker/Dockerfile_production b/docker/Dockerfile_production index c910e56d5e..347d9119f7 100644 --- a/docker/Dockerfile_production +++ b/docker/Dockerfile_production @@ -24,16 +24,6 @@ FROM centos:centos7.9.2009 MAINTAINER TomYu yyuuttaaoo@gmail.com ENV container docker -RUN (cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == \ - systemd-tmpfiles-setup.service ] || rm -f $i; done); \ - rm -f /lib/systemd/system/multi-user.target.wants/*;\ - rm -f /etc/systemd/system/*.wants/*;\ - rm -f /lib/systemd/system/local-fs.target.wants/*; \ - rm -f /lib/systemd/system/sockets.target.wants/*udev*; \ - rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \ - rm -f /lib/systemd/system/basic.target.wants/*;\ - rm -f /lib/systemd/system/anaconda.target.wants/*; -VOLUME [ "/sys/fs/cgroup" ] RUN yum update -y && yum upgrade -y && yum -y clean all && rm -fr /var/cache && rm -rf /core.* diff --git a/docker/README.md b/docker/README.md index db3434e90c..95b784787c 100644 --- a/docker/README.md +++ b/docker/README.md @@ -2,9 +2,9 @@ ## Dockerfiles to build build image -Dockerfile.c7-systemd-linux: base system -Dockerfile.ilogtail-toolchain-linux-amd64: install toolchain -Dockerfile.ilogtail-build-linux-amd64: add dependencies +Dockerfile.centos7-cve-fix: base system +Dockerfile.ilogtail-toolchain-linux: install toolchain +Dockerfile.ilogtail-build-linux: add dependencies ## Dockerfiles to build iLogtail diff --git a/docker/build-mono-arch-build-image.sh b/docker/build-mono-arch-build-image.sh deleted file mode 100755 index 648cf52b45..0000000000 --- a/docker/build-mono-arch-build-image.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env bash - -# Copyright 2022 iLogtail Authors -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -set -ue -set -o pipefail - -cd $(dirname "${BASH_SOURCE[0]}") - -machine=`uname -m` -[[ $machine = 'aarch64' ]] && arch=arm64 || arch=amd64 - -docker build --rm -t local/c7-systemd-linux-${arch} . -f Dockerfile.c7-systemd-linux -docker build --rm -t local/ilogtail-toolchain-linux-${arch} . -f Dockerfile.ilogtail-toolchain-linux-${arch} -docker build --rm -t local/ilogtail-build-linux-${arch} . -f Dockerfile.ilogtail-build-linux-${arch} - -cd - diff --git a/docker/build-multi-arch-build-image.sh b/docker/build-multi-arch-build-image.sh index 4cd4be7222..118585ec1a 100755 --- a/docker/build-multi-arch-build-image.sh +++ b/docker/build-multi-arch-build-image.sh @@ -1,28 +1,19 @@ -#!/usr/bin/env bash +#docker buildx build --platform linux/amd64,linux/arm64 \ +# -t sls-opensource-registry.cn-shanghai.cr.aliyuncs.com/ilogtail-community-edition/centos7-cve-fix:1.0.0 \ +# -o type=registry \ +# --no-cache -f Dockerfile.centos7-cve-fix . -# Copyright 2022 iLogtail Authors -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +#docker buildx build --platform linux/amd64,linux/arm64 \ +# -t sls-opensource-registry.cn-shanghai.cr.aliyuncs.com/ilogtail-community-edition/ilogtail-toolchain-linux:1.2.0 \ +# -o type=registry \ +# --no-cache -f Dockerfile.ilogtail-toolchain-linux . -set -ue -set -o pipefail +#docker buildx build --platform linux/amd64,linux/arm64 \ +# -t sls-opensource-registry.cn-shanghai.cr.aliyuncs.com/ilogtail-community-edition/ilogtail-build-linux:1.2.0 \ +# -o type=registry \ +# --no-cache -f Dockerfile.ilogtail-build-linux . -TAG_VERSION=latest +#curl -L https://github.com/regclient/regclient/releases/latest/download/regctl-linux-amd64 >regctl -docker manifest rm sls-opensource-registry.cn-shanghai.cr.aliyuncs.com/ilogtail-community-edition/ilogtail-build-linux:${TAG_VERSION} -docker manifest create \ -sls-opensource-registry.cn-shanghai.cr.aliyuncs.com/ilogtail-community-edition/ilogtail-build-linux:${TAG_VERSION} \ ---amend sls-opensource-registry.cn-shanghai.cr.aliyuncs.com/ilogtail-community-edition/ilogtail-build-linux-amd64:${TAG_VERSION} \ ---amend sls-opensource-registry.cn-shanghai.cr.aliyuncs.com/ilogtail-community-edition/ilogtail-build-linux-arm64:${TAG_VERSION} - -docker manifest push sls-opensource-registry.cn-shanghai.cr.aliyuncs.com/ilogtail-community-edition/ilogtail-build-linux:${TAG_VERSION} +regctl image copy sls-opensource-registry.cn-shanghai.cr.aliyuncs.com/ilogtail-community-edition/ilogtail-build-linux:1.2.0 \ + sls-opensource-registry.cn-shanghai.cr.aliyuncs.com/ilogtail-community-edition/ilogtail-build-linux:latest