Skip to content

Commit

Permalink
feat: mem store - change to proxy name
Browse files Browse the repository at this point in the history
  • Loading branch information
EthenNotEthan committed May 23, 2024
1 parent 3837660 commit 7c05ece
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
go-version: 1.21

- name: Build App
run: make da-server
run: make eigenda-proxy

go-test:
outputs:
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
CMD ["./eigenda-proxy"]
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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)"
Expand All @@ -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.*"
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down

0 comments on commit 7c05ece

Please sign in to comment.