mirror of
https://github.com/kairos-io/kairos-agent.git
synced 2025-09-26 14:03:57 +00:00
art: Avoid curl calls and prefer image copy (#165)
This commit is contained in:
committed by
Itxaka
parent
f34dd1386a
commit
885fa0b2c7
10
Earthfile
10
Earthfile
@@ -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/generators@v2.1.4
|
||||||
RUN go get github.com/onsi/ginkgo/v2/ginkgo/labels@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 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 . .
|
COPY . .
|
||||||
RUN ginkgo run --fail-fast --slow-spec-threshold 30s --covermode=atomic --coverprofile=coverage.out -p -r ./pkg ./internal ./cmd ./sdk
|
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
|
SAVE ARTIFACT coverage.out AS LOCAL coverage.out
|
||||||
@@ -109,8 +109,9 @@ build:
|
|||||||
dist:
|
dist:
|
||||||
ARG GO_VERSION
|
ARG GO_VERSION
|
||||||
FROM golang:$GO_VERSION
|
FROM golang:$GO_VERSION
|
||||||
RUN curl https://luet.io/install.sh | sh
|
COPY +luet/luet /usr/bin/luet
|
||||||
RUN luet install -y repository/mocaccino-extra
|
RUN mkdir -p /etc/luet/repos.conf.d/
|
||||||
|
RUN luet repo add kairos --yes --url quay.io/kairos/packages --type docker
|
||||||
RUN luet install -y utils/goreleaser
|
RUN luet install -y utils/goreleaser
|
||||||
WORKDIR /build
|
WORKDIR /build
|
||||||
COPY . .
|
COPY . .
|
||||||
@@ -303,10 +304,9 @@ arm-image:
|
|||||||
ARG MODEL=rpi64
|
ARG MODEL=rpi64
|
||||||
ARG IMAGE_NAME=${FLAVOR}.img
|
ARG IMAGE_NAME=${FLAVOR}.img
|
||||||
RUN zypper in -y jq docker git curl gptfdisk kpartx sudo
|
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
|
WORKDIR /build
|
||||||
RUN git clone https://github.com/rancher/elemental-toolkit && mkdir elemental-toolkit/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 STATE_SIZE="6200"
|
||||||
ENV RECOVERY_SIZE="4200"
|
ENV RECOVERY_SIZE="4200"
|
||||||
ENV SIZE="15200"
|
ENV SIZE="15200"
|
||||||
|
Reference in New Issue
Block a user