Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add documentation for docker image #41

Merged
merged 1 commit into from
Nov 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ COPY --from=build-env /src/main /usr/bin/local-da

EXPOSE 7980

CMD ["local-da", "-listen-all"]
ENTRYPOINT ["local-da"]
CMD ["-listen-all"]
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ build:
@go build -o build/ ${LDFLAGS} ./...
.PHONY: build

## docker-build: Build local-da docker image.
docker-build:
@echo "--> Building local-da docker image"
@docker build -t local-da .
.PHONY: docker-build

## help: Show this help message
help: Makefile
@echo " Choose a command run in "$(PROJECTNAME)":"
Expand Down
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ It is intended to be used for testing DA layers without having to set up the act

## Usage

### local-da binary

To build and run the local-da binary:

```sh
make build
./build/local-da
Expand All @@ -26,6 +30,15 @@ $ ./build/local-da -listen-all
2024/04/11 12:23:34 Listening on: 0.0.0.0:7980
```

### Docker

You can also run the local-da service using docker:

```sh
make docker-build
docker run --rm -p 7980:7980 local-da
```
MSevey marked this conversation as resolved.
Show resolved Hide resolved

MSevey marked this conversation as resolved.
Show resolved Hide resolved
### MaxBlobSize

```sh
Expand Down
Loading