Skip to content

Commit e7e08b1

Browse files
committed
Build locally
1 parent f314b62 commit e7e08b1

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

docker/build.sh

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
fi
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+
fi
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

Comments
 (0)