mozilla / observatory-cli

Mozilla Public License 2.0
187 stars 24 forks source link

docker - automatic builds #26

Open jarondl opened 7 years ago

jarondl commented 7 years ago

Could you please set up automatic builds on docker hub? The Dockerfile already exists, so tt is very simple to do, but requires the right privileges.

gregglind commented 7 years ago

@jrm16020 thoughts?

gregglind commented 7 years ago

@jarondl if you explain what needs doing, I can consider doing it :) What are the 'right privileges' here?

jrm16020 commented 7 years ago

@gregglind an automated build of the container would be nice. Can you access the Mozilla Dockerhub organization

The general steps involved are:

  1. Create a repository under the "Mozilla" organization appropriately named (observatory-cli makes sense).
  2. Next to your Gravatar in the upper right-hand corner of the screen is a drop-down menu that says "Create". Clicking there will show "Create Automated Build".
  3. When setting up an automated build, you'll link this Github repository to the Dockerhub repo so that the Dockerfile can be found, used to build the container.
  4. Manual hooks can be added later so that as code is checked into the Github repo, new builds of the container are triggered.
jrm16020 commented 7 years ago

@jarondl in the interim, steps to build the container locally are provided in the repo's README.md file

jarondl commented 7 years ago

@jrm16020 , Thank you for explaining the steps to @gregglind. I have already built it myself for use in servo/saltfs#518, but I'd rather have a trusted up-to-date build.

gregglind commented 7 years ago

So, partway there: https://hub.docker.com/r/mozilla/observatory-cli/ . I still need to add ci for it. For now, I will do that when I publish, to keep it up to date.

jrm16020 commented 7 years ago

Looks good @gregglind! Thanks for adding it!