projectatomic/ansible-role-atomic-reactor

Name: ansible-role-atomic-reactor

Owner: Project Atomic

Description: Ansible role to pull or build atomic-reactor docker image to be used in OpenShift build service.

Created: 2015-09-10 12:37:31.0

Updated: 2018-03-21 17:33:12.0

Pushed: 2016-07-01 09:19:08.0

Homepage: null

Size: 10

Language: null

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

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

You can push the resulting image to a docker registry, such as OpenShift internal registry. List of push specifications can be set using the atomic_reactor_push_to variable.

atomic_reactor_push_to:
- 172.30.35.82:5000/default/buildroot:latest
- 172.30.35.82:5000/default/buildroot:{{ version }}
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>


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.