Merge "Fix docker image build job"
This commit is contained in:
commit
c18a9f566a
10
.zuul.yaml
10
.zuul.yaml
@ -45,6 +45,14 @@
|
||||
required-projects:
|
||||
- openstack/mistral
|
||||
|
||||
- job:
|
||||
name: mistral-docker-buildimage-test
|
||||
run: playbooks/docker-buildimage/run.yaml
|
||||
post-run: playbooks/docker-buildimage/post.yaml
|
||||
timeout: 1800
|
||||
required-projects:
|
||||
- openstack/mistral
|
||||
|
||||
# This job does not work. We can come back to it later.
|
||||
# - job:
|
||||
# name: mistral-ha
|
||||
@ -106,7 +114,7 @@
|
||||
branches: master
|
||||
experimental:
|
||||
jobs:
|
||||
- mistral-docker-buildimage:
|
||||
- mistral-docker-buildimage-test:
|
||||
branches: master
|
||||
# This job doesn't work yet.
|
||||
# - mistral-ha:
|
||||
|
@ -6,15 +6,25 @@
|
||||
shell: curl -fsSL https://get.docker.com/ | sh
|
||||
args:
|
||||
chdir: '{{ work_dir }}'
|
||||
become: yes
|
||||
|
||||
- name: Restart Docker service
|
||||
service:
|
||||
name: docker
|
||||
state: restarted
|
||||
become: yes
|
||||
|
||||
- name: Install docker-py
|
||||
pip:
|
||||
name: docker-py
|
||||
become: yes
|
||||
|
||||
- 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'
|
||||
archive_path: '{{ work_dir}}/mistral-docker.tar.gz'
|
||||
buildargs:
|
||||
BUILD_V8EVAL: false
|
||||
become: yes
|
||||
|
Loading…
Reference in New Issue
Block a user