-
-
Notifications
You must be signed in to change notification settings - Fork 358
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feat-rules-schema
- Loading branch information
Showing
70 changed files
with
2,498 additions
and
1,718 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
# To compile this image manually run: | ||
# | ||
# $ make docker | ||
FROM alpine:3.17.2 | ||
FROM alpine:3.18.2 | ||
|
||
RUN addgroup -S ory; \ | ||
adduser -S ory -G ory -D -H -s /bin/nologin | ||
RUN apk --no-cache --update-cache --upgrade --latest add ca-certificates | ||
RUN apk --no-cache --update-cache --upgrade add ca-certificates | ||
|
||
COPY oathkeeper /usr/bin/oathkeeper | ||
|
||
USER ory | ||
|
||
EXPOSE 4455 | ||
EXPOSE 4456 | ||
|
||
ENTRYPOINT ["oathkeeper"] | ||
CMD ["serve"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Workaround for https://github.com/GoogleContainerTools/distroless/issues/1342 | ||
FROM golang:1.20-bullseye AS builder | ||
|
||
WORKDIR /go/src/github.com/ory/oathkeeper | ||
|
||
RUN apt-get update && apt-get upgrade -y | ||
|
||
COPY go.mod go.mod | ||
COPY go.sum go.sum | ||
|
||
ENV CGO_ENABLED 0 | ||
ENV GO111MODULE on | ||
|
||
RUN go mod download | ||
|
||
COPY . . | ||
|
||
RUN go build -o /usr/bin/oathkeeper . | ||
|
||
######################### | ||
|
||
FROM gcr.io/distroless/static-debian11:nonroot AS runner | ||
|
||
COPY --from=builder --chown=nonroot:nonroot /usr/bin/oathkeeper /usr/bin/oathkeeper | ||
|
||
EXPOSE 4455 4456 | ||
|
||
ENTRYPOINT ["oathkeeper"] | ||
CMD ["serve"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
FROM gcr.io/distroless/static-debian11:nonroot | ||
|
||
COPY --chown=nonroot:nonroot oathkeeper /usr/bin/oathkeeper | ||
EXPOSE 4455 4456 | ||
|
||
ENTRYPOINT ["oathkeeper"] | ||
CMD ["oathkeeper"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.schema/version.schema.json |
Oops, something went wrong.