Skip to content
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

Platform independent image builds #897

Merged

Conversation

ironcladlou
Copy link
Contributor

Make the build/release process more generic to allow multiple release targets
such as core and image binaries. This makes the build/release process once
again platform independent (provided docker is available on the host), and
re-enables support for build-release/build-images on OSX.

@ironcladlou
Copy link
Contributor Author

@smarterclayton This solves it. It would have been much simpler to just include the binary in the release tar, but this does the job.

@ironcladlou
Copy link
Contributor Author

[test]

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_openshift3/1093/)

@ironcladlou
Copy link
Contributor Author

@smarterclayton If you also think this fixes the problem, maybe we could get it merged for beta1 with a refactor followup? I avoided the hello image because it seems to have a binary committed rather than following the bin directory convention, and I didn't want to do too much at once yet.

@smarterclayton
Copy link
Contributor

Not beta1

@smarterclayton smarterclayton added this to the 0.4.0 (beta2) milestone Feb 5, 2015
@ironcladlou
Copy link
Contributor Author

Alright, but it's unfortunate that what's in master went from working to broken suddenly.

@smarterclayton
Copy link
Contributor

Also build assets

@ironcladlou
Copy link
Contributor Author

@smarterclayton

Also build assets

Can you elaborate on this? I'm happy to keep running with the PR for beta2.

@smarterclayton
Copy link
Contributor

If the release image was capable of building assets (not by default, but in a mode we can run) it would benefit folks deving on weird systems.

On Feb 5, 2015, at 10:26 AM, Dan Mace notifications@github.com wrote:

@smarterclayton

Also build assets

Can you elaborate on this? I'm happy to keep running with the PR for beta2.


Reply to this email directly or view it on GitHub.

@smarterclayton
Copy link
Contributor

We can nuke the committed binary - it was convenient, that's all.

On Feb 4, 2015, at 9:51 PM, Dan Mace notifications@github.com wrote:

@smarterclayton If you also think this fixes the problem, maybe we could get it merged for beta1 with a refactor followup? I avoided the hello image because it seems to have a binary committed rather than following the bin directory convention, and I didn't want to do too much at once yet.


Reply to this email directly or view it on GitHub.

@csrwng
Copy link
Contributor

csrwng commented Feb 6, 2015

This is working for me on boot2docker:

#!/bin/sh
docker run \
   -v $GOPATH/src/github.com/openshift/origin:/go/src/github.com/openshift/origin \
   -v /usr/local/bin/docker:/usr/bin/docker \
   -v /var/run/docker.sock:/var/run/docker.sock \
   -e OS_VERSION_FILE="" \
   openshift/origin-release hack/build-images.sh

@ironcladlou
Copy link
Contributor Author

@csrwng One nit with that approach is that you're building bind mounted source through the VM rather than letting the origin-release container build from the source that was prepared and streamed to it.

@smarterclayton I had one more idea to revise what I have here: what if instead of building just 1 release tar and pulling down the image binaries separately place_bins was modified to produce the release tar (excluding image binaries), and a second image binaries tar (including only image binaries)? Then the build-release.sh could:

  1. Pull down and verify the release tar
  2. Pull down and verify image tar(s)
  3. Untar both to the same place

I think that seems more internally consistent than what I have so far.

@smarterclayton
Copy link
Contributor

Yes.

----- Original Message -----

@csrwng One nit with that approach is that you're building bind mounted
source through the VM rather than letting the origin-release container build
from the source that was prepared and streamed to it.

@smarterclayton I had one more idea to revise what I have here: what if
instead of building just 1 release tar and pulling down the image binaries
separately place_bins was modified to produce the release tar (excluding
image binaries), and a second image binaries tar (including only image
binaries)? Then the build-release.sh could:

  1. Pull down and verify the release tar
  2. Pull down and verify image tar(s)
  3. Untar both to the same place

I think that seems more internally consistent than what I have so far.


Reply to this email directly or view it on GitHub:
#897 (comment)

@ironcladlou ironcladlou force-pushed the cross-compile-image-binaries branch 2 times, most recently from 96f4569 to 47185c1 Compare February 9, 2015 17:08
@ironcladlou
Copy link
Contributor Author

@smarterclayton Check out this new revision.

@ironcladlou ironcladlou force-pushed the cross-compile-image-binaries branch from 47185c1 to 04348d4 Compare February 9, 2015 18:15
@smarterclayton
Copy link
Contributor

