Add base docker-build job
This job checks workflow that we are using at autobuilds at dockerhub. Change-Id: Ic4e0eaa726787cc3ebe58ca874845362839701ae
This commit is contained in:
parent
5d0d48a3f2
commit
c83118a65d
@ -25,6 +25,14 @@
|
||||
parent: rally-install-base
|
||||
nodeset: centos-8
|
||||
|
||||
- job:
|
||||
name: rally-docker-build
|
||||
parent: base
|
||||
nodeset: ubuntu-bionic
|
||||
pre-run: tests/ci/playbooks/rally-docker-build/pre.yaml
|
||||
run: tests/ci/playbooks/rally-docker-build/run.yaml
|
||||
timeout: 1800
|
||||
|
||||
- job:
|
||||
name: rally-database-migration
|
||||
parent: base
|
||||
@ -45,12 +53,13 @@
|
||||
- rally-tox-py37
|
||||
- rally-tox-cover
|
||||
- rally-tox-functional
|
||||
- rally-tox-self
|
||||
- rally-database-migration
|
||||
- rally-install-ubuntu-xenial
|
||||
- rally-install-ubuntu-bionic
|
||||
- rally-install-centos-7
|
||||
- rally-install-centos-8
|
||||
- rally-tox-self
|
||||
- rally-docker-build
|
||||
gate:
|
||||
jobs:
|
||||
- rally-tox-docs
|
||||
@ -59,8 +68,10 @@
|
||||
- rally-tox-py37
|
||||
- rally-tox-cover
|
||||
- rally-tox-functional
|
||||
- rally-tox-self
|
||||
- rally-database-migration
|
||||
- rally-install-ubuntu-xenial
|
||||
- rally-install-ubuntu-bionic
|
||||
- rally-install-centos-7
|
||||
- rally-tox-self
|
||||
- rally-install-centos-8
|
||||
- rally-docker-build
|
||||
|
@ -31,6 +31,9 @@ Changed
|
||||
* *rally plugin show* command returns not-zero exit code in case of not found
|
||||
or multiple match errors
|
||||
|
||||
* `docker image <https://hub.docker.com/r/xrally/xrally>`_ is switched to use
|
||||
python3.6.
|
||||
|
||||
Fixed
|
||||
~~~~~
|
||||
|
||||
|
@ -15,7 +15,7 @@ WORKDIR /rally/source
|
||||
|
||||
RUN pip3 install . --constraint upper-constraints.txt && \
|
||||
pip3 install pymysql && \
|
||||
pip3 install psycopg2 && \
|
||||
pip3 install psycopg2-binary && \
|
||||
mkdir -p /etc/rally && \
|
||||
echo "[database]" > /etc/rally/rally.conf && \
|
||||
echo "connection=sqlite:////home/rally/.rally/rally.db" >> /etc/rally/rally.conf
|
||||
|
18
tests/ci/playbooks/rally-docker-build/pre.yaml
Normal file
18
tests/ci/playbooks/rally-docker-build/pre.yaml
Normal file
@ -0,0 +1,18 @@
|
||||
- hosts: all
|
||||
name: Execute post checkout hook as like hub.docker.com does
|
||||
tasks:
|
||||
- name: Install docker
|
||||
shell:
|
||||
cmd: |
|
||||
sudo apt install --yes apt-transport-https ca-certificates curl software-properties-common
|
||||
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
|
||||
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable"
|
||||
sudo apt update --yes
|
||||
apt-cache policy docker-ce
|
||||
sudo apt install --yes docker-ce
|
||||
sudo systemctl status docker
|
||||
executable: /bin/bash
|
||||
|
||||
- name: Execute post_checkout hook
|
||||
shell:
|
||||
cmd: "sudo /bin/bash {{ zuul.project.src_dir }}/etc/docker/hooks/post_checkout"
|
7
tests/ci/playbooks/rally-docker-build/run.yaml
Normal file
7
tests/ci/playbooks/rally-docker-build/run.yaml
Normal file
@ -0,0 +1,7 @@
|
||||
- hosts: all
|
||||
name: a run script for rally-install-* jobs
|
||||
tasks:
|
||||
- name: Build docker image for Rally
|
||||
shell:
|
||||
cmd: "sudo docker build -t rally:dev ./"
|
||||
chdir: '{{ zuul.project.src_dir }}/etc/docker'
|
Loading…
x
Reference in New Issue
Block a user