Skip to content

Commit

Permalink
Adds build-docker-multi to Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
excalq authored and kuskoman committed Apr 12, 2023
1 parent ad8ffd9 commit 3ab787f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ build-windows: out/main-windows
build-docker:
docker build -t logstash-exporter .

# Builds for Linux X86, Apple Silicon/AWS Graviton. Requires docker buildx (Docker 19.03+)
build-docker-multi:
docker buildx build --platform linux/amd64,linux/arm64 -t logstash-exporter .

clean:
rm -f $(GOOS_EXES)

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ All configuration variables can be checked in the [config directory](./config/).
- `make run`: Runs the Go Exporter application.
- `make build-<OS>`: Builds a binary executable for the specified OS (`<OS>` can be linux, darwin, or windows).
- `make build-docker`: Builds a Docker image for the Go Exporter application.
- `make build-docker-multi`: Builds a multi-arch Docker image (`amd64` and `arm64`) for the Go Exporter application.
- `make clean`: Deletes all binary executables in the out directory.
- `make test`: Runs all tests.
- `make compose`: Starts a Docker-compose configuration.
Expand Down

0 comments on commit 3ab787f

Please sign in to comment.