-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bake target to generate certs for e2e tets
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com> (cherry picked from commit d234a81) Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
- Loading branch information
Showing
3 changed files
with
25 additions
and
12 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
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,19 @@ | ||
# syntax=docker/dockerfile:1 | ||
|
||
ARG GO_VERSION=1.19.7 | ||
|
||
FROM golang:${GO_VERSION}-alpine AS generated | ||
RUN go install github.com/dmcgowan/quicktls@master | ||
WORKDIR /tmp/gencerts/notary | ||
RUN --mount=type=bind,source=e2e/testdata/notary,target=/tmp/gencerts/notary,rw <<EOT | ||
set -eu | ||
mkdir -p ../notary-evil /out | ||
quicktls -org=Docker -with-san notary-server notaryserver evil-notary-server evilnotaryserver localhost 127.0.0.1 | ||
cat ca.pem >> notary-server.cert | ||
mv ca.pem root-ca.cert | ||
cp notary-server.cert notary-server.key root-ca.cert ../notary-evil | ||
cp -r /tmp/gencerts/notary* /out/ | ||
EOT | ||
|
||
FROM scratch | ||
COPY --from=generated /out / |
This file was deleted.
Oops, something went wrong.