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 0000000000000000000000000000000000000000..6cefe7d6bb17565b3c63f810a1942229d7ac530d --- /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/1.23.2/22.03-lts-sp1/Dockerfile b/go/1.23.2/22.03-lts-sp1/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..8fe6cd4e935be438f8cea4c35bc918e4778ee381 --- /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/1.23.2/22.03-lts-sp3/Dockerfile b/go/1.23.2/22.03-lts-sp3/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..2214b68278cd1902926b4dd19965f31383d085af --- /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/1.23.2/22.03-lts-sp4/Dockerfile b/go/1.23.2/22.03-lts-sp4/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..7efa19d65a2b4e017c8056265512f4b601c8b297 --- /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/1.23.2/24.03-lts/Dockerfile b/go/1.23.2/24.03-lts/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..d2de4c02f63da24be104c2be3711c6f88c7ca8e1 --- /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 4ebcf80d83e309a567f8fc2485db9a5d77f4fd35..92cc9b7f1a084945e2c005937f3944a917029605 100644 --- a/go/meta.yml +++ b/go/meta.yml @@ -5,4 +5,14 @@ 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 +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 +1.23.2-oe2203sp1: + 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