Do hello-Openshift as well

@ironcladlou ironcladlou force-pushed the cross-compile-image-binaries branch 2 times, most recently from ddd7ff0 to d5b9ba9 Compare February 10, 2015 19:53
@ironcladlou ironcladlou changed the title Portably cross-compile image binaries Platform independent image builds Feb 10, 2015
@ironcladlou ironcladlou force-pushed the cross-compile-image-binaries branch 5 times, most recently from 6cced84 to 6655abe Compare February 10, 2015 20:44
@ironcladlou
Copy link
Contributor Author

@smarterclayton

Ready for another review. I think I managed to get the release builder just generic enough to support our core/images splits.

@ironcladlou ironcladlou force-pushed the cross-compile-image-binaries branch from 6655abe to 4ecc527 Compare February 11, 2015 13:31
@ironcladlou
Copy link
Contributor Author

@smarterclayton I know you've been busy with an upstream refactor, so I promise to ping you about this only once a day. ☺️

@smarterclayton smarterclayton modified the milestone: 0.4.0 (beta2) Feb 12, 2015
@ironcladlou ironcladlou force-pushed the cross-compile-image-binaries branch from 4ecc527 to b4279cb Compare February 12, 2015 19:49
@ironcladlou
Copy link
Contributor Author

Rebased.

@ironcladlou
Copy link
Contributor Author

@smarterclayton Psssst.

@ironcladlou ironcladlou force-pushed the cross-compile-image-binaries branch from b4279cb to 488ae32 Compare February 16, 2015 14:22
@smarterclayton
Copy link
Contributor

Have you got a passing jenkins test?

Make the build/release process more generic to allow multiple release targets
such as core and image binaries. This makes the build/release process once
again platform independent (provided docker is available on the host), and
re-enables support for build-release/build-images on OSX.
@ironcladlou ironcladlou force-pushed the cross-compile-image-binaries branch from 488ae32 to 794be1e Compare February 17, 2015 14:01
@ironcladlou
Copy link
Contributor Author

Figures... it was green for days and when you come back around everything's red red red

@ironcladlou
Copy link
Contributor Author

Rebased again, waiting for results.

@smarterclayton
Copy link
Contributor

LGTM [merge]

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_requests_openshift3/941/) (Image: devenv-fedora_814)

@openshift-bot
Copy link
Contributor

Evaluated for origin up to 794be1e

openshift-bot pushed a commit that referenced this pull request Feb 17, 2015
@openshift-bot openshift-bot merged commit 9652ad0 into openshift:master Feb 17, 2015
@ironcladlou ironcladlou deleted the cross-compile-image-binaries branch February 18, 2015 13:40
jpeeler pushed a commit to jpeeler/origin that referenced this pull request Jun 15, 2017
…service-catalog/' changes from c91fecb..1bfff53

