ansible/roles/osbs-atomic-reactor
2016-08-08 16:35:12 +00:00
..
defaults add osbs w/ v2 registry support 2016-01-28 20:31:13 +00:00
files fix atomic-reactor repos to also handle epel 2016-04-13 17:38:54 +00:00
handlers properly quote command in roles/osbs-atomic-reactor handler 2016-01-28 21:17:50 +00:00
meta add osbs w/ v2 registry support 2016-01-28 20:31:13 +00:00
tasks Use a more concise form for include of playbook 2016-08-08 16:35:12 +00:00
README.md add osbs w/ v2 registry support 2016-01-28 20:31:13 +00:00

atomic-reactor

This role obtains atomic-reactor docker image to be used in OSBS (OpenShift build service).

This role is part of ansible-osbs playbook for deploying OpenShift build service. Please refer to that github repository for documentation and issue tracker.

Role Variables

atomic_reactor_source determines the means of obtaining the There are currently two methods to obtain the image, pull and git. The pull method simply pulls the image from a given registry. The git method builds the image by running docker build on given git repository.

atomic_reactor_source: pull

When atomic_reactor_source is set to pull, you need to provide atomic_reactor_pull dictionary such as the following:

atomic_reactor_pull:
  registry: registry.hub.docker.com
  image: slavek/atomic-reactor:latest

When atomic_reactor_source is set to git, you need to provide atomic_reactor_git dictionary such as the following:

atomic_reactor_git:
  # base image source to be pulled (optional)
  base_registry: registry.hub.docker.com
  base_image: library/fedora:latest
  # allow retagging the base image to match FROM in Dockerfile (optional)
  base_image_retag: fedora:latest
  # Dockerfile source
  git_url: https://github.com/projectatomic/atomic-reactor.git
  git_branch: master
  git_subdir: ""
  git_local_path: "{{ ansible_env.HOME }}/atomic-reactor-buildroot"

OSBS expects the build image to be named buildroot. This name can be changed by setting the atomic_reactor_tag variable.

atomic_reactor_tag: buildroot

Dependencies

Docker needs to be installed on the remote host.

Example Playbook

In default configuration the role pulls the image from slavek/atomic-reactor repository on docker hub.

- hosts: builders
  roles:
     - atomic-reactor

License

BSD

Author Information

Martin Milata <mmilata@redhat.com>