Skip to content

infrastructure: consider replacing Vagrant with docker #100

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

Closed
sbinet opened this issue Dec 1, 2015 · 4 comments
Closed

infrastructure: consider replacing Vagrant with docker #100

sbinet opened this issue Dec 1, 2015 · 4 comments

Comments

@sbinet
Copy link
Member

sbinet commented Dec 1, 2015

Vagrant is a great tool but it has a lot of dependencies and is somewhat slower to provision VMs than docker to provision containers.

For MacOSX and Windows developers, switching to docker shouldn't be an issue.
For Linux users, there are only benefits (smaller memory footprint, increased responsivity, etc...)

@zimmski
Copy link
Member

zimmski commented Dec 1, 2015

I see only one problem which I cannot answer: Is it possible to "share" a local directory with a Docker container? The advantage of Vagrant is that you can compile/test in the VM while you can code and commit from the outside.

Besides that, creating a Dockerfile is pretty easy since we only need the ubuntu trusty 64bit image as a base and then execute the vagrant scripts.

@sbinet
Copy link
Member Author

sbinet commented Dec 1, 2015

yep, e.g:

sh> docker run -v `pwd`:/go/src/github.com/go-clang/gen golang:1.5 make

(the base image golang:1.5 might not have everything installed, though, so we'd have to create a, say, go-clang/build image)

@zimmski
Copy link
Member

zimmski commented Dec 1, 2015

Cool! Now that I am thinking about it, it just makes sense since I am doing that also in production :D

I used $GOPATH/src/github.com/go-clang btw to sync all repositories.

sbinet added a commit to sbinet/go-clang-gen that referenced this issue Dec 8, 2015
This CL adds docker images with `go` and LLVM/CLang installed.

- go-clang/base holds a `go` install under `/usr/lib/go` and points GOPATH at /go
- go-clang/build holds a LLVM install

Fixes go-clang#100.
@zimmski
Copy link
Member

zimmski commented Dec 18, 2016

We considered this a long time ago and said "yes". @zchee has kind of offered to implement this in #130

@zimmski zimmski closed this as completed Dec 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants