Skip to content
This repository has been archived by the owner on Nov 26, 2018. It is now read-only.

[WIP] Docker / go 1.6 updates #43

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

[WIP] Docker / go 1.6 updates #43

wants to merge 5 commits into from

Conversation

gaker
Copy link
Collaborator

@gaker gaker commented Aug 12, 2016

Salient changes:

  • Update to golang 1.6 base docker image.
  • Add docker-compose file that includes db creation/adding the schema
    as well as the required redis container.
  • Allow for backwards compatibility in redis/postgres environment vars,
    but try to setup from docker links if STORAGE_URL and QUEUE_URL
    are not in the environment.
  • Bring in dependencies into the repo using govendor.
  • Addressed a few issues getting the app to boot in this setup
  • Update postgres schema to match what is in the django project (and make
    queries work).

gaker added 5 commits August 11, 2016 21:38
Also Add docker-compose that includes db bootstrapping, and
redis
TODO: Add build steps for doing prod builds for docker.
@gaker
Copy link
Collaborator Author

gaker commented Aug 12, 2016

@ipmb / @yml feedback is appreciated.

@@ -109,7 +110,17 @@ type RedisQueue struct {
func NewRedisQueue() Queue {
redisUrlString := os.Getenv("REDIS_PLUGIN_QUEUE_URL")
if redisUrlString == "" {
glog.Fatal("REDIS_PLUGIN_QUEUE_URL cannot be empty.\nexport REDIS_PLUGIN_QUEUE_URL=redis://host:port/db_number")

// try to connect via docker links if they exist.
Copy link
Member

Choose a reason for hiding this comment

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

Hmm, not sure how I feel about having Docker related stuff in the code. It's easy enough to build up the environment variable when starting the containers, right?

@ipmb
Copy link
Member

ipmb commented Aug 12, 2016

Thanks @gaker! I left some notes in there... I think we'll need a little documentation too. Guessing a small section in the README is sufficient.

@ipmb ipmb force-pushed the master branch 2 times, most recently from e4efebd to f77af5b Compare April 28, 2018 05:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants