Skip to content

Commit

Permalink
chore: add documentation for docker image (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
MSevey authored Nov 14, 2024
1 parent 1347dcc commit 61370dc
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
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
```

### MaxBlobSize

```sh
Expand Down

0 comments on commit 61370dc

Please # to comment.