Improve kata-runsh job

Add system package dependencies (build-essential, golang-1.10) and
set GOPATH to $HOME for the zuul user which should magically work with
the zuul git repo pathing. Additionally use shell with set -x.

We switch to xenial so that we can use upstream docker-ce packages which
the kata ci seems to expect.

Depends-On: Ief0f20c2f1b42a5c23ed05f7185c58700f65b06e
Change-Id: Ibb5cee5ba90662e53c39dcf686a52bcafe81c933
This commit is contained in:
Clark Boylan 2018-06-08 08:20:49 -07:00
parent d729b17f1f
commit 279dadd282
3 changed files with 34 additions and 4 deletions

View File

@ -1,6 +1,30 @@
- hosts: all
tasks:
- name: Install build-essential
package:
name: build-essential
state: present
become: yes
- name: Install golang
package:
name: golang-1.10
state: present
become: yes
- name: Make sure sources.list.d exists
file:
path: /etc/apt/sources.list.d
owner: root
group: root
mode: 0755
state: directory
become: yes
- name: Run kata setup.sh
args:
executable: /bin/bash
chdir: "{{ zuul.project.src_dir }}"
command: ".ci/setup.sh"
shell: |
set -x
export PATH=$PATH:/usr/lib/go-1.10/bin
export CI=true
export GOPATH=$HOME
.ci/setup.sh

View File

@ -2,5 +2,11 @@
tasks:
- name: Run kata run.sh
args:
executable: /bin/bash
chdir: "{{ zuul.project.src_dir }}"
command: ".ci/run.sh"
shell: |
set -x
export PATH=$PATH:/usr/lib/go-1.10/bin
export CI=true
export GOPATH=$HOME
.ci/run.sh

View File

@ -1452,5 +1452,5 @@
timeout: 3600
nodeset:
nodes:
- name: ubuntu-bionic
label: ubuntu-bionic-vexxhost
- name: ubuntu-xenial
label: ubuntu-xenial-vexxhost