Bump OPA to 0.43 and Rust to 1.63 in Docker image

Also bumps the Dockerfile frontend to 1.4
This commit is contained in:
Quentin Gliech
2022-08-19 10:48:48 +02:00
parent 3d25842853
commit b34f202517
2 changed files with 6 additions and 5 deletions

View File

@@ -1,4 +1,4 @@
# syntax = docker/dockerfile:1.3
# syntax = docker/dockerfile:1.4
# Builds a minimal image with the binary only. It is multi-arch capable,
# cross-building to aarch64 and x86_64. When cross-compiling, Docker sets two
@@ -12,9 +12,9 @@
# The Debian version and version name must be in sync
ARG DEBIAN_VERSION=11
ARG DEBIAN_VERSION_NAME=bullseye
ARG RUSTC_VERSION=1.61.0
ARG RUSTC_VERSION=1.63.0
ARG NODEJS_VERSION=16
ARG OPA_VERSION=0.40.0
ARG OPA_VERSION=0.43.0
## Build stage that builds the static files/frontend ##
FROM --platform=${BUILDPLATFORM} docker.io/library/node:${NODEJS_VERSION}-${DEBIAN_VERSION_NAME}-slim AS static-files

View File

@@ -1,12 +1,13 @@
# Set to 1 to run OPA through Docker
DOCKER := 0
OPA_DOCKER_IMAGE := docker.io/openpolicyagent/opa:0.43.0
ifeq ($(DOCKER), 0)
OPA := opa
OPA_RW := opa
else
OPA := docker run -i -v $(shell pwd):/policies:ro -w /policies --rm docker.io/openpolicyagent/opa:0.41.0
OPA_RW := docker run -i -v $(shell pwd):/policies -w /policies --rm docker.io/openpolicyagent/opa:0.41.0
OPA := docker run -i -v $(shell pwd):/policies:ro -w /policies --rm $(OPA_DOCKER_IMAGE)
OPA_RW := docker run -i -v $(shell pwd):/policies -w /policies --rm $(OPA_DOCKER_IMAGE)
endif
policy.wasm: client_registration.rego register.rego authorization_grant.rego