mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-04 12:22:55 +00:00
25 lines
754 B
Plaintext
25 lines
754 B
Plaintext
FROM centos:7
|
|
|
|
ENV LANG en_US.utf8
|
|
WORKDIR /greptimedb
|
|
|
|
# Install dependencies
|
|
RUN ulimit -n 1024000 && yum groupinstall -y 'Development Tools'
|
|
RUN yum install -y epel-release \
|
|
openssl \
|
|
openssl-devel \
|
|
centos-release-scl \
|
|
rh-python38 \
|
|
rh-python38-python-devel
|
|
|
|
# Install protoc
|
|
RUN curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v3.15.8/protoc-3.15.8-linux-x86_64.zip
|
|
RUN unzip protoc-3.15.8-linux-x86_64.zip -d /usr/local/
|
|
|
|
# Install Rust
|
|
SHELL ["/bin/bash", "-c"]
|
|
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --no-modify-path --default-toolchain none -y
|
|
ENV PATH /opt/rh/rh-python38/root/usr/bin:/usr/local/bin:/root/.cargo/bin/:$PATH
|
|
|
|
CMD ["cargo", "build", "--release"]
|