From 7b76942ee074159fe34822e04ccc52e7d7254f8f Mon Sep 17 00:00:00 2001 From: openeuler_bot <673672685@qq.com> Date: Thu, 15 May 2025 02:17:44 +0000 Subject: [PATCH] 24.03-lts-sp1 update go to 1.24.3 --- Others/go/1.24.3/24.03-lts-sp1/Dockerfile | 34 +++++++++++++++++++++++ Others/go/meta.yml | 4 ++- 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 Others/go/1.24.3/24.03-lts-sp1/Dockerfile diff --git a/Others/go/1.24.3/24.03-lts-sp1/Dockerfile b/Others/go/1.24.3/24.03-lts-sp1/Dockerfile new file mode 100644 index 0000000..d364a8c --- /dev/null +++ b/Others/go/1.24.3/24.03-lts-sp1/Dockerfile @@ -0,0 +1,34 @@ +ARG BASE=openeuler/openeuler:24.03-lts-sp1 +FROM ${BASE} + +ARG TARGETARCH +ARG LOCAL_PATH=/usr/local + +ENV GOPATH=/go +ENV GOTOOLCHAIN=local +ENV GOLANG_VERSION=1.24.3 +ENV GOROOT=${LOCAL_PATH}/go +ENV PATH=$GOPATH/bin:$GOROOT/bin:$PATH + +RUN set -eux; \ + yum update -y && yum -y install g++ gcc glibc-devel make pkg-config findutils && yum clean all; \ + curl -fSL -o ${LOCAL_PATH}/go.tar.gz https://dl.google.com/go/go${GOLANG_VERSION}.linux-${TARGETARCH}.tar.gz; \ + tar -xvf ${LOCAL_PATH}/go.tar.gz -C ${LOCAL_PATH}; \ + rm -f ${LOCAL_PATH}/go.tar.gz + +RUN set -eux; \ + find ${GOROOT}/src -exec touch -r ${GOROOT}/VERSION "{}" \; && \ + touch ${GOROOT}/pkg; \ + find ${GOROOT}/pkg -exec touch -r ${GOROOT}/pkg "{}" \; && \ + mkdir -p ${GOROOT}/bin/linux_${TARGETARCH}; \ + ln -sf ${GOROOT}/bin/go ${GOROOT}/bin/linux_${TARGETARCH}/go; \ + ln -sf ${GOROOT}/bin/gofmt ${GOROOT}/bin/linux_${TARGETARCH}/gofmt + +RUN mkdir -p "$GOPATH/src" "$GOPATH/bin"; \ + chmod -R 1777 "$GOPATH"; \ + yum -y remove g++ gcc glibc-devel make pkg-config findutils; \ + yum clean all + +WORKDIR $GOPATH + +CMD ["go", "version"] \ No newline at end of file diff --git a/Others/go/meta.yml b/Others/go/meta.yml index 34d03a4..e502d67 100644 --- a/Others/go/meta.yml +++ b/Others/go/meta.yml @@ -49,4 +49,6 @@ 1.24.0-oe2203sp1: path: 1.24.0/22.03-lts-sp1/Dockerfile 1.24.1-oe2403lts: - path: Others/go/1.24.1/24.03-lts/Dockerfile \ No newline at end of file + path: Others/go/1.24.1/24.03-lts/Dockerfile +1.24.3-oe2403sp1: + path: Others/go/1.24.3/24.03-lts-sp1/Dockerfile \ No newline at end of file -- Gitee