mirror of
https://github.com/kairos-io/kairos-agent.git
synced 2025-09-19 17:25:01 +00:00
bug: copy kairos agent during framework build (#933)
Currently is done during docker image but it makes no sense, it should be during framework otherwise framework images do not contain the binary Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>
This commit is contained in:
@@ -219,6 +219,8 @@ framework:
|
|||||||
|
|
||||||
RUN go run -ldflags "${LDFLAGS}" ./cmd/profile-build/main.go ${FLAVOR} $REPOSITORIES_FILE /framework
|
RUN go run -ldflags "${LDFLAGS}" ./cmd/profile-build/main.go ${FLAVOR} $REPOSITORIES_FILE /framework
|
||||||
|
|
||||||
|
# Copy kairos binaries
|
||||||
|
COPY +build-kairos-agent/kairos-agent /framework/usr/bin/kairos-agent
|
||||||
COPY +luet/luet /framework/usr/bin/luet
|
COPY +luet/luet /framework/usr/bin/luet
|
||||||
|
|
||||||
RUN luet cleanup --system-target /framework
|
RUN luet cleanup --system-target /framework
|
||||||
@@ -283,8 +285,6 @@ docker:
|
|||||||
COPY overlay/files-ubuntu/ /
|
COPY overlay/files-ubuntu/ /
|
||||||
END
|
END
|
||||||
|
|
||||||
# Copy kairos binaries
|
|
||||||
COPY +build-kairos-agent/kairos-agent /usr/bin/kairos-agent
|
|
||||||
# Enable services
|
# Enable services
|
||||||
IF [ -f /sbin/openrc ]
|
IF [ -f /sbin/openrc ]
|
||||||
RUN mkdir -p /etc/runlevels/default && \
|
RUN mkdir -p /etc/runlevels/default && \
|
||||||
|
Reference in New Issue
Block a user