File tree Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,21 @@ Use `--help` to see all options and learn more about advanced usage.
50
50
51
51
gget --help
52
52
53
+ ## Docker Usage
54
+
55
+ The ` dpb587/gget ` image can be used as a build stage for finding and downloading assets for use in a subsequent stage.
56
+
57
+ ```
58
+ FROM dpb587/gget as gget
59
+ RUN gget --exec github.com/cloudfoundry/bosh-cli bosh=bosh-cli-*-linux-amd64
60
+ RUN gget --exec github.com/cloudfoundry/bosh-bootloader bbl=bbl-*_linux_x86-64
61
+ RUN gget --stdout github.com/pivotal-cf/om om-linux-*.tar.gz | tar -xzf- om
62
+
63
+ FROM ubuntu
64
+ COPY --from=gget /result/* /usr/local/bin/
65
+ ...everything else for your image...
66
+ ```
67
+
53
68
## Services
54
69
55
70
The following services are supported through their APIs:
Original file line number Diff line number Diff line change
1
+ FROM alpine as base
2
+ RUN apk add --no-cache ca-certificates wget
3
+
4
+ ENV gget /usr/local/bin/gget
5
+ RUN true \
6
+ && wget -qO "$gget" https://github.com/dpb587/gget/releases/download/v0.1.0/gget-0.1.0-linux-amd64 \
7
+ && echo "418b68caeb302898322465abc31c316a1dbdb7872cdad0fe4a9661c5118860c4 $gget" | sha256sum -c \
8
+ && chmod +x "$gget"
9
+ RUN gget github.com/dpb587/gget --exec "$gget=gget-*-linux-amd64"
10
+ RUN gget --version -v
11
+
12
+ FROM alpine
13
+ RUN apk add --no-cache ca-certificates xz
14
+ COPY --from=base /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
15
+ COPY --from=base /usr/local/bin/gget /bin/gget
16
+ RUN mkdir /result
17
+ WORKDIR /result
18
+ ENTRYPOINT ["/bin/gget" ]
19
+ CMD ["--help" ]
You can’t perform that action at this time.
0 commit comments