-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
218 lines (200 loc) · 7.23 KB
/
.travis.yml
File metadata and controls
218 lines (200 loc) · 7.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
---
sudo: required
dist: bionic
env:
global:
# auto vagrant installation
notifications:
slack:
on_failure: always
fleet_script_usernetes_containerd_tasks : &fleet_script_usernetes_containerd_tasks
script:
- USERNETES_VERSION=20200611.1
- wget https://github.com/rootless-containers/usernetes/releases/download/v$USERNETES_VERSION/usernetes-x86_64.tbz
- tar xjvf usernetes-x86_64.tbz && cd usernetes
fleet_script_usernetes_crio_tasks : &fleet_script_usernetes_crio_tasks
script:
- USERNETES_VERSION=20200611.1
- wget https://github.com/rootless-containers/usernetes/releases/download/v$USERNETES_VERSION/usernetes-x86_64.tbz
- tar xjvf usernetes-x86_64.tbz && cd usernetes
fleet_script_usernetesindocker_tasks : &fleet_script_usernetesindocker_tasks
script:
- USERNETES_VERSION=20200611.1
- wget https://github.com/rootless-containers/usernetes/releases/download/v$USERNETES_VERSION/usernetes-x86_64.tbz
- tar xjvf usernetes-x86_64.tbz && cd usernetes
#All-in-one Docker image is available as rootlesscontainers/usernetes on Docker Hub.
- docker build -t rootlesscontainers/usernetes .
#Single node The image is based on Fedora
- sudo docker run -td --name usernetes-node -p 127.0.0.1:6443:6443 --privileged rootlesscontainers/usernetes --cri=containerd
fleet_script_usernetesindocker_dockercompose_tasks : &fleet_script_usernetesindocker_dockercompose_tasks
script:
- USERNETES_VERSION=20200611.1
- wget https://github.com/rootless-containers/usernetes/releases/download/v$USERNETES_VERSION/usernetes-x86_64.tbz
- tar xjvf usernetes-x86_64.tbz && cd usernetes
#All-in-one Docker image is available as rootlesscontainers/usernetes on Docker Hub.
- docker build -t rootlesscontainers/usernetes .
#Single node The image is based on Fedora
- make up
- export KUBECONFIG=$HOME/.config/usernetes/docker-compose.kubeconfig
- sudo kubectl apply -f manifests/*.yaml
- kubectl get nodes -o wide
fleet_script_rootless_tasks : &fleet_script_rootless_tasks
script:
- git clone https://github.com/rootless-containers/rootlesskit.git
- cd rootlesskit && ls -lai
# - make
fleet_script_fakeroot_tasks : &fleet_script_fakeroot_tasks
script:
- sudo apt-get install -qqy fakeroot
fleet_script_tasks : &fleet_script_tasks
script:
- python --version
fleet_install_tasks : &fleet_install_tasks
install:
- pip install -r requirements.txt
matrix:
fast_finish: true
include:
# https://github.com/rootless-containers/rootlesskit#setup
- name: "rootless Python 3.7 on bionic amd64" #OK
dist: bionic
addons:
snaps:
- name: minikube
confinement: strict
channel: stable
language: python
python: 3.7
before_install:
- pip3 install virtualenv
- virtualenv -p $(which python3) ~venvpy3
- source ~venvpy3/bin/activate
<<: *fleet_install_tasks
<<: *fleet_script_tasks
<<: *fleet_script_rootless_tasks
after_success:
- deactivate
# https://wiki.debian.org/FakeRoot
# https://sylabs.io/guides/3.4/user-guide/fakeroot.html
- name: "fakeroot Python 3.7 on bionic amd64" #OK
dist: bionic
addons:
snaps:
- name: minikube
confinement: strict
channel: stable
language: python
python: 3.7
before_install:
- pip3 install virtualenv
- virtualenv -p $(which python3) ~venvpy3
- source ~venvpy3/bin/activate
<<: *fleet_install_tasks
<<: *fleet_script_tasks
<<: *fleet_script_fakeroot_tasks
after_success:
- deactivate
# https://github.com/rootless-containers/usernetes#quick-start
- name: "usernetes container runtimes(-cri=containerd) Python 3.7 on bionic amd64" #OK
dist: bionic
addons:
snaps:
- name: kubectl
confinement: classic
channel: latest/stable
language: python
python: 3.7
before_install:
- pip3 install virtualenv
- virtualenv -p $(which python3) ~venvpy3
- source ~venvpy3/bin/activate
<<: *fleet_install_tasks
<<: *fleet_script_tasks
<<: *fleet_script_usernetes_containerd_tasks
after_success:
- deactivate
# https://github.com/rootless-containers/usernetes#quick-start
- name: "usernetes container runtimes(cri=crio) Python 3.7 on bionic amd64" #OK
dist: bionic
addons:
snaps:
- name: kubectl
confinement: classic
channel: latest/stable
language: python
python: 3.7
before_install:
- pip3 install virtualenv
- virtualenv -p $(which python3) ~venvpy3
- source ~venvpy3/bin/activate
<<: *fleet_install_tasks
<<: *fleet_script_tasks
<<: *fleet_script_usernetes_crio_tasks
after_success:
- deactivate
# https://github.com/rootless-containers/usernetes#quick-start
- name: "Run Usernetes in Docker - single node Python 3.7 on bionic amd64" #OK
dist: bionic
addons:
snaps:
- name: minikube
confinement: strict
channel: stable
language: python
python: 3.7
before_install:
- pip3 install virtualenv
- virtualenv -p $(which python3) ~venvpy3
- source ~venvpy3/bin/activate
<<: *fleet_install_tasks
<<: *fleet_script_tasks
<<: *fleet_script_usernetesindocker_tasks
after_success:
- deactivate
# https://github.com/rootless-containers/usernetes#quick-start
- name: "Run Usernetes in Docker - Multi node (Docker Compose) Python 3.7 on bionic amd64" #OK
dist: bionic
addons:
snaps:
- name: kubectl
confinement: classic
channel: stable
language: python
python: 3.7
before_install:
- pip3 install virtualenv
- virtualenv -p $(which python3) ~venvpy3
- source ~venvpy3/bin/activate
<<: *fleet_install_tasks
<<: *fleet_script_tasks
<<: *fleet_script_usernetesindocker_dockercompose_tasks
after_success:
- deactivate
# # =============================================macOS=============================================
# https://github.com/moby/buildkit
- name: "buildkit Python 2.7.17 on macOS 10.15.4 osx xcode11.5"
os: osx
osx_image: xcode11.5
language: shell
addons:
homebrew:
packages:
- buildkit
# casks: # Installing Casks
# - podman
update: true
before_install:
- pip install virtualenv
- virtualenv -p $(which python2) ~venvpy2
- source ~venvpy2/bin/activate
<<: *fleet_install_tasks
<<: *fleet_script_tasks
script:
- brew info buildkit
# - brew doctor #Check system for potential problems
- brew update #Update brew and cask
- brew cask upgrade
after_success:
- brew uninstall kubectl buildkit
- brew cleanup buildkit
- deactivate