-
Notifications
You must be signed in to change notification settings - Fork 0
New dock ami #573
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
Merged
Merged
New dock ami #573
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
1101f13
New plays for dock.yml
b1e6ee6
NOT MY PRESIDENT
dd3e9d0
Let amazon start its own service
2b3bda6
Edited main.yml
henrymollman ea0b10f
Merge remote-tracking branch 'origin/master' into new-dock-ami
4049e94
Merge remote-tracking branch 'origin/new-dock-ami' into new-dock-ami
cf89697
Updated to include weave containers
4af55ff
Added some demo repo images for speed
c16cd6e
Use host var for registry ip address
33a15f9
Cleanup docker pull playbook
a644b5c
New tags for dock-init
d3b4f04
Added registry host
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| --- | ||
| - name: starting docker | ||
| become: true | ||
| service: | ||
| name=docker | ||
| state=started | ||
|
|
||
| - name: add runnable registry to /etc/hosts | ||
| become: true | ||
| blockinfile: | ||
| dest: /etc/hosts | ||
| insertafter: EOF | ||
| block: | | ||
| {{ registry_address }} registry.runnable.com | ||
|
|
||
| - name: pulling docker images | ||
| become: true | ||
| command: docker pull {{ item }} | ||
| with_items: | ||
| - "registry.runnable.com/runnable/image-builder:v4.2.2" | ||
| - "swarm:1.2.5" | ||
| - "registry:2.3.1" | ||
| - "google/cadvisor:v0.24.1" | ||
| - "prom/node-exporter:0.12.0" | ||
| - "weaveworks/weaveexec:1.5.0" | ||
| - "weaveworks/weavedb:latest" | ||
| - "weaveworks/weave:1.5.0" | ||
| - "node:argon" | ||
| - "ruby:2.3" | ||
| - "python:2.7" | ||
| - "php:7.0-apache" | ||
| - "runnable/mysql:5.6" | ||
| - "runnable/postgres:9.4" | ||
| - "runnable/mongo:3.2" | ||
|
|
||
| - name: stopping docker | ||
| become: true | ||
| service: | ||
| name=docker | ||
| state=stopped | ||
|
|
||
| - name: removing docker key file | ||
| become: true | ||
| file: | ||
| path: /etc/docker/key.json | ||
| state: absent | ||
|
|
||
| - name: removing docker pid file | ||
| become: true | ||
| file: | ||
| path: /var/run/docker.pid | ||
| state: absent |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| --- | ||
| - name: get amazon simple systems management | ||
| get_url: | ||
| url=https://amazon-ssm-us-west-2.s3.amazonaws.com/latest/debian_amd64/amazon-ssm-agent.deb | ||
| dest=/tmp | ||
|
|
||
| - name: start amazon simple systems management | ||
| command: dpkg -i amazon-ssm-agent.deb | ||
| become: true | ||
| args: | ||
| chdir: /tmp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that does this do? where is
hostset?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think because we need to execute the next block w/ the roles I used the hosts part to specify a new block. there is probably a better way to do this