Skip to content

Commit

Permalink
add support for private luet repo (#168)
Browse files Browse the repository at this point in the history
* add support for private luet reg

Signed-off-by: Nianyu Shen <[email protected]>

* Add readme for private luet repo

Signed-off-by: Nianyu Shen <[email protected]>

* fix grammar

Signed-off-by: Nianyu Shen <[email protected]>

* add no-cache to luet repo cmds

Signed-off-by: Nianyu Shen <[email protected]>

* remove debug step

Signed-off-by: Nianyu Shen <[email protected]>

* add more instructions

Signed-off-by: Nianyu Shen <[email protected]>

* add stylus image

Signed-off-by: Nianyu Shen <[email protected]>

* add provider images

Signed-off-by: Nianyu Shen <[email protected]>

* add earthly image

Signed-off-by: Nianyu Shen <[email protected]>

* add luet-auth to .gitignore

Signed-off-by: Nianyu Shen <[email protected]>

* remove BASE_IMAGE

Signed-off-by: Nianyu Shen <[email protected]>

* add base image

Signed-off-by: Nianyu Shen <[email protected]>

---------

Signed-off-by: Nianyu Shen <[email protected]>
  • Loading branch information
nianyush authored May 7, 2024
1 parent 9e189e3 commit 6e7f1ad
Show file tree
Hide file tree
Showing 5 changed files with 94 additions and 50 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ content-*/*
build/
local/
keys/
secure-boot/
secure-boot/
spectro-luet-auth.yaml
11 changes: 6 additions & 5 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ ARG https_proxy=${HTTPS_PROXY}
ARG no_proxy=${NO_PROXY}
ARG PROXY_CERT_PATH



ARG UPDATE_KERNEL=false

ARG ETCD_VERSION="v3.5.13"
Expand Down Expand Up @@ -377,9 +375,12 @@ base-image:
ELSE IF [ "$ARCH" = "amd64" ]
ARG LUET_REPO=luet-repo
END
RUN mkdir -p /etc/luet/repos.conf.d && \
SPECTRO_LUET_VERSION=$SPECTRO_LUET_VERSION luet repo add spectro --type docker --url $SPECTRO_LUET_REPO/$LUET_REPO --priority 1 -y && \
luet repo update
RUN --no-cache mkdir -p /etc/luet/repos.conf.d && \
SPECTRO_LUET_VERSION=$SPECTRO_LUET_VERSION luet repo add spectro --type docker --url $SPECTRO_LUET_REPO/$LUET_REPO --priority 1 -y

COPY --if-exists spectro-luet-auth.yaml spectro-luet-auth.yaml
RUN --no-cache if [ -f spectro-luet-auth.yaml ]; then cat spectro-luet-auth.yaml >> /etc/luet/repos.conf.d/spectro.yaml; fi
RUN --no-cache luet repo update

IF [ "$OS_DISTRIBUTION" = "rhel" ]
RUN yum install -y openssl
Expand Down
Loading

0 comments on commit 6e7f1ad

Please sign in to comment.