-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
115 additions
and
19 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
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,26 @@ | ||
FROM golang:1.16.0 | ||
|
||
ARG PENGUIN_VERSION=0.0.2 | ||
|
||
ENV GO111MODULE=on | ||
|
||
RUN mkdir -p /app/configs | ||
RUN mkdir -p /app/var/logs | ||
RUN apt-get update | ||
|
||
WORKDIR /app | ||
|
||
RUN curl -sL https://github.com/Clivern/Penguin/releases/download/v${PENGUIN_VERSION}/penguin_${PENGUIN_VERSION}_Linux_x86_64.tar.gz | tar xz | ||
RUN rm LICENSE | ||
RUN rm README.md | ||
|
||
COPY ./config.dist.yml /app/configs/ | ||
|
||
EXPOSE 8000 | ||
|
||
VOLUME /app/configs | ||
VOLUME /app/var | ||
|
||
RUN ./penguin version | ||
|
||
CMD ["./penguin", "run", "-c", "/app/configs/config.dist.yml"] |
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
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
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,53 @@ | ||
# Metrics Input | ||
inputs: | ||
# HTTP endpoint for metrics collection | ||
http: | ||
enabled: on | ||
mode: prod | ||
port: 8080 | ||
tls: | ||
status: off | ||
pemPath: cert/server.pem | ||
keyPath: cert/server.key | ||
path: / | ||
api_key: "" | ||
|
||
# Log files to watch | ||
log: | ||
enabled: off | ||
paths: | ||
- /app/logs/metrics_1.log | ||
- /app/logs/metrics_2.log | ||
|
||
# Metrics Cache Driver | ||
cache: | ||
type: memory | ||
enabled: on | ||
|
||
drivers: | ||
memory: | ||
buffer_size: 10 | ||
|
||
# Metrics Output | ||
output: | ||
# Output metrics to console | ||
console: | ||
enabled: on | ||
|
||
# Expose to prometheus | ||
prometheus: | ||
enabled: on | ||
endpoint: /metrics | ||
|
||
# TODO: Support Graphite | ||
graphite: | ||
enabled: off | ||
|
||
# Log configs | ||
log: | ||
# Log level, it can be debug, info, warn, error, panic, fatal | ||
level: info | ||
# output can be stdout or abs path to log file /var/logs/beetle.log | ||
output: stdout | ||
# Format can be json | ||
format: json |
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,11 @@ | ||
version: '3' | ||
|
||
services: | ||
penguin: | ||
image: 'clivern/penguin:release-v0.0.2' | ||
ports: | ||
- "8000:8000" | ||
command: '/app/penguin run -c /app/configs/config.yml' | ||
volumes: | ||
- './configs/:/app/configs' | ||
restart: unless-stopped |