-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
90 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,5 @@ | |
dist | ||
.DS_Store | ||
*.log | ||
*.pid | ||
*.pid | ||
docker/anklet* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.8.0 | ||
0.8.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
FROM alpine:latest | ||
RUN apk update && apk add ca-certificates | ||
ARG TARGETARCH | ||
COPY ./anklet_linux_${TARGETARCH} /usr/local/bin/anklet | ||
ENTRYPOINT ["/usr/local/bin/anklet", "--attach"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
version: '3.1' | ||
services: | ||
anklet-metrics-aggregator: | ||
# build: | ||
# context: ./ | ||
# dockerfile: Dockerfile | ||
image: veertu/anklet:latest | ||
container_name: anklet-metrics-aggregator | ||
# volumes: | ||
# - /Users/nathanpierce/.config/anklet:/root/.config/anklet/ | ||
ports: | ||
- "8081:8081" | ||
environment: | ||
# - LOG_LEVEL=dev | ||
- ANKLET_METRICS_AGGREGATOR=true | ||
- ANKLET_METRICS_PORT=8081 | ||
# - ANKLET_METRICS_URLS=http://anklet1:8080/metrics,http://anklet2:8081/metrics | ||
- ANKLET_METRICS_URLS=http://host.docker.internal:8080/metrics | ||
- ANKLET_METRICS_SLEEP_INTERVAL=10 | ||
- ANKLET_METRICS_DATABASE_ENABLED=true | ||
- ANKLET_METRICS_DATABASE_URL=host.docker.internal | ||
- ANKLET_METRICS_DATABASE_PORT=6379 | ||
- ANKLET_METRICS_DATABASE_USER= | ||
- ANKLET_METRICS_DATABASE_PASSWORD= | ||
- ANKLET_METRICS_DATABASE_DATABASE=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
set -exo pipefail | ||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" | ||
pushd "${SCRIPT_DIR}" | ||
DOCKERFILE_PATH="${SCRIPT_DIR}/docker" | ||
NAME="anklet" | ||
cleanup() { | ||
rm -f "${DOCKERFILE_PATH}/${NAME}"* | ||
} | ||
ARCH=amd64 make build-linux | ||
ARCH=arm64 make build-linux | ||
ls -alht "${DOCKERFILE_PATH}/" | ||
trap cleanup EXIT | ||
pushd "${DOCKERFILE_PATH}" | ||
docker buildx create --name mybuilder --use || true | ||
docker buildx install || true | ||
# make sure docker login is handled | ||
docker build --no-cache --platform linux/amd64,linux/arm64 \ | ||
-t veertu/"${NAME}":latest -t veertu/"$NAME:v$(cat "${SCRIPT_DIR}"/VERSION)" \ | ||
--push . | ||
popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters