Skip to content

Commit f9ec26f

Browse files
authored
Update Go Lang and base iamges (#100)
chore: Update Go lang from 1.21 to 1.22.9 Update golint-ci to 1.60.3 to be compatible with go1.22 Update base images from UBI8 to UBI9 #### Motivation #### Modifications #### Result Signed-off-by: Spolti <[email protected]>
1 parent fd20a4c commit f9ec26f

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# limitations under the License.
1414
repos:
1515
- repo: https://github.com/golangci/golangci-lint
16-
rev: v1.51.1
16+
rev: v1.60.3
1717
hooks:
1818
- id: golangci-lint
1919
log_file: .pre-commit.log

Dockerfile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
###############################################################################
1616
# Stage 1: Create the developer image for the BUILDPLATFORM only
1717
###############################################################################
18-
ARG GOLANG_VERSION=1.21
19-
FROM --platform=$BUILDPLATFORM registry.access.redhat.com/ubi8/go-toolset:$GOLANG_VERSION AS develop
18+
ARG GOLANG_VERSION=1.22
19+
FROM --platform=$BUILDPLATFORM registry.access.redhat.com/ubi9/go-toolset:$GOLANG_VERSION AS develop
2020

2121
ARG PROTOC_VERSION=21.5
2222

@@ -30,8 +30,8 @@ RUN --mount=type=cache,target=/root/.cache/dnf:rw \
3030
nodejs \
3131
python3.11 \
3232
python3.11-pip \
33-
&& ln -sf /usr/bin/python3 /usr/bin/python \
34-
&& ln -sf /usr/bin/pip3 /usr/bin/pip \
33+
&& alternatives --install /usr/bin/python python /usr/bin/python3.11 1 \
34+
&& alternatives --install /usr/bin/pip pip /usr/bin/pip3.11 1 \
3535
&& true
3636

3737
# Install pre-commit
@@ -138,7 +138,7 @@ RUN --mount=type=cache,target=/root/.cache/go-build \
138138
###############################################################################
139139
# Stage 3: Copy build assets to create the smallest final runtime image
140140
###############################################################################
141-
FROM registry.access.redhat.com/ubi8/ubi-minimal:latest as runtime
141+
FROM registry.access.redhat.com/ubi9/ubi-minimal:latest as runtime
142142

143143
ARG USER=2000
144144

@@ -147,14 +147,14 @@ USER root
147147
# install python to convert keras to tf
148148
# NOTE: tensorflow not supported on PowerPC (ppc64le) or System Z (s390x) https://github.com/tensorflow/tensorflow/issues/46181
149149
RUN --mount=type=cache,target=/root/.cache/microdnf:rw \
150-
microdnf install --setopt=cachedir=/root/.cache/microdnf \
150+
microdnf install -y --setopt=cachedir=/root/.cache/microdnf \
151151
gcc \
152152
gcc-c++ \
153153
python3.11-devel \
154154
python3.11 \
155155
python3.11-pip \
156-
&& ln -sf /usr/bin/python3 /usr/bin/python \
157-
&& ln -sf /usr/bin/pip3 /usr/bin/pip \
156+
&& alternatives --install /usr/bin/python python /usr/bin/python3.11 1 \
157+
&& alternatives --install /usr/bin/pip pip /usr/bin/pip3.11 1 \
158158
&& true
159159

160160
# need to upgrade pip and install wheel before installing grpcio, before installing tensorflow on aarch64

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/kserve/modelmesh-runtime-adapter
22

3-
go 1.21
3+
go 1.22.9
44

55
require (
66
cloud.google.com/go/storage v1.28.1

0 commit comments

Comments
 (0)