From 7a2fca4e8df7c550b29bc23be6ba33dce731c77a Mon Sep 17 00:00:00 2001 From: openeuler_bot <673672685@qq.com> Date: Wed, 4 Dec 2024 00:22:49 +0000 Subject: [PATCH 1/4] 24.03-lts update go to 1.23.4 --- go/1.23.4/24.03-lts/Dockerfile | 34 ++++++++++++++++++++++++++++++++++ go/meta.yml | 4 +++- 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 go/1.23.4/24.03-lts/Dockerfile diff --git a/go/1.23.4/24.03-lts/Dockerfile b/go/1.23.4/24.03-lts/Dockerfile new file mode 100644 index 00000000..b9977d21 --- /dev/null +++ b/go/1.23.4/24.03-lts/Dockerfile @@ -0,0 +1,34 @@ +ARG BASE=openeuler/openeuler:24.03-lts +FROM ${BASE} + +ARG TARGETARCH +ARG LOCAL_PATH=/usr/local + +ENV GOPATH=/go +ENV GOTOOLCHAIN=local +ENV GOLANG_VERSION=1.23.4 +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/go/meta.yml b/go/meta.yml index 6b7647cf..5b0299b8 100644 --- a/go/meta.yml +++ b/go/meta.yml @@ -23,4 +23,6 @@ 1.23.3-oe2203sp4: path: go/1.23.3/22.03-lts-sp4/Dockerfile 1.23.3-oe2403lts: - path: go/1.23.3/24.03-lts/Dockerfile \ No newline at end of file + path: go/1.23.3/24.03-lts/Dockerfile +1.23.4-oe2403lts: + path: go/1.23.4/24.03-lts/Dockerfile \ No newline at end of file -- Gitee From 2aed1a17f253240756e1efe0100e651942e015d4 Mon Sep 17 00:00:00 2001 From: openeuler_bot <673672685@qq.com> Date: Wed, 4 Dec 2024 00:23:20 +0000 Subject: [PATCH 2/4] 22.03-lts-sp3 update go to 1.23.4 --- go/1.23.4/22.03-lts-sp3/Dockerfile | 34 ++++++++++++++++++++++++++++++ go/meta.yml | 4 +++- 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 go/1.23.4/22.03-lts-sp3/Dockerfile diff --git a/go/1.23.4/22.03-lts-sp3/Dockerfile b/go/1.23.4/22.03-lts-sp3/Dockerfile new file mode 100644 index 00000000..eb1ed328 --- /dev/null +++ b/go/1.23.4/22.03-lts-sp3/Dockerfile @@ -0,0 +1,34 @@ +ARG BASE=openeuler/openeuler:22.03-lts-sp3 +FROM ${BASE} + +ARG TARGETARCH +ARG LOCAL_PATH=/usr/local + +ENV GOPATH=/go +ENV GOTOOLCHAIN=local +ENV GOLANG_VERSION=1.23.4 +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/go/meta.yml b/go/meta.yml index 5b0299b8..ab78ba32 100644 --- a/go/meta.yml +++ b/go/meta.yml @@ -25,4 +25,6 @@ 1.23.3-oe2403lts: path: go/1.23.3/24.03-lts/Dockerfile 1.23.4-oe2403lts: - path: go/1.23.4/24.03-lts/Dockerfile \ No newline at end of file + path: go/1.23.4/24.03-lts/Dockerfile +1.23.4-oe2203sp3: + path: go/1.23.4/22.03-lts-sp3/Dockerfile \ No newline at end of file -- Gitee From e29059d0024ec50728ba6e1289e9a03fdcac2044 Mon Sep 17 00:00:00 2001 From: openeuler_bot <673672685@qq.com> Date: Wed, 4 Dec 2024 00:23:51 +0000 Subject: [PATCH 3/4] 22.03-lts-sp4 update go to 1.23.4 --- go/1.23.4/22.03-lts-sp4/Dockerfile | 34 ++++++++++++++++++++++++++++++ go/meta.yml | 4 +++- 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 go/1.23.4/22.03-lts-sp4/Dockerfile diff --git a/go/1.23.4/22.03-lts-sp4/Dockerfile b/go/1.23.4/22.03-lts-sp4/Dockerfile new file mode 100644 index 00000000..6325f9d7 --- /dev/null +++ b/go/1.23.4/22.03-lts-sp4/Dockerfile @@ -0,0 +1,34 @@ +ARG BASE=openeuler/openeuler:22.03-lts-sp4 +FROM ${BASE} + +ARG TARGETARCH +ARG LOCAL_PATH=/usr/local + +ENV GOPATH=/go +ENV GOTOOLCHAIN=local +ENV GOLANG_VERSION=1.23.4 +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/go/meta.yml b/go/meta.yml index ab78ba32..73202617 100644 --- a/go/meta.yml +++ b/go/meta.yml @@ -27,4 +27,6 @@ 1.23.4-oe2403lts: path: go/1.23.4/24.03-lts/Dockerfile 1.23.4-oe2203sp3: - path: go/1.23.4/22.03-lts-sp3/Dockerfile \ No newline at end of file + path: go/1.23.4/22.03-lts-sp3/Dockerfile +1.23.4-oe2203sp4: + path: go/1.23.4/22.03-lts-sp4/Dockerfile \ No newline at end of file -- Gitee From b5d433c564f4ca09ccb9d51bda1a1707dc19a398 Mon Sep 17 00:00:00 2001 From: openeuler_bot <673672685@qq.com> Date: Wed, 4 Dec 2024 00:24:23 +0000 Subject: [PATCH 4/4] 22.03-lts-sp1 update go to 1.23.4 --- go/1.23.4/22.03-lts-sp1/Dockerfile | 34 ++++++++++++++++++++++++++++++ go/meta.yml | 4 +++- 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 go/1.23.4/22.03-lts-sp1/Dockerfile diff --git a/go/1.23.4/22.03-lts-sp1/Dockerfile b/go/1.23.4/22.03-lts-sp1/Dockerfile new file mode 100644 index 00000000..caf7e854 --- /dev/null +++ b/go/1.23.4/22.03-lts-sp1/Dockerfile @@ -0,0 +1,34 @@ +ARG BASE=openeuler/openeuler:22.03-lts-sp1 +FROM ${BASE} + +ARG TARGETARCH +ARG LOCAL_PATH=/usr/local + +ENV GOPATH=/go +ENV GOTOOLCHAIN=local +ENV GOLANG_VERSION=1.23.4 +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/go/meta.yml b/go/meta.yml index 73202617..6d43161d 100644 --- a/go/meta.yml +++ b/go/meta.yml @@ -29,4 +29,6 @@ 1.23.4-oe2203sp3: path: go/1.23.4/22.03-lts-sp3/Dockerfile 1.23.4-oe2203sp4: - path: go/1.23.4/22.03-lts-sp4/Dockerfile \ No newline at end of file + path: go/1.23.4/22.03-lts-sp4/Dockerfile +1.23.4-oe2203sp1: + path: go/1.23.4/22.03-lts-sp1/Dockerfile \ No newline at end of file -- Gitee