1
0
mirror of https://github.com/kairos-io/kairos-agent.git synced 2025-05-14 03:15:18 +00:00

bug: copy kairos agent during framework build ()

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:
Itxaka 2023-02-21 16:52:09 +01:00
parent 22647b7a4e
commit 7c195374ae

View File

@ -219,6 +219,8 @@ 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
RUN luet cleanup --system-target /framework
@ -283,8 +285,6 @@ docker:
COPY overlay/files-ubuntu/ /
END
# Copy kairos binaries
COPY +build-kairos-agent/kairos-agent /usr/bin/kairos-agent
# Enable services
IF [ -f /sbin/openrc ]
RUN mkdir -p /etc/runlevels/default && \