-
Notifications
You must be signed in to change notification settings - Fork 253
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build binaries for linux, windows, and mac #155
Merged
openshift-merge-robot
merged 1 commit into
operator-framework:master
from
ecordell:bins
Jan 23, 2020
+88
−32
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,30 @@ | ||
language: go | ||
go: | ||
- 1.13 | ||
sudo: true | ||
|
||
os: | ||
- linux | ||
- osx | ||
- windows | ||
|
||
install: | ||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install make; fi | ||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install make; fi | ||
|
||
script: | ||
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then mingw32-make build; fi | ||
- if [[ "$TRAVIS_OS_NAME" != "windows" ]]; then make unit build; fi | ||
|
||
notifications: | ||
email: false | ||
|
||
deploy: | ||
provider: releases | ||
api_key: | ||
secure: CMJ3KGhwuB7YRCYsJMe0cWAY/gkj2BVGorW9G1awxOyR2+Dv9G5PhItVkVfti0P2LzX8K2rplDp4O8b976wWzWJlJ6MQsSkFId0wYJSXRwNGdqnGhTLdDXB4FmPKapTBqTaYQgumrfvSOMiZ3tAwCD9AjW2fqYnBWnJXJ3yv8cpmN+TOZLJAKG+wAqb2foD9mS3HEQ9ItcoBqqEg8eRedzLuLGKVROLdFweLpi9gWdC22xLNomySwITTXX4kVs35MS0iwZE2cpTNDR8tLLIirHNgkiCCVYdiY0AB77Ikp5AF458UA064yr1b8TjAC3oyi4h6ddFaXo6CT9PZmsc41Te7cguSm2J9Ok2OdxLGitce7oty38QeY0QaG0oolcbXYw6QeiUXJ3BScAzVQBveDYgIACkSlsXAFEgdmR9YLOjYcw1MmquhmDbEuvaHi5T85aqsL8v5PUTMZq9+X/wOTqzR6D+8nQGqvqodxnopAFKpiR7UyiCl16VqrTJnkpWnYEerlx1i3Y7JLEiEK9O8UKL13J65cumCHPbcPNXbIsV6cFM+WXV8XhzKNOenrI5LZS9ske73wN9mOlgJKPwzEzP1H5hw1DTgm7gH/T+0bPCUdg7vh+dGavunjHEth1HmD2F8p6dvMC7+JG7Fjyw2PU76yl9DDm611p69A5auQ14= | ||
file: bin/$TRAVIS_OS_NAME/opm | ||
skip_cleanup: true | ||
on: | ||
repo: operator-framework/operator-registry | ||
tags: true |
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 |
---|---|---|
|
@@ -28,11 +28,11 @@ FROM openshift/origin-base | |
RUN mkdir /registry | ||
WORKDIR /registry | ||
|
||
COPY --from=builder /src/bin/initializer /bin/initializer | ||
COPY --from=builder /src/bin/registry-server /bin/registry-server | ||
COPY --from=builder /src/bin/configmap-server /bin/configmap-server | ||
COPY --from=builder /src/bin/appregistry-server /bin/appregistry-server | ||
COPY --from=builder /src/bin/opm /bin/opm | ||
COPY --from=builder /src/bin/linux/initializer /bin/initializer | ||
COPY --from=builder /src/bin/linux/registry-server /bin/registry-server | ||
COPY --from=builder /src/bin/linux/configmap-server /bin/configmap-server | ||
COPY --from=builder /src/bin/linux/appregistry-server /bin/appregistry-server | ||
COPY --from=builder /src/bin/linux/opm /bin/opm | ||
COPY --from=builder /go/bin/grpc-health-probe /bin/grpc_health_probe | ||
|
||
RUN chgrp -R 0 /registry && \ | ||
|
@@ -46,5 +46,5 @@ USER 1001 | |
EXPOSE 50051 | ||
|
||
LABEL io.k8s.display-name="OpenShift Operator Registry" \ | ||
io.k8s.description="This is a component of OpenShift Operator Lifecycle Manager and is the base for operator catalog API containers." \ | ||
maintainer="Odin Team <[email protected]>" | ||
io.k8s.description="This is a component of OpenShift Operator Lifecycle Manager and is the base for operator catalog API containers." \ | ||
maintainer="Odin Team <[email protected]>" |
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,15 +1,16 @@ | ||
FROM golang:1.10-alpine as builder | ||
FROM golang:1.13-alpine as builder | ||
|
||
RUN apk update && apk add sqlite build-base git mercurial | ||
RUN apk update && apk add sqlite build-base git mercurial bash | ||
WORKDIR /go/src/github.com/operator-framework/operator-registry | ||
|
||
COPY vendor vendor | ||
COPY cmd cmd | ||
COPY pkg pkg | ||
COPY Makefile Makefile | ||
COPY go.mod go.mod | ||
RUN make static | ||
|
||
FROM golang:1.10-alpine as probe-builder | ||
FROM golang:1.13-alpine as probe-builder | ||
|
||
RUN apk update && apk add build-base git | ||
ENV ORG github.com/grpc-ecosystem | ||
|
@@ -19,10 +20,12 @@ WORKDIR /go/src/$PROJECT | |
COPY --from=builder /go/src/github.com/operator-framework/operator-registry/vendor/$ORG/grpc-health-probe . | ||
COPY --from=builder /go/src/github.com/operator-framework/operator-registry/vendor . | ||
RUN CGO_ENABLED=0 go install -a -tags netgo -ldflags "-w" | ||
RUN ls /go/bin | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this for debugging purposes? |
||
RUN ls . | ||
|
||
|
||
FROM scratch | ||
COPY --from=builder /go/src/github.com/operator-framework/operator-registry/bin/appregistry-server /bin/appregistry-server | ||
COPY --from=probe-builder /go/bin/grpc_health_probe /bin/grpc_health_probe | ||
COPY --from=builder /go/src/github.com/operator-framework/operator-registry/bin/linux/appregistry-server /bin/appregistry-server | ||
COPY --from=probe-builder /go/bin/grpc-health-probe /bin/grpc_health_probe | ||
EXPOSE 50051 | ||
ENTRYPOINT ["/bin/appregistry-server"] |
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Releases | ||
|
||
## opm | ||
|
||
Releases of opm are built by travis, see the [travis.yml](../../.travis.yml) for details. | ||
|
||
## Triggering a release | ||
|
||
Releases are triggered via tags. Make a new release by tagging a commit with an appropriate semver tag. | ||
|
||
## Checking the build | ||
|
||
Builds for a release can be found [on travis](https://travis-ci.com/operator-framework/operator-registry). After triggering a build, watch for logs. If the build is successful, a new [release](https://github.com/operator-framework/operator-registry) should appear in GitHub. | ||
|
||
## Docker images | ||
|
||
Builds are also triggered for the following docker images. The tags in Quay.io will match the git tag: | ||
|
||
- [quay.io/operator-framework/operator-registry-server](https://quay.io/repository/operator-framework/operator-registry-server) | ||
- [quay.io/operator-framework/configmap-operator-registry](https://quay.io/repository/operator-framework/configmap-operator-registry) | ||
- [quay.io/operator-framework/upstream-registry-builder](https://quay.io/repository/operator-framework/upstream-registry-builder?tab=tags) | ||
|
||
Images are also built to track master with `latest` tags. It is recommended that you always pull by digest, and only use images that are tagged with a version. |
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a secret associated with this key that is stored elsewhere?
Edit: For anyone else wondering: