-
Notifications
You must be signed in to change notification settings - Fork 44
/
Dockerfile_win
39 lines (32 loc) · 1.05 KB
/
Dockerfile_win
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
FROM mcr.microsoft.com/windows/servercore:ltsc2019
ARG exe="dist/datakit-windows-amd64"
ARG target="C:/Program Files/datakit/"
RUN mkdir ${target}
COPY ${exe} ${target}
# download data files required by datakit
ADD https://static.dataflux.cn/datakit/data.tar.gz data.tar.gz
RUN tar -zxvf data.tar.gz -C ${target}
RUN del "data.tar.gz"
ARG dataway=""
ARG loglevel=""
ARG global_tags=""
ARG hostname=""
ARG name=""
ARG http_listen=""
ARG rum_origin_ip_header=""
ARG enable_pprof=""
ARG disable_protect_mode=""
ARG default_enabled_inputs=""
ARG enable_election=""
ENV ENV_DATAWAY=$dataway \
ENV_LOG_LEVEL=$loglevel \
ENV_GLOBAL_TAGS=$global_tags \
ENV_NAME=$name \
ENV_HTTP_LISTEN=$http_listen \
ENV_RUM_ORIGIN_IP_HEADER=$rum_origin_ip_header \
ENV_ENABLE_PPROF=$enable_pprof \
ENV_DISABLE_PROTECT_MODE=$=$disable_protect_mode \
ENV_DEFAULT_ENABLED_INPUTS=$default_enabled_inputs \
ENV_ENABLE_ELECTION=$enable_election \
ENV_HOSTNAME=$hostname
CMD ["C:\\Program Files\\datakit\\datakit", "--docker"]