generated from ethereum-optimism/.github
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* op-signer: add to this repo * circleci: add op-signer jobs/workflows * ops: update tag service to include op-signer * readme: add op-signer one sentence description * ci: add op-signer option to github action * ops: add op-signer min version
- Loading branch information
1 parent
7f8095c
commit 75b02df
Showing
34 changed files
with
2,502 additions
and
0 deletions.
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
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 |
---|---|---|
|
@@ -18,6 +18,7 @@ on: | |
required: true | ||
type: choice | ||
options: | ||
- op-signer | ||
- op-ufm | ||
- proxyd | ||
prerelease: | ||
|
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,37 @@ | ||
root = "." | ||
testdata_dir = "testdata" | ||
tmp_dir = "bin" | ||
|
||
[build] | ||
args_bin = [] | ||
bin = "./bin/op-signer" | ||
cmd = "make build" | ||
delay = 1000 | ||
exclude_dir = ["bin"] | ||
exclude_file = [] | ||
exclude_regex = ["_test.go"] | ||
exclude_unchanged = false | ||
follow_symlink = false | ||
full_bin = "" | ||
include_dir = [] | ||
include_ext = ["go", "tpl", "tmpl", "html"] | ||
kill_delay = "0s" | ||
log = "build-errors.log" | ||
send_interrupt = false | ||
stop_on_error = true | ||
|
||
[color] | ||
app = "" | ||
build = "yellow" | ||
main = "magenta" | ||
runner = "green" | ||
watcher = "cyan" | ||
|
||
[log] | ||
time = false | ||
|
||
[misc] | ||
clean_on_exit = false | ||
|
||
[screen] | ||
clear_on_rebuild = false |
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,4 @@ | ||
export OP_SIGNER_LOG_LEVEL=debug | ||
export OP_SIGNER_LOG_COLOR=true | ||
export OP_SIGNER_RPC_PORT=8080 | ||
export OP_SIGNER_METRICS_ENABLED=true |
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,2 @@ | ||
bin/ | ||
tls/ |
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 @@ | ||
# @eth-optimism/signer |
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,18 @@ | ||
FROM golang:1.21.3-alpine3.18 as builder | ||
|
||
COPY ./op-signer /app | ||
|
||
WORKDIR /app | ||
RUN apk --no-cache add make jq bash git alpine-sdk | ||
RUN make build | ||
|
||
FROM alpine:3.18 | ||
RUN apk --no-cache add ca-certificates | ||
|
||
RUN addgroup -S app && adduser -S app -G app | ||
USER app | ||
WORKDIR /app | ||
|
||
COPY --from=builder /app/bin/op-signer /app | ||
|
||
ENTRYPOINT ["/app/op-signer"] |
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,37 @@ | ||
GITCOMMIT := $(shell git rev-parse HEAD) | ||
GITDATE := $(shell git show -s --format='%ct') | ||
VERSION := v0.0.0 | ||
|
||
LDFLAGSSTRING +=-X main.GitCommit=$(GITCOMMIT) | ||
LDFLAGSSTRING +=-X main.GitDate=$(GITDATE) | ||
LDFLAGSSTRING +=-X main.Version=$(VERSION) | ||
LDFLAGS := -ldflags "$(LDFLAGSSTRING)" | ||
|
||
all: build | ||
|
||
docker: | ||
docker build ../ -f Dockerfile -t op-signer:latest | ||
|
||
build: | ||
env GO111MODULE=on go build -v $(LDFLAGS) -o ./bin/op-signer ./cmd | ||
|
||
clean: | ||
rm ./bin/op-signer | ||
|
||
generate: | ||
[ '$(shell mockgen --version)' = 'v1.6.0' ] || go install github.com/golang/mock/mockgen@v1.6.0 | ||
go generate ./... | ||
|
||
test: generate | ||
go test -v ./... | ||
|
||
lint: | ||
golangci-lint run ./... | ||
|
||
.PHONY: \ | ||
build \ | ||
clean \ | ||
test \ | ||
generate \ | ||
lint \ | ||
docker |
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,14 @@ | ||
# @eth-optimism/signer | ||
|
||
Signer service and client library | ||
|
||
## Setup | ||
|
||
Install go1.18 | ||
|
||
```bash | ||
make build | ||
|
||
source .env.example # (or copy to .envrc if using direnv) | ||
./bin/signer | ||
``` |
Oops, something went wrong.