Athens: Build and publish docker images for the Athens server

Created on 22 Mar 2018  路  10Comments  路  Source: gomods/athens

We'll need to do this on the road to #57 and #80

ccd good first issue help wanted

Most helpful comment

@chrispickard sorry for the extremely late response on this. What @michalpristas said is correct - it would be adding something to CI/CD in order to build/push our docker images up to dockerhub

All 10 comments

both olympus and the proxy have dockerfiles, what else needs to happen for this issue?

I think this issue covers official docker images on docker repo available for anybody to download.

@chrispickard sorry for the extremely late response on this. What @michalpristas said is correct - it would be adding something to CI/CD in order to build/push our docker images up to dockerhub

Ref #421

Also, note that https://github.com/gomods/athens/pull/475 is setting the default storage to in-memory, so that users can have a good first-time experience (i.e. no need to set up directory structures, no need to set up Mongo, etc...)

Once docker images are published, maybe we could make the (or one of the) first-time setup tutorials use docker run with a different storage driver (like disk?)

I would like to take this on. How do I get access to our CI/CD?

For CI you can add a script, preferably to the ./scripts directory, and then add a step to the .travis.yml for build and deployment. You might want to look at using the after-success build stage.

For details on deployment see https://docs.travis-ci.com/user/deployment

For an example .travis.yml used for docker deployment and testing check out the travis docs demo.

You will need to talk to @arschles or maybe someone else about getting credentials for the docker hub account. These credentials will need to be encrypted for security, see https://docs.travis-ci.com/user/encryption-keys/

I'll get the credentials for the docker registry into our travis build if it's not there already. @mydiemho Ping me if you need help on this! 馃榾

@mydiemho I apologize for jumping on this but it rose in priority with GopherCon getting close, and because it simplifies our documentation so much. I'll be opening a PR shortly to get this implemented, and would appreciate your comments on it!

@carolynvs no worry, this will be a good learning experience for me. Would love to pair with you on another issue next time :D

Was this page helpful?
0 / 5 - 0 ratings

Related issues

arschles picture arschles  路  4Comments

marpio picture marpio  路  4Comments

komuw picture komuw  路  3Comments

arschles picture arschles  路  4Comments

Haiyung picture Haiyung  路  3Comments