Skip to content

Commit

Permalink
Apply role "install-docker" to all of jobs
Browse files Browse the repository at this point in the history
Make all of OpenLab jobs to use new role "install-docker" to
install and config docker-ce, update tags of related jobs
to specific docker version and remove all of "latest-release" define.

Closes: theopenlab/openlab#308
  • Loading branch information
kiwik committed Jun 28, 2019
1 parent 5d90f8f commit 06d39c2
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 33 deletions.
3 changes: 1 addition & 2 deletions playbooks/helm-integration-test-kubeadm-k8s/run.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
- hosts: all
become: yes
roles:
- role: create-single-k8s-cluster-with-kubeadm
docker_vcgroupdriver: "cgroupfs"
- create-single-k8s-cluster-with-kubeadm
tasks:
- name: Run integration tests of Helm deployed on k8s cluster
shell:
Expand Down
6 changes: 2 additions & 4 deletions playbooks/kind-integration-test-arm64/run.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@
- role: config-golang
go_version: 1.12.1
arch: arm64
- role: install-docker-ce
arch: arm64
#- role: andrewrothstein.bazel
# bazel_ver: '0.23.1'
- role: install-docker
docker_version: 18.09

tasks:
- name: git required repositories
Expand Down
5 changes: 2 additions & 3 deletions playbooks/spark-integration-test-minikube-k8s/run.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
- hosts: all
become: yes
roles:
- role: install-docker-ce
docker_ce_version: 18.06
docker_vcgroupdriver: "cgroupfs"
- role: install-docker
docker_version: 18.06
- create-single-k8s-cluster-with-minikube
tasks:
- name: Run integration tests of Spark with k8s cluster manager
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
- name: Install Runtime Docker CE
include_role:
name: install-docker-ce
name: install-docker
vars:
docker_version: '18.09'

- name: Install packages repository
shell:
Expand Down
4 changes: 3 additions & 1 deletion roles/create-single-k8s-cluster-with-kubeadm/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
- name: Install Runtime Docker CE
include_role:
name: install-docker-ce
name: install-docker
vars:
docker_version: '18.06'

- name: Create a single k8s master cluster by kubeadm
shell:
Expand Down
23 changes: 7 additions & 16 deletions roles/install-k8s/tasks/main.yaml
Original file line number Diff line number Diff line change
@@ -1,24 +1,15 @@
- name: Disable iptables, install docker, etcd {{ etcd_version }} and kubernetes {{ k8s_version }}
- name: Install Runtime Docker CE
include_role:
name: install-docker
vars:
docker_version: '18.09'

- name: Install etcd {{ etcd_version }} and kubernetes {{ k8s_version }}
shell:
cmd: |
set -x
set -e
# Stopping firewall and allow all traffic
iptables -F
iptables -X
iptables -t nat -F
iptables -t nat -X
iptables -t mangle -F
iptables -t mangle -X
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
# Install docker
apt update -y
apt install -y docker.io
# Install etcd
wget https://github.com/coreos/etcd/releases/download/{{ etcd_version }}/etcd-{{ etcd_version }}-linux-amd64.tar.gz
tar -zxf etcd-{{ etcd_version }}-linux-amd64.tar.gz
Expand Down
12 changes: 6 additions & 6 deletions zuul.d/jobs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@
- Project:kubernetes/cloud-provider-openstack
- Application:cloud-provider-openstack@release-1.12
- Application:Kubernetes@release-1.12
- Application:Docker.io@v18.09.2
- Application:Docker.io@v18.09
- Application:Etcd@v3.3.10
- Application:Go@1.10.8
- OS:ubuntu-xenial
Expand All @@ -626,7 +626,7 @@
- Project:kubernetes/cloud-provider-openstack
- Application:cloud-provider-openstack@release-1.13
- Application:Kubernetes@release-1.13
- Application:Docker.io@v18.09.2
- Application:Docker.io@v18.09
- Application:Etcd@v3.3.10
- Application:Go@1.12
- OS:ubuntu-xenial
Expand All @@ -646,7 +646,7 @@
- Project:kubernetes/cloud-provider-openstack
- Application:cloud-provider-openstack@release-1.14
- Application:Kubernetes@release-1.14
- Application:Docker.io@v18.09.2
- Application:Docker.io@v18.09
- Application:Etcd@v3.3.10
- Application:Go@1.12.1
- OS:ubuntu-xenial
Expand Down Expand Up @@ -1954,7 +1954,7 @@
- Category:BigData
- Project:apache/spark
- Application:Spark@master
- Application:Docker@latest-release
- Application:Docker@18.06
- Application:Kubernetes@v1.14.0
- OS:ubuntu-xenial
- Arch:x86_64
Expand Down Expand Up @@ -2002,7 +2002,7 @@
- Application:Kind@master
- Application:Go@1.12.1
- Application:Kubernetes@master
- Application:Docker@latest-release
- Application:Docker@18.09
- OS:ubuntu-xenial
- Arch:aarch64
- BuildType:Integration test
Expand All @@ -2021,7 +2021,7 @@
- Project:helm/charts
- Application:Helm@v2.12.2
- Application:Kubernetes@v1.14.0
- Application:Docker@latest-release
- Application:Docker@18.06
- OS:ubuntu-xenial
- Arch:x86_64
- BuildType:Integration test
Expand Down

0 comments on commit 06d39c2

Please sign in to comment.