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

Fix up dockerized build and release build #1221

Merged
merged 5 commits into from
Sep 9, 2014

Conversation

jbeda
Copy link
Contributor

@jbeda jbeda commented Sep 8, 2014

This is still WIP but I wanted to get this stuff in so that this is reviewed in more bite sized chunks.

@filbranden
Copy link
Contributor

Will look into it.

* Support cleaning out built docker images
* Use bash arrays in places
* Lock etcd version we are testing against
@jbeda jbeda force-pushed the dockerized-deploy branch from 5df9e73 to d03a55a Compare September 9, 2014 22:04
@jbeda
Copy link
Contributor Author

jbeda commented Sep 9, 2014

@filbranden Please take another look. I went through and fixed a bunch of names to match the style guide. I'm sure I still missed some stuff but it should be better.

cp build/build-image/Dockerfile ${BUILD_CONTEXT_DIR}/Dockerfile
docker-build "${KUBE_BUILD_IMAGE}" "${BUILD_CONTEXT_DIR}"
)
mkdir -p ${build_context_dir}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These occurrences of ${build_context_dir} in this line and the four that follow it should be in double quotes.

@jbeda jbeda force-pushed the dockerized-deploy branch from d03a55a to ed5bfa2 Compare September 9, 2014 23:04
@jbeda
Copy link
Contributor Author

jbeda commented Sep 9, 2014

Please take another look. I'm happy to eliminate code duplication after hack settles.

@filbranden
Copy link
Contributor

Looks good, thanks for addressing my remarks!

Yep, let's merge it in and figure out how to converge in the future.

I really wish our build frameworks would become more generic. From glancing at this, it looks like a lot of it is very specific to building inside Docker but I think we could target other interesting cases (I looked into having Travis do our build and push the binaries to GitHub, for instance.) We can try to refactor that in the future...

Also, at this point I'm fairly convinced shell isn't scaling for what this is trying to do... Maybe we should have a closer look at that make.go you mentioned at some point?

Cheers,
Filipe

filbranden added a commit that referenced this pull request Sep 9, 2014
Fix up dockerized build and release build
@filbranden filbranden merged commit 516de05 into kubernetes:master Sep 9, 2014
tkashem pushed a commit to tkashem/kubernetes that referenced this pull request Mar 31, 2022
[release-4.10] Bug 2065774: Backport 108723 OutofCpu Fixes
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.

3 participants