Skip to content

Commit

Permalink
🎨 Avoid curl calls and prefer image copy
Browse files Browse the repository at this point in the history
  • Loading branch information
mudler committed Sep 29, 2022
1 parent de2899d commit 793d496
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ test:
RUN go get github.com/onsi/ginkgo/v2/ginkgo/generators@v2.1.4
RUN go get github.com/onsi/ginkgo/v2/ginkgo/labels@v2.1.4
RUN go install -mod=mod github.com/onsi/ginkgo/v2/ginkgo
RUN curl https://luet.io/install.sh | sh
COPY +luet/luet /usr/bin/luet
COPY . .
RUN ginkgo run --fail-fast --slow-spec-threshold 30s --covermode=atomic --coverprofile=coverage.out -p -r ./pkg ./internal ./cmd ./sdk
SAVE ARTIFACT coverage.out AS LOCAL coverage.out
Expand Down Expand Up @@ -109,8 +109,8 @@ build:
dist:
ARG GO_VERSION
FROM golang:$GO_VERSION
RUN curl https://luet.io/install.sh | sh
RUN luet install -y repository/mocaccino-extra
COPY +luet/luet /usr/bin/luet
RUN luet repo add kairos --yes --url quay.io/kairos/packages --type docker
RUN luet install -y utils/goreleaser
WORKDIR /build
COPY . .
Expand Down Expand Up @@ -303,10 +303,9 @@ arm-image:
ARG MODEL=rpi64
ARG IMAGE_NAME=${FLAVOR}.img
RUN zypper in -y jq docker git curl gptfdisk kpartx sudo
#COPY +luet/luet /usr/bin/luet
COPY +luet/luet /usr/bin/luet
WORKDIR /build
RUN git clone https://github.com/rancher/elemental-toolkit && mkdir elemental-toolkit/build
RUN curl https://luet.io/install.sh | sh
ENV STATE_SIZE="6200"
ENV RECOVERY_SIZE="4200"
ENV SIZE="15200"
Expand Down

0 comments on commit 793d496

Please sign in to comment.