Skip to content

Conversation

@sdodson
Copy link
Member

@sdodson sdodson commented Feb 5, 2015

No description provided.

@sdodson sdodson force-pushed the set-images-format branch 2 times, most recently from 29a1dc4 to 4300d2b Compare February 5, 2015 21:34
@sdodson
Copy link
Member Author

sdodson commented Feb 5, 2015

Ok, if dist = el7ose then you get
--images=registry.access.redhat.com/openshift3_beta/ose-${component}:${version}
else you get
--images=openshift/origin-${component}:${version}

If building with tito locally you'll need to add the following to your build command, there may be some way to do this automatically via tito.props
--rpmbuild-options='--define "dist el7ose"'

@sdodson sdodson changed the title [WIP] manipulate images path conditionally based on rpm %{dist} RPMs: manipulate images path conditionally based on rpm %{dist} Feb 5, 2015
@sdodson
Copy link
Member Author

sdodson commented Feb 5, 2015

@brenton PTAL

@sdodson sdodson force-pushed the set-images-format branch 2 times, most recently from fc16e82 to 688e7d2 Compare February 6, 2015 15:50
@sosiouxme
Copy link
Member

Looks good... I assume we're going to put the necessary version tags on the docker images in registry.access.redhat.com?

@sdodson
Copy link
Member Author

sdodson commented Feb 6, 2015

I believe Brenton is tagging the images with versions prior to pushing them.

@brenton
Copy link
Contributor

brenton commented Feb 6, 2015

@sdodson, I haven't tagged anything explicitly yet. Let me sync with ejacobs to see if we wants this for beta1 or not. We could technically get by with just using the latest tags.

@smarterclayton
Copy link
Contributor

I don't think we should drop this.

@smarterclayton
Copy link
Contributor

  • Unless we absolutely have to.

@sosiouxme
Copy link
Member

@smarterclayton suggested we hardcode "beta1" as the version injected by the specfile, unless we can get tito to inject the version (0.3.0-git.42.afe2a53...) correctly. This should help us when we need to push updates (beta1 or future). Whatever we put in there has to be a valid tag that we can apply in registry.access.redhat.com

@sdodson
Copy link
Member Author

sdodson commented Feb 6, 2015

I think I can get tito to buid the proper ldflags from os::build::ldflags in hack/common.sh which would fix openshift version which I imagine is requisite for image versions to work properly.

@smarterclayton
Copy link
Contributor

Tito just needs to set a tag?

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

I think I can get tito to buid the proper ldflags from on os::build::ldflags
in hack/common.sh which would fix openshift version which I imagine is
requisite for image versions to work properly.


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

@sdodson
Copy link
Member Author

sdodson commented Feb 6, 2015

@smarterclayton The problem arises in the fact that brew doesn't build the RPMs from a git checkout. However tito build and tito tag do happen locally in the git checkout before shipping things off to brew. So I'm going to source hack/common.sh and store the ldflags generated from os::build::ldflags() in a specfile global and use that.

I spoke with Adam Miller a bit about why we're building via go build rather than hack/build-go.sh and I don't think we'll get that sorted out quickly enough to consider using hack/build-go.sh to build the RPMs.

@sdodson
Copy link
Member Author

sdodson commented Feb 6, 2015

And yes, tito creates a tag of it's own when releasing like 'openshift-0.2.1-4'

@smarterclayton
Copy link
Contributor

On Feb 6, 2015, at 12:10 PM, Scott Dodson [email protected] wrote:

@smarterclayton The problem arises in the fact that brew doesn't build the RPMs from a git checkout. However tito build and tito tag do happen locally in the git checkout before shipping things off to brew. So I'm going to source hack/common.sh and store the ldflags generated from os::build::ldflags() in a specfile global and use that.

We should already support loading those from a file - if possible making those fit together would be ideal.

I spoke with Adam Miller a bit about why we're building via go build rather than hack/build-go.sh and I don't think we'll get that sorted out quickly enough to consider using hack/build-go.sh to build the RPMs.

Ultimately build-cross (even if we only run it for one arch) is our official build script and is what we should be using. By beta2 I'd like to have rpms building from that - do you see an obstacle to that?

Reply to this email directly or view it on GitHub.

@sdodson
Copy link
Member Author

sdodson commented Feb 6, 2015

@smarterclayton I'll look at using build-cross in the future. I was told that the hack/* scripts would not run inside a mock chroot but that may have changed since Adam looked at it last.

For now I've updated the tito custom builder/tagger to inject the value of os::build::ldflags into the RPM build process and I've verified that it yields sane results.

sdodson@sdodson: ~/git/Openshift/origin (set-images-format)$ openshift version
openshift v0.2.2-131-ge9d5726cc2a554
kubernetes v0.10.0-46-g72ad4f1

@smarterclayton
Copy link
Contributor

K

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

@smarterclayton I'll look at using build-cross in the future. I was told that
the hack/* scripts would not run inside a mock chroot but that may have
changed since Adam looked at it last.

For now I've updated the tito custom builder/tagger to inject the value of
os::build::ldflags into the RPM build process and I've verified that it
yields sane results.

sdodson@sdodson: ~/git/Openshift/origin (set-images-format)$ openshift
version
openshift v0.2.2-131-ge9d5726cc2a554
kubernetes v0.10.0-46-g72ad4f1

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

@sdodson
Copy link
Member Author

sdodson commented Feb 13, 2015

Ok, ${version} is in after verifying RCM steps. Can we merge this now?

@smarterclayton
Copy link
Contributor

LGTM

@sdodson
Copy link
Member Author

sdodson commented Feb 13, 2015

[merge]

1 similar comment
@danmcp
Copy link

danmcp commented Feb 17, 2015

[merge]

@openshift-bot
Copy link
Contributor

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

@openshift-bot
Copy link
Contributor

Evaluated for origin up to 13eaf0f

openshift-bot pushed a commit that referenced this pull request Feb 17, 2015
@openshift-bot openshift-bot merged commit 0a29569 into openshift:master Feb 17, 2015
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
@sdodson sdodson deleted the set-images-format branch May 11, 2018 19:29
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.

6 participants