Skip to content

Commit

Permalink
Rework
Browse files Browse the repository at this point in the history
Signed-off-by: Itxaka <[email protected]>
  • Loading branch information
Itxaka committed Oct 19, 2023
1 parent bd2e5f2 commit 1ed4111
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 43 deletions.
45 changes: 45 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
FROM quay.io/luet/base:0.35.0 as luet

FROM alpine as framework_base
ENV LUET_NOLOCK=true
COPY --from=luet /usr/bin/luet /usr/bin/luet
COPY repositories.yaml /repositories.yaml
RUN luet install -y --config repositories.yaml --system-target /framework \
static/grub-config \
dracut/immucore \
system/suc-upgrade \
system/grub2-efi \
static/kairos-overlay-files \
system/kcrypt \
system/kcrypt-challenger \
system/immucore \
system/kairos-agent \
init-svc/openrc \
initrd/alpine \
init-svc/systemd \
dracut/kairos-network \
dracut/kairos-sysext
RUN mkdir -p /framework/etc/kairos/
RUN luet database --system-target /framework get-all-installed --output /framework/etc/kairos/versions.yaml

# luet cleanup
RUN luet cleanup --system-target /framework
RUN rm -rf /framework/var/luet
RUN rm -rf /framework/var/cache




FROM scratch as framework
COPY --from=framework_base /framework /framework


FROM framework_base as framework_base_fips
RUN luet install -y --config repositories.yaml --system-target /framework \
fips/kcrypt \
fips/kcrypt-challenger \
fips/immucore \
fips/kairos-agent

FROM scratch as framework_fips
COPY --from=framework_base_fips /framework /framework
43 changes: 0 additions & 43 deletions Dockerfile.framework

This file was deleted.

0 comments on commit 1ed4111

Please sign in to comment.