-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile-all-in-one
51 lines (40 loc) · 1.62 KB
/
Dockerfile-all-in-one
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
40
41
42
43
44
45
46
47
48
49
50
51
FROM python:3.9-slim
LABEL maintainer "[email protected]"
ARG TM_VERSION=0.34.15
RUN apt-get update \
&& apt-get install -y openssl ca-certificates git \
&& apt-get install -y vim build-essential cmake jq zsh wget \
&& apt-get install -y libstdc++6 \
&& apt-get install -y openssh-client openssh-server
ENV HOME /root
WORKDIR /usr/src
RUN git clone https://github.com/planetmint/planetmint.git app
WORKDIR /usr/src/app
RUN apt-get install -y git \
&& pip install --upgrade pip cffi \
&& pip install -e . \
&& apt-get autoremove
# Install tarantool and monit
RUN apt-get install -y dirmngr gnupg apt-transport-https software-properties-common ca-certificates curl
RUN apt-get update
RUN curl -L https://tarantool.io/wrATeGF/release/2/installer.sh | bash
RUN apt-get install -y tarantool monit
# Install Tendermint
RUN wget https://github.com/tendermint/tendermint/releases/download/v${TM_VERSION}/tendermint_${TM_VERSION}_linux_amd64.tar.gz \
&& tar -xf tendermint_${TM_VERSION}_linux_amd64.tar.gz \
&& mv tendermint /usr/local/bin/ \
&& rm tendermint_${TM_VERSION}_linux_amd64.tar.gz
ENV TMHOME=/tendermint
# Planetmint enviroment variables
ENV PLANETMINT_DATABASE_PORT 3303
ENV PLANETMINT_DATABASE_BACKEND tarantool_db
ENV PLANETMINT_DATABASE_HOST localhost
ENV PLANETMINT_SERVER_BIND 0.0.0.0:9984
ENV PLANETMINT_WSSERVER_HOST 0.0.0.0
ENV PLANETMINT_WSSERVER_SCHEME ws
ENV PLANETMINT_WSSERVER_ADVERTISED_HOST 0.0.0.0
ENV PLANETMINT_WSSERVER_ADVERTISED_SCHEME ws
ENV PLANETMINT_TENDERMINT_PORT 26657
VOLUME /data/db /data/configdb /tendermint
EXPOSE 27017 28017 9984 9985 26656 26657 26658
WORKDIR $HOME