From 7c05eceda091ec68a712419588e31caedce9c9c0 Mon Sep 17 00:00:00 2001 From: Ethen Pociask Date: Thu, 23 May 2024 00:32:57 -0700 Subject: [PATCH] feat: mem store - change to proxy name --- .github/workflows/actions.yml | 2 +- Dockerfile | 6 +++--- Makefile | 12 ++++++------ README.md | 6 +++--- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index 30433dea..20ab9ee7 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -19,7 +19,7 @@ jobs: go-version: 1.21 - name: Build App - run: make da-server + run: make eigenda-proxy go-test: outputs: diff --git a/Dockerfile b/Dockerfile index 00969916..116d09d7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,16 +17,16 @@ RUN go mod download COPY . . # Build the application binary -RUN make da-server +RUN make eigenda-proxy # Use alpine to run app FROM alpine:3.16 WORKDIR /app -COPY --from=builder /app/bin/da-server . +COPY --from=builder /app/bin/eigenda-proxy . # API & metrics servers EXPOSE 4242 7300 # Run app -CMD ["./da-server"] \ No newline at end of file +CMD ["./eigenda-proxy"] \ No newline at end of file diff --git a/Makefile b/Makefile index 200e6e8a..5b0e0171 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -APP_NAME = eigenda-sidecar +APP_NAME = eigenda-proxy LINTER_VERSION = v1.52.1 LINTER_URL = https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh GET_LINT_CMD = "curl -sSfL $(LINTER_URL) | sh -s -- -b $(go env GOPATH)/bin $(LINTER_VERSION)" @@ -12,19 +12,19 @@ LDFLAGSSTRING +=-X main.GitDate=$(GITDATE) LDFLAGSSTRING +=-X main.Version=$(VERSION) LDFLAGS := -ldflags "$(LDFLAGSSTRING)" -.PHONY: da-server -da-server: - env GO111MODULE=on GOOS=$(TARGETOS) GOARCH=$(TARGETARCH) go build -v $(LDFLAGS) -o ./bin/da-server ./cmd/daserver +.PHONY: eigenda-proxy +eigenda-proxy: + env GO111MODULE=on GOOS=$(TARGETOS) GOARCH=$(TARGETARCH) go build -v $(LDFLAGS) -o ./bin/eigenda-proxy ./cmd/daserver .PHONY: docker-build docker-build: @docker build -t $(APP_NAME) . run-server: - ./bin/da-server + ./bin/eigenda-proxy clean: - rm bin/da-server + rm bin/eigenda-proxy test: go test -v ./... -test.skip ".*E2E.*" diff --git a/README.md b/README.md index aeb4561d..b122b20b 100644 --- a/README.md +++ b/README.md @@ -24,13 +24,13 @@ An ephemeral memory store backend can be used for faster feedback testing when p * `--memstore.expiration`: Duration for which a blob will exist ## Running Locally -1. Compile binary: `make da-server` -2. Run binary; e.g: `./bin/da-server --addr 127.0.0.1 --port 5050 --eigenda-rpc 127.0.0.1:443 --eigenda-status-query-timeout 45m --eigenda-g1-path test/resources/g1.point --eigenda-g2-tau-path test/resources/g2.point.powerOf2 --eigenda-use-tls true` +1. Compile binary: `make eigenda-proxy` +2. Run binary; e.g: `./bin/eigenda-proxy --addr 127.0.0.1 --port 5050 --eigenda-rpc 127.0.0.1:443 --eigenda-status-query-timeout 45m --eigenda-g1-path test/resources/g1.point --eigenda-g2-tau-path test/resources/g2.point.powerOf2 --eigenda-use-tls true` **Env File** An env file can be provided to the binary for runtime process ingestion; e.g: 1. Create env: `cp .env.example .env` -2. Pass into binary: `ENV_PATH=.env ./bin/da-server` +2. Pass into binary: `ENV_PATH=.env ./bin/eigenda-proxy` ## Running via Docker Container can be built via running `make build-docker`.