Skip to content

Commit 8f8d0ae

Browse files
committed
ansible: upgrades for docker hosts
1 parent dc94f7e commit 8f8d0ae

File tree

10 files changed

+15
-95
lines changed

10 files changed

+15
-95
lines changed

ansible/inventory.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ hosts:
9494
ubuntu1404-x86-1: {ip: 159.203.115.220}
9595
ubuntu1604-x86-1: {ip: 159.203.77.233}
9696
ubuntu1604-x86-2: {ip: 104.131.191.135}
97-
ubuntu1604_docker-x64-1: {ip: 128.199.198.56}
98-
ubuntu1604_docker-x64-2: {ip: 138.68.241.115}
97+
ubuntu1804_docker-x64-1: {ip: 134.209.55.216}
98+
ubuntu1804_docker-x64-2: {ip: 159.89.183.200}
9999
ubuntu1804-x64-1: {ip: 178.128.181.213}
100100

101101
- joyent:
@@ -113,7 +113,7 @@ hosts:
113113
smartos17-x64-2: {ip: 72.2.115.11}
114114
smartos18-x64-1: {ip: 72.2.115.192}
115115
smartos18-x64-2: {ip: 72.2.119.47}
116-
ubuntu1604_docker-x64-1: {ip: 37.153.110.162, user: ubuntu}
116+
ubuntu1804_docker-x64-1: {ip: 165.225.151.201, user: ubuntu}
117117
ubuntu1604_arm_cross-x64-1: {ip: 165.225.136.6, user: ubuntu}
118118
ubuntu1804-x64-1: {ip: 37.153.109.142, user: ubuntu}
119119

@@ -212,9 +212,9 @@ hosts:
212212
osx1010-x64-1: {ip: 192.168.2.210, user: iojs}
213213

214214
- scaleway:
215-
ubuntu1604-armv7l-1: {ip: 212.47.233.202}
216-
ubuntu1604-armv7l-2: {ip: 51.15.218.201}
217-
ubuntu1604-armv7l-3: {ip: 163.172.186.154}
215+
ubuntu1804-armv7l-1: {ip: 212.47.246.3}
216+
ubuntu1804-armv7l-2: {ip: 212.47.233.202}
217+
ubuntu1804-armv7l-3: {ip: 51.15.218.201}
218218

219219
- softlayer:
220220
centos5-x64-1: {ip: 50.23.85.252}
@@ -226,7 +226,7 @@ hosts:
226226
debian9-x64-1: {ip: 169.60.150.91}
227227
ubuntu1404-x64-1: {ip: 50.97.245.5}
228228
ubuntu1404-x86-1: {ip: 50.97.245.9}
229-
ubuntu1604_docker-x64-1: {ip: 169.62.77.230}
229+
ubuntu1804_docker-x64-1: {ip: 52.117.26.9}
230230
ubuntu1604-x64-1: {ip: 169.60.150.88, alias: jenkins-workspace-3}
231231

232232
- packetnet:

ansible/plugins/filter/filters.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,6 @@ def match_key(value, dictionary, raise_error=True, feedback_name='os'):
4343
return False
4444

4545

46-
def latest_version(versions):
47-
versions.sort(key=lambda s: map(int, s.split('.')))
48-
return versions[-1]
49-
50-
5146
def starts_with(value, query):
5247
return value.startswith(query)
5348

@@ -65,6 +60,5 @@ def filters(self):
6560
return {
6661
'match_key': match_key,
6762
'startswith': starts_with,
68-
'stripversion': stripversion,
69-
'latest_version': latest_version
63+
'stripversion': stripversion
7064
}

ansible/roles/baselayout/tasks/ccache.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
# This depends on ansible being able to run curl locally, YMMV, if it doesn't
99
# work, try changing the local_action to a remote one:
1010
# raw: curl -sL https://www.samba.org/ftp/ccache/
11-
local_action: command shell curl -sL https://www.samba.org/ftp/ccache/
11+
local_action: shell curl -sL https://www.samba.org/ftp/ccache/ | sed -n -e 's/.*"ccache-\([0-9.]*\).tar.gz".*/\1/p' | tail -1
1212
register: ccache_html_content
1313

1414
- name: "ccache : extract ccache latest version"
1515
set_fact:
16-
ccache_latest: "{{ ccache_html_content.stdout | regex_findall('ccache-[0-9]+.[0-9]+(?:.[0-9]+)*.tar.gz') | map('regex_replace', 'ccache-') | map('regex_replace', '.tar.gz') | list | latest_version }}"
16+
ccache_latest: "{{ ccache_html_content.stdout }}"
1717

1818
- name: "ccache : download and extract"
1919
unarchive:

ansible/roles/docker/templates/alpine38.Dockerfile.j2 renamed to ansible/roles/docker/templates/alpine310.Dockerfile.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM alpine:3.8
1+
FROM alpine:3.10
22

33
ENV LC_ALL C
44
ENV USER {{ server_user }}

ansible/roles/jenkins-worker/tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
include: "{{ role_path }}/tasks/partials/raspberry-pi.yml"
108108

109109
- name: run scaleway armv7 jenkins-worker setup
110-
when: "'scaleway-ubuntu1604-armv7l' in inventory_hostname"
110+
when: "'scaleway-ubuntu1804-armv7l' in inventory_hostname"
111111
include: "{{ role_path }}/tasks/partials/scaleway-armv7.yml"
112112

113113
# @TODO(mhdawson): get tap2junit working on zOS

ansible/roles/jenkins-worker/tasks/partials/docker-host.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
register: server_user_uid
1010

1111
- name: docker | fetch samba ccache HTML page
12-
local_action: shell curl -sL https://www.samba.org/ftp/ccache/
12+
local_action: shell curl -sL https://www.samba.org/ftp/ccache/ | sed -n -e 's/.*"ccache-\([0-9.]*\).tar.gz".*/\1/p' | tail -1
1313
register: ccache_html_content
1414

1515
- name: docker | extract ccache latest version
1616
set_fact:
17-
ccache_latest: "{{ ccache_html_content.stdout | regex_findall('ccache-[0-9]+.[0-9]+(?:.[0-9]+)*.tar.gz') | map('regex_replace', 'ccache-') | map('regex_replace', '.tar.gz') | list | latest_version }}"
17+
ccache_latest: "{{ ccache_html_content.stdout }}"
1818

1919
- name: docker | check if docker exists
2020
shell: which docker
@@ -23,7 +23,7 @@
2323

2424
- name: docker | install docker from docker.com
2525
when: "docker_exists.stdout == ''"
26-
raw: curl -fsSL get.docker.com | sudo bash -
26+
raw: curl -fsSL get.docker.com | bash -
2727

2828
- name: docker | copy docker-exec script
2929
template:

ansible/roles/jenkins-worker/templates/armv7_wheezy.Dockerfile.j2

Lines changed: 0 additions & 71 deletions
This file was deleted.

ansible/roles/jenkins-worker/vars/main.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,6 @@ raspberry_pi: {
119119
{ name: 'jessie', template: 'rpi_jessie.Dockerfile.j2' }
120120
],
121121
armv7l: [
122-
{ name: 'wheezy', template: 'rpi_wheezy.Dockerfile.j2' },
123122
{ name: 'jessie', template: 'rpi_jessie.Dockerfile.j2' },
124123
{ name: 'stretch', template: 'rpi_stretch.Dockerfile.j2' }
125124
],
@@ -132,7 +131,6 @@ raspberry_pi: {
132131

133132
scaleway_armv7: {
134133
containers: [
135-
{ name: 'wheezy', template: 'armv7_wheezy.Dockerfile.j2' },
136134
{ name: 'jessie', template: 'armv7_jessie.Dockerfile.j2' },
137135
{ name: 'stretch', template: 'armv7_stretch.Dockerfile.j2' }
138136
]

jenkins/scripts/VersionSelectorScript.groovy

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ def buildExclusions = [
2929
[ /^ubuntu1604-32/, anyType, gte(10) ], // 32-bit linux for <10 only
3030

3131
// ARM --------------------------------------------------
32-
[ /^debian7-docker-armv7$/, anyType, gte(10) ],
3332
[ /^debian8-docker-armv7$/, releaseType, lt(10) ],
3433
[ /^debian8-docker-armv7$/, anyType, gte(12) ],
3534
[ /^debian9-docker-armv7$/, anyType, lt(10) ],

0 commit comments

Comments
 (0)