Skip to content
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

configure hubot docker service via ansible #58

Closed
wants to merge 1 commit into from

Conversation

reaperhulk
Copy link
Member

depends on #42

Should we also add something to interactively add HUBOT_GITHUB_TOKEN if it's not already present?

- command: docker service ls
register: docker_service_ls
- name: "configure docker service for hubot"
command: docker service create --name="hubot" --secret="HUBOT_GITHUB_TOKEN" pyca/hubot
Copy link
Member

Choose a reason for hiding this comment

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

Ok, how does this work when we want to force a pull?

Copy link
Member Author

Choose a reason for hiding this comment

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

All this does is initial service creation right now -- if we want to handle service restarts (or readonly, etc) we'll need to do some research.

Copy link
Member

Choose a reason for hiding this comment

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

I think we should have that full flow as a part of this, yes.

Copy link

Choose a reason for hiding this comment

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

By "readonly" do you mean running your service with read-only containers? If so, I think that may only be in 17.05

Copy link

@cyli cyli Apr 29, 2017

Choose a reason for hiding this comment

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

Also, if by "service restarts" you mean what to do if the task dies and it needs to be restarted, there's a bunch of --restart-X flags. Alternately, you could also do a docker stack deploy and configure your services/stacks that way. For example: https://github.com/dockersamples/atsea-sample-shop-app/blob/master/docker-stack.yml

@reaperhulk
Copy link
Member Author

We aren't using hubot now.

@reaperhulk reaperhulk closed this Jan 6, 2018
@reaperhulk reaperhulk deleted the ansible-hubot branch January 6, 2018 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants