Skip to content

Commit 06067b0

Browse files
author
Dan Lorenc
committed
Rename the directories for rekor-cli and rekor-server.
This makes the binaries "go installable" by their canonical names. Signed-off-by: Dan Lorenc <dlorenc@google.com>
1 parent 66b8a2d commit 06067b0

File tree

21 files changed

+21
-20
lines changed

21 files changed

+21
-20
lines changed

.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
.vscode/*
33
/cli
44
logid
5-
rekor-cli
6-
rekor-server
5+
/rekor-cli
6+
/rekor-server
7+
/tests/rekor-server
78
/server
89
swagger

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ RUN go mod download
99
# Add source code
1010
ADD ./ $APP_ROOT/src/
1111

12-
RUN go build ./cmd/server
13-
RUN CGO_ENABLED=0 go build -gcflags "all=-N -l" -o server_debug ./cmd/server
12+
RUN go build ./cmd/rekor-server
13+
RUN CGO_ENABLED=0 go build -gcflags "all=-N -l" -o rekor-server_debug ./cmd/rekor-server
1414

1515
# Multi-Stage production build
1616
FROM golang:1.16.2 as deploy
1717

1818
# Retrieve the binary from the previous stage
19-
COPY --from=builder /opt/app-root/src/server /usr/local/bin/rekor-server
19+
COPY --from=builder /opt/app-root/src/rekor-server /usr/local/bin/rekor-server
2020

2121
# Set the binary as the entrypoint of the container
2222
CMD ["rekor-server", "serve"]
@@ -26,4 +26,4 @@ FROM deploy as debug
2626
RUN go get github.com/go-delve/delve/cmd/dlv
2727

2828
# overwrite server and include debugger
29-
COPY --from=builder /opt/app-root/src/server_debug /usr/local/bin/rekor-server
29+
COPY --from=builder /opt/app-root/src/rekor-server_debug /usr/local/bin/rekor-server

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ gosec:
2121
$(GOBIN)/gosec ./...
2222

2323
cli: $(SRCS)
24-
go build ./cmd/cli
24+
go build ./cmd/rekor-cli
2525

2626
server: $(SRCS)
27-
go build ./cmd/server
27+
go build ./cmd/rekor-server
2828

2929
test:
3030
go test ./...
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424
"time"
2525

2626
"github.com/go-openapi/runtime"
27-
"github.com/sigstore/rekor/cmd/cli/app/format"
27+
"github.com/sigstore/rekor/cmd/rekor-cli/app/format"
2828
"github.com/sigstore/rekor/pkg/generated/client/entries"
2929
"github.com/sigstore/rekor/pkg/generated/models"
3030
"github.com/sigstore/rekor/pkg/log"
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ import (
2727
"strings"
2828
"time"
2929

30-
"github.com/sigstore/rekor/cmd/cli/app/state"
30+
"github.com/sigstore/rekor/cmd/rekor-cli/app/state"
3131

3232
"github.com/google/trillian"
3333
tclient "github.com/google/trillian/client"
3434
tcrypto "github.com/google/trillian/crypto"
3535
"github.com/google/trillian/merkle/logverifier"
3636
rfc6962 "github.com/google/trillian/merkle/rfc6962/hasher"
3737

38-
"github.com/sigstore/rekor/cmd/cli/app/format"
38+
"github.com/sigstore/rekor/cmd/rekor-cli/app/format"
3939
"github.com/sigstore/rekor/pkg/generated/client/tlog"
4040
"github.com/sigstore/rekor/pkg/log"
4141
"github.com/spf13/cobra"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
"fmt"
2121
"os"
2222

23-
"github.com/sigstore/rekor/cmd/cli/app/format"
23+
"github.com/sigstore/rekor/cmd/rekor-cli/app/format"
2424
"github.com/sigstore/rekor/pkg/generated/client/tlog"
2525
"github.com/spf13/cobra"
2626
"github.com/spf13/viper"

0 commit comments

Comments
 (0)