Files
mistral/playbooks/docker-buildimage/run.yaml
Vitalii Solodilov e3918a1efd Fixed the Mistral Docker build job
Change-Id: I4d969d2a3b1c51dd1f2b55bf4d678e09c33e85f7
2018-03-21 16:55:55 +00:00

21 lines
570 B
YAML

- hosts: all
vars:
work_dir: '{{ ansible_user_dir }}/src/{{ zuul.project.canonical_name }}'
tasks:
- name: Install Docker
shell: curl -fsSL https://get.docker.com/ | sh
args:
chdir: '{{ work_dir }}'
- name: Restart Docker service
service:
name: docker
state: restarted
- name: Build and archive a Mistral image
docker_image:
name: mistral
path: '{{ work_dir }}'
dockerfile: '{{ work_dir }}/tools/docker/Dockerfile'
archive_path: '{{ work_dir}}}/mistral-docker.tar.gz'