Skip to content
Open
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
13 changes: 13 additions & 0 deletions .docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM golang:1.25 AS build-stage

WORKDIR /app

COPY . /app/

RUN go build -ldflags="-s -w" -o shm-agent ./cmd/shm-agent

FROM golang:1.25 AS production-stage

COPY --from=build-stage /app/shm-agent /usr/local/go/bin/shm-agent

WORKDIR /app
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ A lightweight, autonomous agent that collects metrics by parsing log files and s
### From Source

```bash
git clone https://github.com/kolapsis/shm-agent.git
git clone https://github.com/btouchard/shm-agent.git
cd shm-agent
go build -ldflags="-s -w" -o shm-agent ./cmd/shm-agent
```

### Binary Releases

Download pre-built binaries from the [Releases](https://github.com/kolapsis/shm-agent/releases) page.
Download pre-built binaries from the [Releases](https://github.com/btouchard/shm-agent/releases) page.

## Quick Start

Expand Down
9 changes: 9 additions & 0 deletions compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
services:

shm-agent:
pull_policy: build
build:
context: .
dockerfile: .docker/Dockerfile
volumes:
- "./testdata:/app/testdata"