Skip to content

Commit e4cebda

Browse files
committed
update
1 parent 4fb2ffe commit e4cebda

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ You have two options to install the verifier.
2323

2424
#### Option 1: Install via go
2525
```
26-
$ go install github.com/slsa-framework/[email protected].1
26+
$ go install github.com/slsa-framework/[email protected].0
2727
$ slsa-verifier <options>
2828
```
2929

cli/experimental/service/Dockerfile

+1-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ WORKDIR /src
33
ENV CGO_ENABLED=0
44
COPY . ./
55
RUN go mod vendor
6-
RUN cd service && \
7-
go build -trimpath -ldflags "-s -w -extldflags=-static" -mod=vendor && \
8-
mv service ../slsa-verifier
6+
RUN go build -o slsa-verifier -trimpath -ldflags "-s -w -extldflags=-static" -mod=vendor ./cli/experimental/service/main.go
97

108
# For testing.
119
# COPY ./service/service slsa-verifier

cli/experimental/service/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ This document is WIP.
55
Command to run the service locally:
66

77
```bash
8-
$ docker build -f service/Dockerfile .
8+
$ docker build -t slsa-verifier-rest:latest -f cli/experimental/service/Dockerfile .
99
$ docker run -p 8000:8000 slsa-verifier-rest:latest # This did not work for me.
1010
$ docker run --network=host slsa-verifier-rest:latest
1111
```
1212

1313
```bash
14-
$ curl -s 127.0.0.1:8000/v1/verify -d @./request.txt
14+
$ curl -s 127.0.0.1:8000/v1/verify -d @cli/experimental/service/testdata/request.txt
1515
```

0 commit comments

Comments
 (0)