You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
86967b2 Add option to use docker for gitian-build.sh (Andrew Chow)
Pull request description:
Updates gitian-build.sh script for the docker virtualization method recently added to gitian-builder.
Second commit depends on devrandom/gitian-builder#185
Tree-SHA512: 0fa50b6c1be35a7a39f4a82816369637d3d0082922ac9876b80ae8156c795dec0ff34ad384b5348777042df8ddb6a72bbaeddd7002ef80557b10e2acf46632aa
--setup Set up the Gitian building environment. Uses LXC. If you want to use KVM, use the --kvm option. Only works on Debian-based systems (Ubuntu, Debian)
53
55
--detach-sign Create the assert file for detached signing. Will not commit anything.
54
56
--no-commit Do not commit anything to git
@@ -157,6 +159,16 @@ while :; do
157
159
--kvm)
158
160
lxc=false
159
161
;;
162
+
# docker
163
+
--docker)
164
+
if [[ $lxc=false ]]
165
+
then
166
+
echo'Error: cannot have both kvm and docker'
167
+
exit 1
168
+
fi
169
+
lxc=false
170
+
docker=true
171
+
;;
160
172
# Detach sign
161
173
--detach-sign)
162
174
signProg="true"
@@ -182,6 +194,12 @@ then
182
194
export USE_LXC=1
183
195
fi
184
196
197
+
# Setup docker
198
+
if [[ $docker=true ]]
199
+
then
200
+
export USE_DOCKER=1
201
+
fi
202
+
185
203
# Check for OSX SDK
186
204
if [[ !-e"gitian-builder/inputs/MacOSX10.11.sdk.tar.gz"&&$osx==true ]]
0 commit comments