@@ -90,27 +90,28 @@ 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
+ command : 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
114
115
# Add ssh keys to the image.
115
116
# TODO could this be integrated into linuxkit/mkimage-iso-*
116
117
# such that all those options do not need to be repeated
@@ -152,7 +153,7 @@ jobs:
152
153
steps :
153
154
- run :
154
155
name : Create workspace
155
- command : mkdir -p /workspace/bin-Linux
156
+ command : mkdir -p /workspace/bin-Linux /workspace/bin-Darwin
156
157
- run :
157
158
name : Install packages
158
159
command : apt-get update && apt-get install -y ca-certificates curl openssh-client
@@ -162,19 +163,26 @@ jobs:
162
163
curl -fsSL -o /tmp/docker.tgz https://download.docker.com/linux/static/stable/x86_64/docker-17.06.2-ce.tgz
163
164
tar xfO /tmp/docker.tgz docker/docker > /workspace/bin-Linux/docker
164
165
curl -fsSL -o /workspace/bin-Linux/linuxkit https://362-46932243-gh.circle-artifacts.com/0/linuxkit-linux-amd64
166
+ curl -fsSL -o /workspace/bin-Darwin/linuxkithttps://362-46932243-gh.circle-artifacts.com/0/linuxkit-darwin-amd64
165
167
curl -fsSL -o /workspace/bin-Linux/manifest-tool https://github.com/estesp/manifest-tool/releases/download/v0.7.0/manifest-tool-linux-amd64
166
168
curl -fsSL -o /workspace/bin-Linux/notary https://github.com/theupdateframework/notary/releases/download/v0.4.3/notary-Linux-amd64
167
169
170
+ curl -fsSL -o /workspace/bin-Darwin/hyperkit https://452-55985023-gh.circle-artifacts.com/0/Users/distiller/hyperkit/build/hyperkit
171
+ 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
172
+
168
173
echo "Downloaded:"
169
- sha256sum /workspace/bin-Linux/*
174
+ sha256sum /workspace/bin-Linux/* /workspace/bin-Darwin/*
170
175
echo
171
176
172
177
echo "Checking checksums"
173
178
sha256sum -c <<EOF
174
179
6af40e74b2dbb2927882acab52d50bfc72551779d541957fc70b6adc325ee5ef /workspace/bin-Linux/docker
175
180
b61188823c2491e9a1c16d275e41c68d5736f3f10577d01cb358261ff71bbad6 /workspace/bin-Linux/linuxkit
181
+ 908fae1c48122a245ddef8821a530a4c504f267ff1718b0c3688ef6f7aa3b65f /workspace/bin-Darwin/linuxkit
176
182
e4ca2ef0015a4be8597d31d9e3e70d88da33924ae72b0999e9f3b79304d4710d /workspace/bin-Linux/manifest-tool
177
183
06cd02c4c2e7a3b1ad9899b03b3d4dde5392d964c675247d32f604a24661f839 /workspace/bin-Linux/notary
184
+ 298f650c9dd3ab8907b23f56cb21e33b794a5a8be163bbbcc7cf959112888b80 /workspace/bin-Darwin/hyperkit
185
+ 72e34d9c0bc0a73bfb71f2b572849db5829ca41c3995245145f2e57c8ab40bd2 /workspace/bin-Darwin/vpnkit
178
186
EOF
179
187
- run :
180
188
name : Generate SSH Keys
@@ -186,8 +194,10 @@ jobs:
186
194
command : |
187
195
chmod +x /workspace/bin-Linux/docker # docker version deferred until daemon configured in relevant jobs
188
196
chmod +x /workspace/bin-Linux/linuxkit && /workspace/bin-Linux/linuxkit version
197
+ chmod +x /workspace/bin-Darwin/linuxkit && /workspace/bin-Darwin/linuxkit version
189
198
chmod +x /workspace/bin-Linux/manifest-tool && /workspace/bin-Linux/manifest-tool --version
190
199
chmod +x /workspace/bin-Linux/notary && /workspace/bin-Linux/notary version
200
+ chmod +x /workspace/bin-Darwin/vpnkit && /workspace/bin-Darwin/vpnkit version
191
201
- persist_to_workspace :
192
202
root : /workspace
193
203
paths : bin
0 commit comments