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

Add bonneville-container #4

Merged
merged 5 commits into from
Jan 25, 2016
Merged

Add bonneville-container #4

merged 5 commits into from
Jan 25, 2016

Conversation

fdawg4l
Copy link
Contributor

@fdawg4l fdawg4l commented Jan 22, 2016

From commit 0f873f91f5936ae50d1d470ce603c54af0faa148 of bonneville-container.

Still need to add the license header to all files. Will do that in a future change.

Also includes refactor so we can build things locally.

@dougm
Copy link
Member

dougm commented Jan 22, 2016

We should avoid adding binary files to this clean repository. Thoughts?

@fdawg4l
Copy link
Contributor Author

fdawg4l commented Jan 22, 2016

Good catch, @dougm! Most of the bin files are for dos and I'm sure we don't need them in VIC. The isolinux file and the empty image file I'm sure we don't need or can pull from somewhere of we do. I didn't notice these and will take care of this.

@caglar10ur
Copy link
Contributor

Ivan uses https://raw.githubusercontent.com/go-swagger/go-swagger/master/hack/add-license.sh to add license header to the files

@@ -0,0 +1,61 @@
FROM golang:1.5.3

RUN apt-get update && apt-get -y install curl cpio ssh-client squashfs-tools xorriso git gcc make vim patch rpm busybox-static
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we really need gcc/make/vim and patch here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nope. This is from "upstream". Will nuke this in another PR.

@fdawg4l
Copy link
Contributor Author

fdawg4l commented Jan 22, 2016

@caglar10ur nice! I had a bash 4-liner, but this works too.

From 0f873f91f5936ae50d1d470ce603c54af0faa148.

The targets/linux/Dockerfile needs some updating since it refers to
isolinux.bin and boot.cat which were originally in the repo.  We can
pull these from external hosts or the build container directly.  Will
fix this in the near future.
This change removes the copying of targets/*/*.go into the build
container to build specific targets.  Instead all OS specific files are
in the same package and the go compiler can figure out what OS it's
building for to include the appropriate file.

Proxy was moved to tether/cmd/proxy/.  Since it implements a completely
independent binary, this made the most sense.

The result of all of this is (after running gpm get) you can now build
locally by using go build directly.
We were embedding the binaries in the repo and including them in
xorriso.  Instead, use syslinux and isolinux from the build container.
Removed the enatai-gerrit paths in the package namespaces and updated
the Dockerfiles.
@fdawg4l
Copy link
Contributor Author

fdawg4l commented Jan 25, 2016

We still have to figure out what to do about the photon kernel. It's currently being pulled from a jenkins build.

@caglar10ur
Copy link
Contributor

I suggest moving bonneville-kernel into the vic repo and then building it via drone and consume that artifact - until photon provides a kernel RPM that we can consume directly from their binary repo.

@fdawg4l
Copy link
Contributor Author

fdawg4l commented Jan 25, 2016

This is an option. I'd like to leave the kernel as an open issue and leave it out of this PR.

Other than the kernel, this PR is ready to go from my perspective.

@caglar10ur
Copy link
Contributor

:shipit: 👍 💯

caglar10ur added a commit that referenced this pull request Jan 25, 2016
Add bonneville-container
@caglar10ur caglar10ur merged commit bb6b87d into vmware:master Jan 25, 2016
caglar10ur pushed a commit that referenced this pull request Jan 25, 2016
Add bonneville-container
caglar10ur added a commit that referenced this pull request Jan 25, 2016
Add bonneville-container
AngieCris pushed a commit to AngieCris/vic that referenced this pull request Jan 25, 2018
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