-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add support for yum/rpm * Fix test * Harmonize file and package names * Tests for rpm/yum * Add utility commands * Harmonize package names * Add fixes after review --------- Co-authored-by: Jon Henrik Bjørnstad <[email protected]>
- Loading branch information
1 parent
b61a2dc
commit 850d09c
Showing
29 changed files
with
918 additions
and
167 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
FROM golang:1.21 as builder | ||
|
||
ARG version | ||
ENV VERSION_VAR=go.qbee.io/agent/app.Version | ||
|
||
ENV CGO_ENABLED=0 | ||
|
||
WORKDIR /src | ||
|
||
COPY . /src | ||
|
||
# build the agent | ||
RUN --mount=type=cache,target=/go \ | ||
--mount=type=cache,target=/root/.cache/go-build \ | ||
go build \ | ||
-ldflags "-s -w -X ${VERSION_VAR}=$version" \ | ||
-o /usr/bin/qbee-agent \ | ||
main.go | ||
|
||
FROM registry.access.redhat.com/ubi9/ubi:latest | ||
|
||
COPY app/software/test_repository/rhel /yum-repo | ||
|
||
COPY <<EOF /etc/yum.repos.d/qbee.repo | ||
[qbee-dev] | ||
name=qbee-dev | ||
baseurl=file:///yum-repo/ | ||
enabled=1 | ||
gpgcheck=0 | ||
EOF | ||
|
||
RUN mkdir /etc/qbee && echo '{}' > /etc/qbee/qbee-agent.json | ||
COPY --from=builder /usr/bin/qbee-agent /usr/bin/qbee-agent | ||
|
||
WORKDIR /app | ||
CMD [ "/bin/sh" ] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.