Skip to content

Commit 52f4431

Browse files
committed
chore(opa): Parameterise golang container version
1 parent b14edeb commit 52f4431

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

opa/Dockerfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# syntax=docker/dockerfile:1.10.0@sha256:865e5dd094beca432e8c0a1d5e1c465db5f998dca4e439981029b3b81fb39ed5
2-
# check=error=true
2+
# check=error=true;skip=InvalidDefaultArgInFrom
3+
4+
ARG GOLANG
5+
6+
FROM oci.stackable.tech/sdp/library/golang:${GOLANG} AS golang-image
37

48
FROM stackable/image/stackable-base AS multilog-builder
59

@@ -59,7 +63,7 @@ EOF
5963
COPY --chown=${STACKABLE_USER_UID}:0 opa/stackable/bin /stackable/opa/bin
6064

6165
# Manually install Go since the dnf package is sometimes not recent enough
62-
COPY --from=oci.stackable.tech/sdp/library/golang:1.23.9 /usr/local/go/ /usr/local/go/
66+
COPY --from=golang-image /usr/local/go/ /usr/local/go/
6367
ENV PATH="/usr/local/go/bin:${PATH}"
6468

6569
RUN <<EOF

opa/versions.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@
22
{
33
"product": "1.4.2",
44
"vector": "0.46.1",
5+
"golang": "1.23.9",
56
"stackable-base": "1.0.0",
67
},
78
{
89
"product": "1.0.1",
910
"vector": "0.46.1",
11+
"golang": "1.23.9",
1012
"stackable-base": "1.0.0",
1113
},
1214
]

0 commit comments

Comments
 (0)