-
Notifications
You must be signed in to change notification settings - Fork 548
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* remove *_bare.sh scripts Signed-off-by: Per Goncalves da Silva <[email protected]> * remove *_local.sh scripts and related targets Signed-off-by: Per Goncalves da Silva <[email protected]> * remove wait and related targets and hang Dockerfile Signed-off-by: Per Goncalves da Silva <[email protected]> * remove unnecessary makefile targets Signed-off-by: Per Goncalves da Silva <[email protected]> * add golangci-lint to tools Signed-off-by: Per Goncalves da Silva <[email protected]> * refactor Makefile Refactor Makefile clean up build targets Signed-off-by: Per Goncalves da Silva <[email protected]> * bump gha golangci-lint version Signed-off-by: Per Goncalves da Silva <[email protected]> --------- Signed-off-by: Per Goncalves da Silva <[email protected]> Co-authored-by: Per Goncalves da Silva <[email protected]>
- Loading branch information
1 parent
2334c05
commit c1b059a
Showing
1,857 changed files
with
307,950 additions
and
972 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,15 @@ | ||
FROM quay.io/fedora/fedora:37-x86_64 as builder | ||
LABEL stage=builder | ||
WORKDIR /build | ||
|
||
# install dependencies and go 1.22 | ||
|
||
# copy just enough of the git repo to parse HEAD, used to record version in OLM binaries | ||
RUN dnf update -y && dnf install -y bash make git mercurial jq wget && dnf upgrade -y | ||
RUN curl -sSL https://go.dev/dl/go1.22.2.linux-amd64.tar.gz | tar -xzf - -C /usr/local | ||
ENV PATH=/usr/local/go/bin:$PATH | ||
COPY .git/HEAD .git/HEAD | ||
COPY .git/refs/heads/. .git/refs/heads | ||
RUN mkdir -p .git/objects | ||
COPY Makefile Makefile | ||
COPY OLM_VERSION OLM_VERSION | ||
COPY pkg pkg | ||
COPY vendor vendor | ||
COPY go.mod go.mod | ||
COPY go.sum go.sum | ||
COPY cmd cmd | ||
COPY util util | ||
COPY test test | ||
RUN CGO_ENABLED=0 make build | ||
RUN make build-util | ||
|
||
# use debug tag to keep a shell around for backwards compatibility with the previous alpine image | ||
FROM gcr.io/distroless/static:debug | ||
LABEL stage=olm | ||
WORKDIR / | ||
# bundle unpack Jobs require cp at /bin/cp | ||
RUN ["/busybox/ln", "-s", "/busybox/cp", "/bin/cp"] | ||
COPY --from=builder /build/bin/olm /bin/olm | ||
COPY --from=builder /build/bin/catalog /bin/catalog | ||
COPY --from=builder /build/bin/package-server /bin/package-server | ||
COPY --from=builder /build/bin/cpb /bin/cpb | ||
COPY --from=builder /build/bin/copy-content /bin/copy-content | ||
USER 1001 | ||
# copy goreleaser built binaries | ||
COPY olm /bin/olm | ||
COPY catalog /bin/catalog | ||
COPY package-server /bin/package-server | ||
COPY copy-content /bin/copy-content | ||
COPY cpb /bin/cpb | ||
EXPOSE 8080 | ||
EXPOSE 5443 | ||
CMD ["/bin/olm"] | ||
USER 1001 | ||
ENTRYPOINT ["/bin/olm"] |
Oops, something went wrong.