From 6a76c75e5172821848bba5bd8112897007ff18d8 Mon Sep 17 00:00:00 2001 From: openeuler_bot <673672685@qq.com> Date: Tue, 15 Oct 2024 02:11:33 +0000 Subject: [PATCH 1/5] 24.03-lts update go to 1.23.2 --- go/1.23.2/24.03-lts/Dockerfile | 34 ++++++++++++++++++++++++++++++++++ go/meta.yml | 4 +++- 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 go/1.23.2/24.03-lts/Dockerfile diff --git a/go/1.23.2/24.03-lts/Dockerfile b/go/1.23.2/24.03-lts/Dockerfile new file mode 100644 index 00000000..d2de4c02 --- /dev/null +++ b/go/1.23.2/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.2 +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 4ebcf80d..f461a922 100644 --- a/go/meta.yml +++ b/go/meta.yml @@ -5,4 +5,6 @@ 1.21.1-oe2203sp3: path: go/1.21.1/22.03-lts-sp3/Dockerfile 1.22.5-oe2203sp4: - path: go/1.22.5/22.03-lts-sp4/Dockerfile \ No newline at end of file + path: go/1.22.5/22.03-lts-sp4/Dockerfile +1.23.2-oe2403lts: + path: go/1.23.2/24.03-lts/Dockerfile \ No newline at end of file -- Gitee From 2256b213a27b1d80c6f2cbc8a7513312c7af4986 Mon Sep 17 00:00:00 2001 From: openeuler_bot <673672685@qq.com> Date: Tue, 15 Oct 2024 02:11:56 +0000 Subject: [PATCH 2/5] 22.03-lts-sp3 update go to 1.23.2 --- go/1.23.2/22.03-lts-sp3/Dockerfile | 34 ++++++++++++++++++++++++++++++ go/meta.yml | 4 +++- 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 go/1.23.2/22.03-lts-sp3/Dockerfile diff --git a/go/1.23.2/22.03-lts-sp3/Dockerfile b/go/1.23.2/22.03-lts-sp3/Dockerfile new file mode 100644 index 00000000..2214b682 --- /dev/null +++ b/go/1.23.2/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.2 +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 f461a922..1946d93d 100644 --- a/go/meta.yml +++ b/go/meta.yml @@ -7,4 +7,6 @@ 1.22.5-oe2203sp4: path: go/1.22.5/22.03-lts-sp4/Dockerfile 1.23.2-oe2403lts: - path: go/1.23.2/24.03-lts/Dockerfile \ No newline at end of file + path: go/1.23.2/24.03-lts/Dockerfile +1.23.2-oe2203sp3: + path: go/1.23.2/22.03-lts-sp3/Dockerfile \ No newline at end of file -- Gitee From a2a9e094cb646e7b1b31d64adae6264bd3d47fb2 Mon Sep 17 00:00:00 2001 From: openeuler_bot <673672685@qq.com> Date: Tue, 15 Oct 2024 02:12:19 +0000 Subject: [PATCH 3/5] 22.03-lts-sp4 update go to 1.23.2 --- go/1.23.2/22.03-lts-sp4/Dockerfile | 34 ++++++++++++++++++++++++++++++ go/meta.yml | 4 +++- 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 go/1.23.2/22.03-lts-sp4/Dockerfile diff --git a/go/1.23.2/22.03-lts-sp4/Dockerfile b/go/1.23.2/22.03-lts-sp4/Dockerfile new file mode 100644 index 00000000..7efa19d6 --- /dev/null +++ b/go/1.23.2/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.2 +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 1946d93d..99e22830 100644 --- a/go/meta.yml +++ b/go/meta.yml @@ -9,4 +9,6 @@ 1.23.2-oe2403lts: path: go/1.23.2/24.03-lts/Dockerfile 1.23.2-oe2203sp3: - path: go/1.23.2/22.03-lts-sp3/Dockerfile \ No newline at end of file + path: go/1.23.2/22.03-lts-sp3/Dockerfile +1.23.2-oe2203sp4: + path: go/1.23.2/22.03-lts-sp4/Dockerfile \ No newline at end of file -- Gitee From 67992967459c3d818f35385cc854c5d68447fee6 Mon Sep 17 00:00:00 2001 From: openeuler_bot <673672685@qq.com> Date: Tue, 15 Oct 2024 02:12:43 +0000 Subject: [PATCH 4/5] 22.03-lts-sp1 update go to 1.23.2 --- go/1.23.2/22.03-lts-sp1/Dockerfile | 34 ++++++++++++++++++++++++++++++ go/meta.yml | 4 +++- 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 go/1.23.2/22.03-lts-sp1/Dockerfile diff --git a/go/1.23.2/22.03-lts-sp1/Dockerfile b/go/1.23.2/22.03-lts-sp1/Dockerfile new file mode 100644 index 00000000..8fe6cd4e --- /dev/null +++ b/go/1.23.2/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.2 +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 99e22830..6f3607af 100644 --- a/go/meta.yml +++ b/go/meta.yml @@ -11,4 +11,6 @@ 1.23.2-oe2203sp3: path: go/1.23.2/22.03-lts-sp3/Dockerfile 1.23.2-oe2203sp4: - path: go/1.23.2/22.03-lts-sp4/Dockerfile \ No newline at end of file + path: go/1.23.2/22.03-lts-sp4/Dockerfile +1.23.2-oe2203sp1: + path: go/1.23.2/22.03-lts-sp1/Dockerfile \ No newline at end of file -- Gitee From 0973213e2c0a1b3a6accb62b3e39d6b38cfda998 Mon Sep 17 00:00:00 2001 From: openeuler_bot <673672685@qq.com> Date: Tue, 15 Oct 2024 02:13:07 +0000 Subject: [PATCH 5/5] 20.03-lts-sp4 update go to 1.23.2 --- go/1.23.2/20.03-lts-sp4/Dockerfile | 34 ++++++++++++++++++++++++++++++ go/meta.yml | 4 +++- 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 go/1.23.2/20.03-lts-sp4/Dockerfile diff --git a/go/1.23.2/20.03-lts-sp4/Dockerfile b/go/1.23.2/20.03-lts-sp4/Dockerfile new file mode 100644 index 00000000..6cefe7d6 --- /dev/null +++ b/go/1.23.2/20.03-lts-sp4/Dockerfile @@ -0,0 +1,34 @@ +ARG BASE=openeuler/openeuler:20.03-lts-sp4 +FROM ${BASE} + +ARG TARGETARCH +ARG LOCAL_PATH=/usr/local + +ENV GOPATH=/go +ENV GOTOOLCHAIN=local +ENV GOLANG_VERSION=1.23.2 +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 6f3607af..92cc9b7f 100644 --- a/go/meta.yml +++ b/go/meta.yml @@ -13,4 +13,6 @@ 1.23.2-oe2203sp4: path: go/1.23.2/22.03-lts-sp4/Dockerfile 1.23.2-oe2203sp1: - path: go/1.23.2/22.03-lts-sp1/Dockerfile \ No newline at end of file + path: go/1.23.2/22.03-lts-sp1/Dockerfile +1.23.2-oe2003sp4: + path: go/1.23.2/20.03-lts-sp4/Dockerfile \ No newline at end of file -- Gitee