git.iko.soy/typeable/oauth2-proxy
on master help sign in
Build ARMv8 Docker Images (#1594)

* Build ARMv8 Docker Images Fixes #1593 * Change platform to arm64/v8 * Drop separate tags for different architectures * Mark the architecture image tags for deprecation Co-authored-by: Joel Speed <Joel.speed@hotmail.co.uk>

commit333e68637f585c8d324954ae75fda60f70ad7fa5 authorBraunson <5280764+braunsonm@users.noreply.github.com> dateThu 14 Apr 2022, 10:52 (5 years ago) parent2e9c30a
5 files changed+14−9
CHANGELOG.md+3 Dockerfile+3−1 Makefile+1−1 README.md+6−6 go.mod+1−1
CHANGELOG.md+3
@@ -9,6 +9,8 @@
99
1010## Important Notes
1111
12+- [oauth2-proxy](https://quay.io/repository/oauth2-proxy/oauth2-proxy?tab=tags&tag=latest) separate image tags for each architecture is deprecated. Instead, images are cross compiled and pushed as the same tag for every platform.
13+If you are using an architecture specific tag (ex: v7.2.1-arm64) you should move to the generic tag instead (ex: v7.2.1 )
1214- [#1478](https://github.com/oauth2-proxy/oauth2-proxy/pull/1478) Changes the UID and GID of the runtime user to `65532`.
1315 Which also is known as `nonroot` user in [distroless images](https://github.com/GoogleContainerTools/distroless).
1416
@@ -34,6 +36,7 @@
3436- [#1545](https://github.com/oauth2-proxy/oauth2-proxy/pull/1545) Fix issue with query string allowed group panic on skip methods (@andytson)
3537- [#1286](https://github.com/oauth2-proxy/oauth2-proxy/pull/1286) Add the `allowed_email_domains` and the `allowed_groups` on the `auth_request` + support standard wildcard char for validation with sub-domain and email-domain. (@w3st3ry @armandpicard)
3638- [#1361](https://github.com/oauth2-proxy/oauth2-proxy/pull/1541) PKCE Code Challenge Support - RFC-7636 (@braunsonm)
39+- [#1594](https://github.com/oauth2-proxy/oauth2-proxy/pull/1594) Release ARMv8 docker images (@braunsonm)
3740
3841# V7.2.1
3942
Dockerfile+3−1
@@ -33,7 +33,9 @@ ARG BUILDPLATFORM
3333# automatically set by the docker engine.
3434RUN case ${TARGETPLATFORM} in \
3535 "linux/amd64") GOARCH=amd64 ;; \
36− "linux/arm64") GOARCH=arm64 ;; \
36+ # arm64 and arm64v8 are equivilant in go and do not require a goarm
37+ # https://github.com/golang/go/wiki/GoArm
38+ "linux/arm64" | "linux/arm64/v8") GOARCH=arm64 ;; \
3739 "linux/ppc64le") GOARCH=ppc64le ;; \
3840 "linux/arm/v6") GOARCH=arm GOARM=6 ;; \
3941 esac && \
Makefile+1−1
@@ -39,7 +39,7 @@ build: validate-go-version clean $(BINARY)
3939$(BINARY):
4040 CGO_ENABLED=0 $(GO) build -a -installsuffix cgo -ldflags="-X main.VERSION=${VERSION}" -o $@ github.com/oauth2-proxy/oauth2-proxy/v7
4141
42−DOCKER_BUILD_PLATFORM ?= linux/amd64,linux/arm64,linux/ppc64le,linux/arm/v6
42+DOCKER_BUILD_PLATFORM ?= linux/amd64,linux/arm64,linux/ppc64le,linux/arm/v6,linux/arm64/v8
4343DOCKER_BUILD_RUNTIME_IMAGE ?= alpine:3.15
4444DOCKER_BUILDX_ARGS ?= --build-arg RUNTIME_IMAGE=${DOCKER_BUILD_RUNTIME_IMAGE}
4545DOCKER_BUILDX := docker buildx build ${DOCKER_BUILDX_ARGS} --build-arg VERSION=${VERSION}
README.md+6−6
@@ -27,14 +27,14 @@ Going forward, all images shall be available at `quay.io/oauth2-proxy/oauth2-pro
2727
2828 b. Build with `$ go get github.com/oauth2-proxy/oauth2-proxy/v7` which will put the binary in `$GOROOT/bin`
2929
30− c. Using the prebuilt docker image [quay.io/oauth2-proxy/oauth2-proxy](https://quay.io/oauth2-proxy/oauth2-proxy) (AMD64, PPC64LE, ARMv6 and ARM64 tags available)
30+ c. Using the prebuilt docker image [quay.io/oauth2-proxy/oauth2-proxy](https://quay.io/oauth2-proxy/oauth2-proxy) (AMD64, PPC64LE, ARMv6, ARMv8 and ARM64 available)
3131
32−Prebuilt binaries can be validated by extracting the file and verifying it against the `sha256sum.txt` checksum file provided for each release starting with version `v3.0.0`.
32+ Prebuilt binaries can be validated by extracting the file and verifying it against the `sha256sum.txt` checksum file provided for each release starting with version `v3.0.0`.
3333
34−```
35−sha256sum -c sha256sum.txt 2>&1 | grep OK
36−oauth2-proxy-x.y.z.linux-amd64: OK
37−```
34+ ```
35+ sha256sum -c sha256sum.txt 2>&1 | grep OK
36+ oauth2-proxy-x.y.z.linux-amd64: OK
37+ ```
3838
39392. [Select a Provider and Register an OAuth Application with a Provider](https://oauth2-proxy.github.io/oauth2-proxy/docs/configuration/oauth_provider)
40403. [Configure OAuth2 Proxy using config file, command line options, or environment variables](https://oauth2-proxy.github.io/oauth2-proxy/docs/configuration/overview)
go.mod+1−1
@@ -1,6 +1,6 @@
11module github.com/oauth2-proxy/oauth2-proxy/v7
22
3−go 1.17
3+go 1.18
44
55require (
66 github.com/Bose/minisentinel v0.0.0-20200130220412-917c5a9223bb