We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f314b62 commit e7e08b1Copy full SHA for e7e08b1
1 file changed
docker/build.sh
@@ -0,0 +1,26 @@
1
+#!/bin/bash
2
+set -e
3
+
4
+if [ ! -d docker ]; then
5
+ git clone https://github.com/docker/docker
6
+fi
7
8
+if [ ! -d binary ]; then
9
+ mkdir binary
10
11
12
+BINDIR=$(pwd)
13
+image=docker
14
+pushd docker
15
+if [ $1 != "" ]; then
16
+ git fetch origin pull/$1/head:pr$1
17
+ git checkout pr$1
18
+ image=dockerpr$1
19
20
+docker rm -f $image
21
+docker build -t $image -f Dockerfile.windows .
22
+docker run --name $image $image 'hack\make.ps1' -Binary
23
+docker cp $image:C:/go/src/github.com/docker/docker/bundles/docker.exe ../binary/docker.exe
24
+docker cp $image:C:/go/src/github.com/docker/docker/bundles/dockerd.exe ../binary/dockerd.exe
25
+popd
26
+ls -l binary
0 commit comments