Skip to content

Commit

Permalink
Improve Docker README
Browse files Browse the repository at this point in the history
  • Loading branch information
sbihel committed Dec 2, 2020
1 parent 49b9f56 commit 00c7bd7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
5 changes: 2 additions & 3 deletions Dockerfile-http
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
RUN cargo build --release

FROM alpine
COPY --from=builder /didkit/target/x86_64-unknown-linux-musl/release/didkit-http didkit-http
ENTRYPOINT ["./didkit-http"]

COPY --from=builder /didkit/target/x86_64-unknown-linux-musl/release/didkit-http /usr/local/bin/

ENTRYPOINT ["didkit-http"]
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,18 @@
### Container

Both the CLI and HTTP server are containerised and available under
`ghcr.io/spruceid/didkit-(cli|http)`. You can use the images like CLIs:
`ghcr.io/spruceid/didkit-(cli|http)`.

The image are private for now, so a [Personal Access Token](https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/creating-a-personal-access-token)
is required. Once created you can login like so:
```bash
$ docker login ghcr.io -u USERNAME --password-stdin
```

You can use the images like CLIs:
```bash
$ docker run ghcr.io/spruceid/didkit-cli:latest --help
$ docker run -p 8080 ghcr.io/spruceid/didkit-http:latest --port 8080
$ docker run --init -p 8080 ghcr.io/spruceid/didkit-http:latest --port 8080
```

### Manual
Expand Down

0 comments on commit 00c7bd7

Please sign in to comment.