@@ -90,27 +90,31 @@ image_build: &image_build
90
90
paths : images
91
91
92
92
image_boot : &image_boot
93
- machine :
94
- enabled : true
95
- image : circleci/classic:latest # default Ubuntu 14.04 image
93
+ # machine:
94
+ # enabled: true
95
+ # image: circleci/classic:latest # default Ubuntu 14.04 image
96
+ macos :
97
+ xcode : " 9.0"
96
98
steps :
97
99
- run :
98
100
name : Configure $PATH
99
- command : echo 'export PATH=~/workspace/bin-Linux:$PATH' >> $BASH_ENV
101
+ # command: echo 'export PATH=~/workspace/bin-Linux:$PATH' >> $BASH_ENV
102
+ command : echo 'export PATH=~/workspace/bin-Darwin:$PATH' >> $BASH_ENV
100
103
- run :
101
104
name : Install packages
102
105
# ca-certificates are needed for attach_workspace (and git over https)
103
- command : sudo apt-get update && sudo apt-get install -y ca-certificates curl expect git make openssh-client procps qemu xorriso
106
+ # command: sudo apt-get update && sudo apt-get install -y ca-certificates curl expect git make openssh-client procps qemu xorriso
107
+ brew install xorriso
104
108
- attach_workspace :
105
109
at : ~/workspace
106
110
- checkout
107
111
- run :
108
112
name : Test boot
109
113
command : |
110
114
set -x
111
- free
112
- cat /proc/meminfo
113
- ls -lrt /dev/kvm* || true
115
+ # free
116
+ # cat /proc/meminfo
117
+ # ls -lrt /dev/kvm* || true
114
118
# Add ssh keys to the image.
115
119
# TODO could this be integrated into linuxkit/mkimage-iso-*
116
120
# such that all those options do not need to be repeated
@@ -152,7 +156,7 @@ jobs:
152
156
steps :
153
157
- run :
154
158
name : Create workspace
155
- command : mkdir -p /workspace/bin-Linux
159
+ command : mkdir -p /workspace/bin-Linux /workspace/bin-Darwin
156
160
- run :
157
161
name : Install packages
158
162
command : apt-get update && apt-get install -y ca-certificates curl openssh-client
@@ -162,19 +166,26 @@ jobs:
162
166
curl -fsSL -o /tmp/docker.tgz https://download.docker.com/linux/static/stable/x86_64/docker-17.06.2-ce.tgz
163
167
tar xfO /tmp/docker.tgz docker/docker > /workspace/bin-Linux/docker
164
168
curl -fsSL -o /workspace/bin-Linux/linuxkit https://362-46932243-gh.circle-artifacts.com/0/linuxkit-linux-amd64
169
+ curl -fsSL -o /workspace/bin-Darwin/linuxkithttps://362-46932243-gh.circle-artifacts.com/0/linuxkit-darwin-amd64
165
170
curl -fsSL -o /workspace/bin-Linux/manifest-tool https://github.com/estesp/manifest-tool/releases/download/v0.7.0/manifest-tool-linux-amd64
166
171
curl -fsSL -o /workspace/bin-Linux/notary https://github.com/theupdateframework/notary/releases/download/v0.4.3/notary-Linux-amd64
167
172
173
+ curl -fsSL -o /workspace/bin-Darwin/hyperkit https://452-55985023-gh.circle-artifacts.com/0/Users/distiller/hyperkit/build/hyperkit
174
+ curl -fsSL https://1066-58395340-gh.circle-artifacts.com/0/Users/distiller/vpnkit/vpnkit.tgz | tar zxfO - Contents/Resources/bin/vpnkit > /workspace/bin-Darwin/vpnkit
175
+
168
176
echo "Downloaded:"
169
- sha256sum /workspace/bin-Linux/*
177
+ sha256sum /workspace/bin-Linux/* /workspace/bin-Darwin/*
170
178
echo
171
179
172
180
echo "Checking checksums"
173
181
sha256sum -c <<EOF
174
182
6af40e74b2dbb2927882acab52d50bfc72551779d541957fc70b6adc325ee5ef /workspace/bin-Linux/docker
175
183
b61188823c2491e9a1c16d275e41c68d5736f3f10577d01cb358261ff71bbad6 /workspace/bin-Linux/linuxkit
184
+ 908fae1c48122a245ddef8821a530a4c504f267ff1718b0c3688ef6f7aa3b65f /workspace/bin-Darwin/linuxkit
176
185
e4ca2ef0015a4be8597d31d9e3e70d88da33924ae72b0999e9f3b79304d4710d /workspace/bin-Linux/manifest-tool
177
186
06cd02c4c2e7a3b1ad9899b03b3d4dde5392d964c675247d32f604a24661f839 /workspace/bin-Linux/notary
187
+ 298f650c9dd3ab8907b23f56cb21e33b794a5a8be163bbbcc7cf959112888b80 /workspace/bin-Darwin/hyperkit
188
+ 72e34d9c0bc0a73bfb71f2b572849db5829ca41c3995245145f2e57c8ab40bd2 /workspace/bin-Darwin/vpnkit
178
189
EOF
179
190
- run :
180
191
name : Generate SSH Keys
@@ -186,8 +197,10 @@ jobs:
186
197
command : |
187
198
chmod +x /workspace/bin-Linux/docker # docker version deferred until daemon configured in relevant jobs
188
199
chmod +x /workspace/bin-Linux/linuxkit && /workspace/bin-Linux/linuxkit version
200
+ chmod +x /workspace/bin-Darwin/linuxkit && /workspace/bin-Darwin/linuxkit version
189
201
chmod +x /workspace/bin-Linux/manifest-tool && /workspace/bin-Linux/manifest-tool --version
190
202
chmod +x /workspace/bin-Linux/notary && /workspace/bin-Linux/notary version
203
+ chmod +x /workspace/bin-Darwin/vpnkit && /workspace/bin-Darwin/vpnkit version
191
204
- persist_to_workspace :
192
205
root : /workspace
193
206
paths : bin
0 commit comments