Skip to content

Commit

Permalink
add elemental cli to base image
Browse files Browse the repository at this point in the history
  • Loading branch information
santhoshdaivajna committed Dec 20, 2023
1 parent b85aac8 commit f705c27
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ IF [[ "$BASE_IMAGE" =~ "ubuntu-20-lts-arm-nvidia-jetson-agx-orin" ]]
ARG IS_JETSON=true
END


elemental:
FROM quay.io/kairos/packages:elemental-cli-system-0.3.1
SAVE ARTIFACT /usr/bin/elemental /elemental

build-all-images:
IF $FIPS_ENABLED
BUILD +build-provider-images-fips
Expand Down Expand Up @@ -313,8 +318,7 @@ base-image:
chmod 444 /etc/machine-id
RUN rm /tmp/* -rf

RUN luet repo add kairos -y --url quay.io/kairos/packages --type docker
RUN luet install -y elemental-cli
COPY +elemental/elemental /usr/bin/elemental

# Ensure SElinux gets disabled
RUN if grep "security=selinux" /etc/cos/bootargs.cfg > /dev/null; then sed -i 's/security=selinux //g' /etc/cos/bootargs.cfg; fi &&\
Expand Down

0 comments on commit f705c27

Please sign in to comment.