update: docker base image
This commit is contained in:
parent
cbe0c28278
commit
76b7237347
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
|
@ -0,0 +1,8 @@
|
||||||
|
rrd:
|
||||||
|
storage: data/5821
|
||||||
|
cache:
|
||||||
|
keepMinutes: 120
|
||||||
|
logger:
|
||||||
|
dir: logs/tsdb
|
||||||
|
level: WARNING
|
||||||
|
keepHours: 2
|
Loading…
Reference in New Issue