1bfff53 instance never provisioned should just delete (openshift#891)
1ae26db Adding a fake broker server (openshift#928)
6403076 docs: fix quoting issue, clarify naming in auth.md (openshift#931)
8ac0775 Merge branch 'pr/927'
02af952 Merge branch 'pr/876'
2aa84f9 add Jenkins badge to README
0c08788 Brokers must have at least one service (openshift#930)
cbfa39b Add PodPreset support (openshift#917)
0d9b810 refactor Jenkins GitHub status postback to work on non-PR commits (openshift#916)
066159d Converting the AuthSecret field to a union AuthInfo type (openshift#877)
203af5c Add leader election namespace configuration (openshift#920)
5831502 Add example JSON schema to controller unit tests (openshift#918)
b78ab99 Fix usage of finalizers (openshift#894)
d3d29f0 Enable pprof in controller-manager (openshift#896)
f4233a0 Correct parameter schema support (openshift#912)
05c6f00 bump image tags from v0.0.8 to v0.0.9 (openshift#910)
97d278a Add support for OSB parameter schemas (openshift#822)
3e4120e Fix nil dereference panic on request timeout (openshift#906)
d8c7494 Add feature gate for audit options in helm chart (openshift#904)
89ce1cd Decompose controller unit tests (openshift#899)
a1e83b2 Add e2e for walkthrough (openshift#832)
4679685 Add support for audit log options (openshift#897)
262a94f Do not allow updates to an object if asynchronous operation is in progress (openshift#853)
7295dad Validate that a ServiceClass must have at least one plan (openshift#879)
9db9fa4 Decompose controller.go (openshift#893)
c3ea9bd Nits in our types (openshift#854)
1d8280a bump tags from v0.0.7 to v0.0.8 (openshift#892)
5e6925d Clean up the OSB client (openshift#888)
fe6aee9 cleaning up logs and adding more log detail (openshift#874)
f41516f Detect if a TPR update represents a soft delete (openshift#836)
9ce99f3 Add functions on Makefile for build and tag
REVERT: c91fecb Merge pull request openshift#1 from jpeeler/origin-build
REVERT: 55ccf3d origin build: add _output to .gitignore
REVERT: 8352e14 origin build: make build-go and build-cross work
REVERT: d969641 origin build: modify hard coded path
REVERT: 30000cc origin build: add origin tooling

git-subtree-dir: cmd/service-catalog/go/src/github.com/kubernetes-incubator/service-catalog
git-subtree-split: 1bfff53
jpeeler pushed a commit to jpeeler/origin that referenced this pull request Jun 15, 2017
…service-catalog/' changes from c91fecb..568a7b9

568a7b9 origin build: add origin tooling
1bfff53 instance never provisioned should just delete (openshift#891)
1ae26db Adding a fake broker server (openshift#928)
6403076 docs: fix quoting issue, clarify naming in auth.md (openshift#931)
8ac0775 Merge branch 'pr/927'
02af952 Merge branch 'pr/876'
2aa84f9 add Jenkins badge to README
0c08788 Brokers must have at least one service (openshift#930)
cbfa39b Add PodPreset support (openshift#917)
0d9b810 refactor Jenkins GitHub status postback to work on non-PR commits (openshift#916)
066159d Converting the AuthSecret field to a union AuthInfo type (openshift#877)
203af5c Add leader election namespace configuration (openshift#920)
5831502 Add example JSON schema to controller unit tests (openshift#918)
b78ab99 Fix usage of finalizers (openshift#894)
d3d29f0 Enable pprof in controller-manager (openshift#896)
f4233a0 Correct parameter schema support (openshift#912)
05c6f00 bump image tags from v0.0.8 to v0.0.9 (openshift#910)
97d278a Add support for OSB parameter schemas (openshift#822)
3e4120e Fix nil dereference panic on request timeout (openshift#906)
d8c7494 Add feature gate for audit options in helm chart (openshift#904)
89ce1cd Decompose controller unit tests (openshift#899)
a1e83b2 Add e2e for walkthrough (openshift#832)
4679685 Add support for audit log options (openshift#897)
262a94f Do not allow updates to an object if asynchronous operation is in progress (openshift#853)
7295dad Validate that a ServiceClass must have at least one plan (openshift#879)
9db9fa4 Decompose controller.go (openshift#893)
c3ea9bd Nits in our types (openshift#854)
1d8280a bump tags from v0.0.7 to v0.0.8 (openshift#892)
5e6925d Clean up the OSB client (openshift#888)
fe6aee9 cleaning up logs and adding more log detail (openshift#874)
f41516f Detect if a TPR update represents a soft delete (openshift#836)
9ce99f3 Add functions on Makefile for build and tag
REVERT: c91fecb Merge pull request openshift#1 from jpeeler/origin-build
REVERT: 55ccf3d origin build: add _output to .gitignore
REVERT: 8352e14 origin build: make build-go and build-cross work
REVERT: d969641 origin build: modify hard coded path
REVERT: 30000cc origin build: add origin tooling

git-subtree-dir: cmd/service-catalog/go/src/github.com/kubernetes-incubator/service-catalog
git-subtree-split: 568a7b9dbdc4fdd1fabffdd52af030ec73124b89
jpeeler pushed a commit to jpeeler/origin that referenced this pull request Feb 1, 2018
* Add support for audit log options

* Add chart options for audit-log
jsafrane pushed a commit to jsafrane/origin that referenced this pull request Nov 11, 2021
The [Alerting Consistency][1] enhancement, and the proposed updates to
it in [openshift/enhancements openshift#897][2], define a style-guide for the
alerts shipped as part of OpenShift.  This adds a test validating some
of the guidelines considered required.

[1]: https://github.com/openshift/enhancements/blob/master/enhancements/monitoring/alerting-consistency.md
[2]: openshift/enhancements#897
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants