@@ -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,29 +153,38 @@ 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
159
160
- run :
160
161
name : Fetch binaries
161
162
command : |
163
+ set -x
162
164
curl -fsSL -o /tmp/docker.tgz https://download.docker.com/linux/static/stable/x86_64/docker-17.06.2-ce.tgz
163
165
tar xfO /tmp/docker.tgz docker/docker > /workspace/bin-Linux/docker
164
166
curl -fsSL -o /workspace/bin-Linux/linuxkit https://362-46932243-gh.circle-artifacts.com/0/linuxkit-linux-amd64
167
+ curl -fsSL -o /workspace/bin-Darwin/linuxkit https://362-46932243-gh.circle-artifacts.com/0/linuxkit-darwin-amd64
165
168
curl -fsSL -o /workspace/bin-Linux/manifest-tool https://github.com/estesp/manifest-tool/releases/download/v0.7.0/manifest-tool-linux-amd64
166
169
curl -fsSL -o /workspace/bin-Linux/notary https://github.com/theupdateframework/notary/releases/download/v0.4.3/notary-Linux-amd64
167
170
171
+ curl -fsSL -o /workspace/bin-Darwin/hyperkit https://452-55985023-gh.circle-artifacts.com/0/Users/distiller/hyperkit/build/hyperkit
172
+ curl -fsSL -o /tmp/vpnkit.tgz https://1066-58395340-gh.circle-artifacts.com/0/Users/distiller/vpnkit/vpnkit.tgz
173
+ tar xfO /tmp/vpnkit.tgz Contents/Resources/bin/vpnkit > /workspace/bin-Darwin/vpnkit
174
+
168
175
echo "Downloaded:"
169
- sha256sum /workspace/bin-Linux/*
176
+ sha256sum /workspace/bin-Linux/* /workspace/bin-Darwin/*
170
177
echo
171
178
172
179
echo "Checking checksums"
173
180
sha256sum -c <<EOF
174
181
6af40e74b2dbb2927882acab52d50bfc72551779d541957fc70b6adc325ee5ef /workspace/bin-Linux/docker
175
182
b61188823c2491e9a1c16d275e41c68d5736f3f10577d01cb358261ff71bbad6 /workspace/bin-Linux/linuxkit
183
+ 908fae1c48122a245ddef8821a530a4c504f267ff1718b0c3688ef6f7aa3b65f /workspace/bin-Darwin/linuxkit
176
184
e4ca2ef0015a4be8597d31d9e3e70d88da33924ae72b0999e9f3b79304d4710d /workspace/bin-Linux/manifest-tool
177
185
06cd02c4c2e7a3b1ad9899b03b3d4dde5392d964c675247d32f604a24661f839 /workspace/bin-Linux/notary
186
+ 298f650c9dd3ab8907b23f56cb21e33b794a5a8be163bbbcc7cf959112888b80 /workspace/bin-Darwin/hyperkit
187
+ 72e34d9c0bc0a73bfb71f2b572849db5829ca41c3995245145f2e57c8ab40bd2 /workspace/bin-Darwin/vpnkit
178
188
EOF
179
189
- run :
180
190
name : Generate SSH Keys
@@ -186,8 +196,10 @@ jobs:
186
196
command : |
187
197
chmod +x /workspace/bin-Linux/docker # docker version deferred until daemon configured in relevant jobs
188
198
chmod +x /workspace/bin-Linux/linuxkit && /workspace/bin-Linux/linuxkit version
199
+ chmod +x /workspace/bin-Darwin/linuxkit && /workspace/bin-Darwin/linuxkit version
189
200
chmod +x /workspace/bin-Linux/manifest-tool && /workspace/bin-Linux/manifest-tool --version
190
201
chmod +x /workspace/bin-Linux/notary && /workspace/bin-Linux/notary version
202
+ chmod +x /workspace/bin-Darwin/vpnkit && /workspace/bin-Darwin/vpnkit version
191
203
- persist_to_workspace :
192
204
root : /workspace
193
205
paths : bin
0 commit comments