Skip to content

Commit 44faaff

Browse files
authored
Install go 1.26.7 in the development dockerfile (#1712)
Signed-off-by: David Kwon <dakwon@redhat.com>
1 parent 45cd9c3 commit 44faaff

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

‎build/devtools.Dockerfile‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,16 @@ USER root
1919
# Install gettext
2020
RUN dnf install -y gettext
2121

22+
ENV GO_VERSION=1.26.7
23+
ENV GOROOT=/usr/local/go
24+
ENV PATH=${GOROOT}/bin:${PATH}
25+
RUN curl -fsSL "https://go.dev/dl/go${GO_VERSION}.linux-amd64.tar.gz" -o /tmp/go.tar.gz && \
26+
echo "ffb5f8de10c62550dfddab66b36b57030721e0a44a3218e9e1181d7b59f121ca /tmp/go.tar.gz" | sha256sum -c - && \
27+
rm -rf ${GOROOT} && \
28+
tar -C /usr/local -xzf /tmp/go.tar.gz && \
29+
rm -f /tmp/go.tar.gz && \
30+
go version
31+
2232
# Install the Operator SDK
2333
ENV OPERATOR_SDK_VERSION="v1.8.0"
2434
ENV OPERATOR_SDK_DL_URL=https://github.com/operator-framework/operator-sdk/releases/download/${OPERATOR_SDK_VERSION}

0 commit comments

Comments
 (0)