Skip to content

Commit 017293d

Browse files
authored
Update dependencies in the Dockerfile (#4995)
2 parents 4643608 + 80825d2 commit 017293d

File tree

6 files changed

+17
-8
lines changed

6 files changed

+17
-8
lines changed

.github/actions/build-policies/action.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ runs:
1212
- name: Install Open Policy Agent
1313
uses: open-policy-agent/[email protected]
1414
with:
15-
version: 1.1.0
15+
# Keep in sync with the Dockerfile and policies/Makefile
16+
version: 1.8.0
1617

1718
- name: Build the policies
1819
run: make

.github/workflows/ci.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ jobs:
4141
- name: Setup Regal
4242
uses: StyraInc/setup-regal@v1
4343
with:
44-
version: 0.29.2
44+
# Keep in sync with policies/Makefile
45+
version: 0.36.1
4546

4647
- name: Lint policies
4748
working-directory: ./policies

Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@
1313
ARG DEBIAN_VERSION=12
1414
ARG DEBIAN_VERSION_NAME=bookworm
1515
ARG RUSTC_VERSION=1.89.0
16-
ARG NODEJS_VERSION=20.15.0
17-
ARG OPA_VERSION=1.1.0
18-
ARG CARGO_AUDITABLE_VERSION=0.6.6
16+
ARG NODEJS_VERSION=22.19.0
17+
# Keep in sync with .github/actions/build-policies/action.yml and policies/Makefile
18+
ARG OPA_VERSION=1.8.0
19+
ARG CARGO_AUDITABLE_VERSION=0.7.0
1920

2021
##########################################
2122
## Build stage that builds the frontend ##
@@ -24,7 +25,7 @@ FROM --platform=${BUILDPLATFORM} docker.io/library/node:${NODEJS_VERSION}-${DEBI
2425

2526
WORKDIR /app/frontend
2627

27-
COPY ./frontend/package.json ./frontend/package-lock.json /app/frontend/
28+
COPY ./frontend/.npmrc ./frontend/package.json ./frontend/package-lock.json /app/frontend/
2829
# Network access: to fetch dependencies
2930
RUN --network=default \
3031
npm ci

frontend/.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
engine-strict=true

policies/.regal/config.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
# Please see LICENSE files in the repository root for full details.
55

66
rules:
7+
imports:
8+
unresolved-reference:
9+
level: ignore
710
style:
811
external-reference:
912
level: ignore

policies/Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@
66
# Set to 1 to run OPA through Docker
77
DOCKER := 0
88
PODMAN := 0
9-
OPA_DOCKER_IMAGE := docker.io/openpolicyagent/opa:1.1.0-debug
10-
REGAL_DOCKER_IMAGE := ghcr.io/styrainc/regal:0.31.0
9+
# Keep in sync with Dockerfile and .github/actions/build-policies/action.yml
10+
OPA_DOCKER_IMAGE := docker.io/openpolicyagent/opa:1.8.0-debug
11+
# Keep in sync with .github/workflows/ci.yaml
12+
REGAL_DOCKER_IMAGE := ghcr.io/open-policy-agent/regal:0.36.1
1113

1214
INPUTS := \
1315
common/common.rego \

0 commit comments

Comments
 (0)