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
Try building as an image
-------------------------------
```bash
make \
UBUNTU_VERSIONS=ubuntu-bionic \
DEBIAN_VERSIONS="" \
CLI_DIR=$GOPATH/src/github.com/docker/cli \
ENGINE_DIR=$GOPATH/src/github.com/docker/docker \
deb
```
Note that we didn't build containerd or runc, so
we can't run the daemon. We can try the cli against a
daemon on the host though;
```bash
docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock debbuild-ubuntu-bionic/x86_64
```
Try building, and put binaries in deb/build
--------------------------------------------
```bash
make \
UBUNTU_VERSIONS=ubuntu-bionic \
DEBIAN_VERSIONS="" \
CLI_DIR=$GOPATH/src/github.com/docker/cli \
ENGINE_DIR=$GOPATH/src/github.com/docker/docker \
binaries
```
Artefacts will be stored in deb/build
```bash
ls -la deb/build
total 0
drwx------ 6 sebastiaan staff 192 Oct 28 16:17 .
drwxr-xr-x 19 sebastiaan staff 608 Oct 28 16:17 ..
drwxr-xr-x 7 sebastiaan staff 224 Oct 28 16:17 bin
drwxr-xr-x 4 sebastiaan staff 128 Oct 28 16:17 cli-plugins
drwxr-xr-x 6 sebastiaan staff 192 Oct 28 16:17 completion
drwxr-xr-x 3 sebastiaan staff 96 Oct 28 16:17 man
```
Signed-off-by: Sebastiaan van Stijn <[email protected]>
# make UBUNTU_VERSIONS=ubuntu-bionic DEBIAN_VERSIONS="" RASPBIAN_VERSIONS="" CLI_DIR=$GOPATH/src/github.com/docker/cli ENGINE_DIR=$GOPATH/src/github.com/docker/docker deb
100
+
#
101
+
# Collect all the artefacts. Note that we didn't build containerd or runc, so
102
+
# we can't run the daemon. We can try the cli against a daemon on the host though;
103
+
# docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock debbuild-ubuntu-bionic/x86_64
104
+
#
105
+
# This stage is based on build-base, so contains the ~/build-deb directory, which
106
+
# we probably should clean up.
107
+
FROM build-base AS final
108
+
COPY --from=completion /. /build/
109
+
COPY --from=manpages /. /build/
110
+
COPY --from=plugins /. /root/.docker/cli-plugins/
111
+
COPY --from=cli /bin/. /usr/local/bin/
112
+
COPY --from=engine /bin/. /usr/local/bin/
113
+
RUN echo '{"experimental":"enabled", "debug": true}' > /root/.docker/config.json \
114
+
&& docker --help
115
+
WORKDIR /build/
116
+
117
+
# Stage to collect all the binaries, which could be used with `--output type=local,dsc=build
118
+
#
119
+
# Build this stage with
120
+
# make UBUNTU_VERSIONS=ubuntu-bionic DEBIAN_VERSIONS="" RASPBIAN_VERSIONS="" CLI_DIR=$GOPATH/src/github.com/docker/cli ENGINE_DIR=$GOPATH/src/github.com/docker/docker binaries
0 commit comments