-
Notifications
You must be signed in to change notification settings - Fork 492
/
Dockerfile_build_ubuntu64
27 lines (21 loc) · 998 Bytes
/
Dockerfile_build_ubuntu64
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 quay.io/influxdb/builder:kapacitor-20240919
# This dockerfile is capabable of performing all
# build/test/package/deploy actions needed for Kapacitor.
MAINTAINER support@influxdb.com
# Install protobuf3 python library
# NOTE: PROTO_VERSION env var is inherited from the parent builder image.
RUN wget -q https://github.com/google/protobuf/releases/download/v${PROTO_VERSION}/protobuf-python-${PROTO_VERSION}.tar.gz \
&& tar -xf protobuf-python-${PROTO_VERSION}.tar.gz \
&& cd protobuf-${PROTO_VERSION}/python \
&& python2 setup.py install \
&& python3 setup.py install \
&& cd ../../ \
&& rm -rf /protobuf-${PROTO_VERSION} protobuf-python-${PROTO_VERSION}.tar.gz
ENV PROJECT_DIR=/kapacitor
RUN mkdir -p $PROJECT_DIR
WORKDIR $PROJECT_DIR
# Configure local git
RUN git config --global --add safe.directory $PROJECT_DIR
RUN git config --global user.email "support@influxdb.com"
RUN git config --global user.Name "Docker Builder"
ENTRYPOINT [ "/kapacitor/build.py" ]