-
Notifications
You must be signed in to change notification settings - Fork 44
/
Dockerfile.uos
27 lines (21 loc) · 1.1 KB
/
Dockerfile.uos
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
FROM registry.jiagouyun.com/middlewares/uniontechos-server-zy-root:v1 AS base
ARG TARGETARCH
RUN mkdir -p /usr/local/datakit \
&& mkdir -p /usr/local/datakit/externals \
&& mkdir -p /opt/oracle
RUN yum install -y libaio-devel libaio unzip wget curl python3 python3-pip \
&& pip3 install requests -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
# download 3rd party libraries
RUN \
case "$TARGETARCH" in \
amd64) \
wget -q https://zhuyun-static-files-production.oss-cn-hangzhou.aliyuncs.com/otn_software/instantclient/instantclient-basiclite-linux.x64-21.10.0.0.0dbru.zip \
-O /usr/local/datakit/externals/instantclient-basiclite-linux.zip \
&& unzip /usr/local/datakit/externals/instantclient-basiclite-linux.zip -d /opt/oracle; \
;; \
esac;
# download data files required by datakit
RUN wget -q -O data.tar.gz https://static.guance.com/datakit/data.tar.gz \
&& tar -xzf data.tar.gz -C /usr/local/datakit && rm -rf data.tar.gz
COPY dist/datakit-linux-${TARGETARCH}/ /usr/local/datakit/
CMD ["/usr/local/datakit/datakit", "run", "-C"]