Skip to content

Commit

Permalink
Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
3pings committed Apr 21, 2023
1 parent 4ad067b commit dcaa519
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions images/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,22 +29,26 @@ RUN mkdir -p /etc/luet/repos.conf.d && \
RUN luet install -y k8s/k3s@$K8S_VERSION && luet cleanup
RUN luet install -y system/elemental-cli && luet cleanup


# ENV OS_NAME=$OS_ID:${SPECTRO_VERSION}
# ENV OS_REPO=${IMAGE_REPOSITORY}
# ENV OS_LABEL=${BASE_IMAGE_TAG}_${K8S_VERSION}_${SPECTRO_VERSION}
# RUN envsubst >/etc/os-release </usr/lib/os-release.tmpl

ENV OS_ID=ubuntu
ENV OS_VERSION=22.04
# ENV OS_ID=${BASE_IMAGE_NAME}-k3s
ENV OS_NAME=$OS_ID:${SPECTRO_VERSION}
ENV OS_NAME=${BASE_IMAGE_NAME}-k3s:${SPECTRO_VERSION}
ENV OS_REPO=${IMAGE_REPOSITORY}
# ENV OS_VERSION=${K8S_VERSION}_${SPECTRO_VERSION}
ENV OS_LABEL=${BASE_IMAGE_TAG}_${K8S_VERSION}_${SPECTRO_VERSION}
RUN envsubst >/etc/os-release </usr/lib/os-release.tmpl

RUN apt-get update && apt-get install zstd -y


## Copy any custom files by placing in the directory specified below
COPY overlay/files/ /

RUN apt-get update -y
RUN apt-get update && apt-get upgrade -y
RUN kernel=$(ls /boot/vmlinuz-* | head -n1) && \
ln -sf "${kernel#/boot/}" /boot/vmlinuz
RUN kernel=$(ls /lib/modules | head -n1) && \
Expand Down

0 comments on commit dcaa519

Please sign in to comment.