Dockerfile 877 Bytes
Newer Older
zxl's avatar
zxl committed
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
FROM hub.cstcloud.cn/scalebox/agent:dev

LABEL maintainer="Xiaoli Zhang<zhangxiaoli@cnic.cn>"

# 安装python3
RUN apt-get update \
    && apt-get install -y python3 python3-pip \
    && apt-get clean \
    && rm -rf /var/lib/apt/lists/*
#安装第三方包 grpcio、protobuf、grpcio_tools
RUN pip install grpcio
RUN pip install protobuf
RUN pip install grpcio_tools

ENV CSST_ADML2_JOB_ID=2
ENV CSST_ADML2_NAME="admL2"

# grpc连接参数
ENV CSST_PIPELINE_GRPC_SERVER="122.96.144.152:39092"

COPY *.sh /app/bin/
COPY *.py /app/bin/
COPY *.proto /app/bin/

#controld version 202208
RUN cd /app/bin/ \
    && mkdir controld \
    && python3 -m grpc_tools.protoc  --python_out=.  --grpc_python_out=.  -I. control.proto  -I=control

RUN cd /app/bin/ \
    && python3 setup.py sdist \
    && python3 setup.py bdist_wheel \
    && pip install twine \
#    && twine upload dist/* \