A Go, Docker workflow
blog.crowdpatent.com
A Go, Docker workflow
1–10 of 16 posts
Re: A Go, Docker workflow
#2Re: A Go, Docker workflow
#3Worth checking out docker-compose for more complex setups (if you need a Redis and PostgreSQL database running for example). I have been using it for Node.js development for the past few months and it is really a life changer especially if you are working on multiple projects concurrently. Pro-tip: `echo "alias dc=docker-compose" >> ~/.zshrc`
Re: A Go, Docker workflow
#4 target: dependency
...instead of target:
make dependency
Doing it this way actually breaks dependency checks. It's just plain wrong.Here's a "proper" Makefile, complete with conditionals, expansion, etc.:
https://github.com/rcarmo/sushy/blob/master/Makefile
...and here's one of my Go Makefiles (no sub-targets here, but does vendoring in a way that's quite similar to what Go 1.5 turned out to adopt)
https://github.com/rcarmo/go-rss2imap/blob/master/Makefile
(edit: whitespace)
Re: A Go, Docker workflow
#5Worth checking out docker-compose for more complex setups (if you need a Redis and PostgreSQL database running for example). I have been using it for Node.js development for the past few months and it is really a life changer especially if you are working on multiple projects concurrently. Pro-tip: `echo "alias dc=docker-compose" >> ~/.zshrc`
There is one little caveat when using boot2docker, in that when you're running tests on a separate terminal you need to be careful to remember to do $(boot2docker shellinit) _and_ expose container ports so that they're visible outside the boot2docker VM - so check your IPs and make sure your containers log the environment variables they're using for links, so that you can check where to connect your tests :)
Re: A Go, Docker workflow
#6That Makefile is... weird. Why issue a "make sub-target" command? Makefiles are all about understanding dependencies, so you should actually be doing target: dependency ...instead of target: make dependency Doing it this way actually breaks dependency checks. It's just plain wrong. Here's a "proper" Makefile, complete with conditionals, expansion, etc.: https://github.com/rcarmo/sushy/blob/master/Makefile ...and here…
Re: A Go, Docker workflow
#7Worth checking out docker-compose for more complex setups (if you need a Redis and PostgreSQL database running for example). I have been using it for Node.js development for the past few months and it is really a life changer especially if you are working on multiple projects concurrently. Pro-tip: `echo "alias dc=docker-compose" >> ~/.zshrc`
Re: A Go, Docker workflow
#8Worth checking out docker-compose for more complex setups (if you need a Redis and PostgreSQL database running for example). I have been using it for Node.js development for the past few months and it is really a life changer especially if you are working on multiple projects concurrently. Pro-tip: `echo "alias dc=docker-compose" >> ~/.zshrc`
Has one of you tried xhyve? https://coreos.com/blog/coreos-and-xhyve-tech-preview/
Re: A Go, Docker workflow
#9Worth checking out docker-compose for more complex setups (if you need a Redis and PostgreSQL database running for example). I have been using it for Node.js development for the past few months and it is really a life changer especially if you are working on multiple projects concurrently. Pro-tip: `echo "alias dc=docker-compose" >> ~/.zshrc`
Has one of you tried xhyve? https://coreos.com/blog/coreos-and-xhyve-tech-preview/
Re: A Go, Docker workflow
#10Worth checking out docker-compose for more complex setups (if you need a Redis and PostgreSQL database running for example). I have been using it for Node.js development for the past few months and it is really a life changer especially if you are working on multiple projects concurrently. Pro-tip: `echo "alias dc=docker-compose" >> ~/.zshrc`
Has one of you tried xhyve? https://coreos.com/blog/coreos-and-xhyve-tech-preview/