|
@@ -45,8 +45,8 @@
|
|
|
#
|
|
|
# 1. Clone the sources from github.com:
|
|
|
#
|
|
|
-# >> git clone https://github.com/docker/docker.git C:\go\src\github.com\docker\docker
|
|
|
-# >> Cloning into 'C:\go\src\github.com\docker\docker'...
|
|
|
+# >> git clone https://github.com/docker/docker.git C:\gopath\src\github.com\docker\docker
|
|
|
+# >> Cloning into 'C:\gopath\src\github.com\docker\docker'...
|
|
|
# >> remote: Counting objects: 186216, done.
|
|
|
# >> remote: Compressing objects: 100% (21/21), done.
|
|
|
# >> remote: Total 186216 (delta 5), reused 0 (delta 0), pack-reused 186195
|
|
@@ -59,7 +59,7 @@
|
|
|
#
|
|
|
# 2. Change directory to the cloned docker sources:
|
|
|
#
|
|
|
-# >> cd C:\go\src\github.com\docker\docker
|
|
|
+# >> cd C:\gopath\src\github.com\docker\docker
|
|
|
#
|
|
|
#
|
|
|
# 3. Build a docker image with the components required to build the docker binaries from source
|
|
@@ -79,8 +79,8 @@
|
|
|
# 5. Copy the binaries out of the container, replacing HostPath with an appropriate destination
|
|
|
# folder on the host system where you want the binaries to be located.
|
|
|
#
|
|
|
-# >> docker cp binaries:C:\go\src\github.com\docker\docker\bundles\docker.exe C:\HostPath\docker.exe
|
|
|
-# >> docker cp binaries:C:\go\src\github.com\docker\docker\bundles\dockerd.exe C:\HostPath\dockerd.exe
|
|
|
+# >> docker cp binaries:C:\gopath\src\github.com\docker\docker\bundles\docker.exe C:\HostPath\docker.exe
|
|
|
+# >> docker cp binaries:C:\gopath\src\github.com\docker\docker\bundles\dockerd.exe C:\HostPath\dockerd.exe
|
|
|
#
|
|
|
#
|
|
|
# 6. (Optional) Remove the interim container holding the built executable binaries:
|
|
@@ -172,7 +172,7 @@ ARG GO_VERSION=1.12.9
|
|
|
# - FROM_DOCKERFILE is used for detection of building within a container.
|
|
|
ENV GO_VERSION=${GO_VERSION} `
|
|
|
GIT_VERSION=2.11.1 `
|
|
|
- GOPATH=C:\go `
|
|
|
+ GOPATH=C:\gopath `
|
|
|
FROM_DOCKERFILE=1
|
|
|
|
|
|
RUN `
|
|
@@ -248,7 +248,7 @@ RUN `
|
|
|
Remove-Item C:\gitsetup.zip; `
|
|
|
`
|
|
|
Write-Host INFO: Creating source directory...; `
|
|
|
- New-Item -ItemType Directory -Path C:\go\src\github.com\docker\docker | Out-Null; `
|
|
|
+ New-Item -ItemType Directory -Path ${GOPATH}\src\github.com\docker\docker | Out-Null; `
|
|
|
`
|
|
|
Write-Host INFO: Configuring git core.autocrlf...; `
|
|
|
C:\git\cmd\git config --global core.autocrlf true; `
|
|
@@ -259,7 +259,7 @@ RUN `
|
|
|
ENTRYPOINT ["powershell.exe"]
|
|
|
|
|
|
# Set the working directory to the location of the sources
|
|
|
-WORKDIR C:\go\src\github.com\docker\docker
|
|
|
+WORKDIR ${GOPATH}\src\github.com\docker\docker
|
|
|
|
|
|
# Copy the sources into the container
|
|
|
COPY . .
|