Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: zarf file #39

Merged
merged 10 commits into from
Apr 2, 2024
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,6 @@ jobs:

- name: Test building the docker image
run: uds run dev-build

- name: Test building a zarf package
run: uds run build-zarf-pkg
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ test.cer
test.csr
test.pem
*authorized_certs*
src/extra-jars/
2 changes: 1 addition & 1 deletion src/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ COPY extra-jars/* ./target/
# Build the Java truststore from DOD CAs #
# #
###################################################################################
FROM cgr.dev/chainguard/jdk:latest-dev as truststore
FROM amazoncorretto:21-alpine-jdk as truststore
USER root
RUN apk add openssl coreutils sed bash findutils

Expand Down
6 changes: 6 additions & 0 deletions tasks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ tasks:
description: "Build and publish the multi-arch image"
actions:
- cmd: docker buildx build --push --platform linux/arm64/v8,linux/amd64 --tag ${IMAGE_NAME}:${VERSION} src

- name: build-zarf-pkg
description: "Build the custom docker image and the zarf package for transporting it"
actions:
- cmd: docker build --tag ${IMAGE_NAME}:${VERSION} src
- cmd: ./uds zarf package create . --set IDENTITY_CONFIG_IMG=${IMAGE_NAME}:${VERSION} --confirm

- name: dev-build
description: "Build the image locally for dev"
Expand Down
16 changes: 16 additions & 0 deletions zarf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/defenseunicorns/zarf/main/zarf.schema.json
blancharda marked this conversation as resolved.
Show resolved Hide resolved
kind: ZarfPackageConfig
metadata:
name: keycloak-identity-config
version: "0.0.1"

constants:
- name: IDENTIFY_CONFIG_IMG
description: "Image name and tag (MUST BE PROVIDED -- no default)"
value: '###ZARF_PKG_TMPL_IDENTITY_CONFIG_IMG###'

components:
- name: keycloak-config-wrapper
required: true
images:
- '###ZARF_PKG_TMPL_IDENTITY_CONFIG_IMG###'