-
Notifications
You must be signed in to change notification settings - Fork 387
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a docker image for uplink-cli and push it to docker hub. We used to have this before the change to uplinkng. I'm not sure if the pushing works, we'll see after merge. To test, build an image with `make uplink-image`, read the tag from the output and run normal uplink-cli commands using `docker run -it storjlabs/uplink:df9bbceca-uplink-docker-go1.18.8-amd64 [command]` Part of storj/uplink#109 Change-Id: I8a10aab2b778951ff42a22ba2f252c581eb66b65
- Loading branch information
Showing
2 changed files
with
27 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
ARG DOCKER_ARCH | ||
|
||
# Fetch ca-certificates file for arch independent builds below | ||
FROM debian:buster-slim as ca-cert | ||
RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates | ||
RUN update-ca-certificates | ||
|
||
FROM ${DOCKER_ARCH:-amd64}/debian:buster-slim | ||
ARG TAG | ||
ARG GOARCH | ||
ENV GOARCH ${GOARCH} | ||
WORKDIR /app | ||
COPY --from=ca-cert /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt | ||
COPY release/${TAG}/uplink_linux_${GOARCH:-amd64} /app/uplink | ||
ENTRYPOINT ["/app/uplink"] |