Ansible Container Cheatsheet: Difference between revisions

From Wildsong
Jump to navigationJump to search
Brian Wilson (talk | contribs)
Created page with "== Commands == ansible-container init Create a new ansible-container project in the current directory ansible-container build ansible-container run [--production] ansi..."
 
Brian Wilson (talk | contribs)
Line 1: Line 1:
== Commands ==
== Commands ==


ansible-container init
'''ansible-container init''' Create a new ansible-container project in the current directory
Create a new ansible-container project in the current directory


ansible-container build
'''ansible-container build'''


ansible-container run [--production]
'''ansible-container run ''--production'''''


ansible-container destroy
'''ansible-container destroy''' Stop container(s) and remove related images. Similar to "docker-compose down".
Stop container(s) and remove related images. Similar to "docker-compose down".


ansible-container push
'''ansible-container push''' Send the container images up to the Docker Hub (or other registry).
Send the container images up to the Docker Hub (or other registry).


ansible-container deploy
'''ansible-container deploy''' Deploy by sending the project up to a cloud service provider, either OpenShift or Kubernetes currently.
Deploy by sending the project up to a cloud service provider, either OpenShift or Kubernetes currently.


== Project files created by 'init' ==
== Project files created by 'init' ==

Revision as of 20:30, 26 February 2019

Commands

ansible-container init Create a new ansible-container project in the current directory

ansible-container build

ansible-container run --production

ansible-container destroy Stop container(s) and remove related images. Similar to "docker-compose down".

ansible-container push Send the container images up to the Docker Hub (or other registry).

ansible-container deploy Deploy by sending the project up to a cloud service provider, either OpenShift or Kubernetes currently.

Project files created by 'init'

project/
  ansible.cfg - primary ansible config
  ansible-requirements.txt - pip dependencies
  container.yml - sort of like docker-compose.yml
  meta.yml - project metadata
  requirements.yml - roles