update: docker base image

This commit is contained in:
llitfkitfk 2020-03-23 14:38:58 +08:00
parent cbe0c28278
commit 76b7237347
4 changed files with 32 additions and 3 deletions

View File

@ -10,9 +10,8 @@ WORKDIR /app
COPY . . COPY . .
RUN ./control build RUN ./control build
FROM alpine:3.10 FROM buildpack-deps:buster-curl
LABEL maintainer="llitfkitfk@gmail.com" LABEL maintainer="llitfkitfk@gmail.com"
RUN apk add --no-cache tzdata ca-certificates bash
WORKDIR /app WORKDIR /app

View File

@ -4,7 +4,7 @@ logger:
keepHours: 2 keepHours: 2
identity: identity:
specify: "" specify: ""
shell: /sbin/ifconfig `/sbin/route|grep '^default'|awk '{print $NF}'`|grep inet|awk '{print $2}'|head -n 1 shell: /usr/sbin/ifconfig `/usr/sbin/route|grep '^default'|awk '{print $NF}'`|grep inet|awk '{print $2}'|head -n 1
sys: sys:
# timeout in ms # timeout in ms
# interval in second # interval in second

22
docker/etc/judge.yml Normal file
View File

@ -0,0 +1,22 @@
query:
connTimeout: 1000
callTimeout: 2000
indexCallTimeout: 2000
redis:
addrs:
- redis:6379
pass: ""
# timeout:
# conn: 500
# read: 3000
# write: 3000
identity:
specify: ""
shell: /usr/sbin/ifconfig `/usr/sbin/route|grep '^default'|awk '{print $NF}'`|grep inet|awk '{print $2}'|head -n 1
logger:
dir: logs/judge
level: WARNING
keepHours: 2

8
docker/etc/tsdb.yml Normal file
View File

@ -0,0 +1,8 @@
rrd:
storage: data/5821
cache:
keepMinutes: 120
logger:
dir: logs/tsdb
level: WARNING
keepHours: 2