File tree 4 files changed +4
-6
lines changed
4 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ You have two options to install the verifier.
23
23
24
24
#### Option 1: Install via go
25
25
```
26
- $ go install github.com/slsa-framework/[email protected] .1
26
+ $ go install github.com/slsa-framework/[email protected] .0
27
27
$ slsa-verifier <options>
28
28
```
29
29
Original file line number Diff line number Diff line change @@ -3,9 +3,7 @@ WORKDIR /src
3
3
ENV CGO_ENABLED=0
4
4
COPY . ./
5
5
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
9
7
10
8
# For testing.
11
9
# COPY ./service/service slsa-verifier
Original file line number Diff line number Diff line change @@ -5,11 +5,11 @@ This document is WIP.
5
5
Command to run the service locally:
6
6
7
7
``` bash
8
- $ docker build -f service/Dockerfile .
8
+ $ docker build -t slsa-verifier-rest:latest -f cli/experimental/ service/Dockerfile .
9
9
$ docker run -p 8000:8000 slsa-verifier-rest:latest # This did not work for me.
10
10
$ docker run --network=host slsa-verifier-rest:latest
11
11
```
12
12
13
13
``` 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
15
15
```
File renamed without changes.
You can’t perform that action at this time.
0 commit comments