mirror of
https://github.com/planetmint/planetmint.git
synced 2025-11-25 06:55:45 +00:00
changed Dockerfile-dev to be the default
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
This commit is contained in:
parent
79350c01da
commit
797d820ff7
40
Dockerfile
40
Dockerfile
@ -1,24 +1,36 @@
|
|||||||
FROM python:3.9
|
ARG python_version=3.9
|
||||||
|
FROM python:${python_version}-slim
|
||||||
LABEL maintainer "contact@ipdb.global"
|
LABEL maintainer "contact@ipdb.global"
|
||||||
RUN mkdir -p /usr/src/app
|
|
||||||
COPY . /usr/src/app/
|
RUN apt-get update \
|
||||||
WORKDIR /usr/src/app
|
&& apt-get install -y git zsh curl\
|
||||||
RUN apt-get -qq update \
|
&& apt-get install -y tarantool-common\
|
||||||
&& apt-get -y upgrade \
|
&& apt-get install -y vim build-essential cmake\
|
||||||
&& apt-get install -y jq vim zsh build-essential cmake\
|
&& pip install -U pip \
|
||||||
&& pip install . \
|
|
||||||
&& apt-get autoremove \
|
&& apt-get autoremove \
|
||||||
&& apt-get clean
|
&& apt-get clean
|
||||||
|
ARG backend
|
||||||
|
ARG abci_status
|
||||||
|
|
||||||
VOLUME ["/data", "/certs"]
|
# When developing with Python in a docker container, we are using PYTHONBUFFERED
|
||||||
|
# to force stdin, stdout and stderr to be totally unbuffered and to capture logs/outputs
|
||||||
ENV PYTHONUNBUFFERED 0
|
ENV PYTHONUNBUFFERED 0
|
||||||
ENV PLANETMINT_CONFIG_PATH /data/.planetmint
|
|
||||||
|
ENV PLANETMINT_DATABASE_PORT 3303
|
||||||
|
ENV PLANETMINT_DATABASE_BACKEND $backend
|
||||||
ENV PLANETMINT_SERVER_BIND 0.0.0.0:9984
|
ENV PLANETMINT_SERVER_BIND 0.0.0.0:9984
|
||||||
ENV PLANETMINT_WSSERVER_HOST 0.0.0.0
|
ENV PLANETMINT_WSSERVER_HOST 0.0.0.0
|
||||||
ENV PLANETMINT_WSSERVER_SCHEME ws
|
ENV PLANETMINT_WSSERVER_SCHEME ws
|
||||||
|
|
||||||
ENV PLANETMINT_WSSERVER_ADVERTISED_HOST 0.0.0.0
|
ENV PLANETMINT_WSSERVER_ADVERTISED_HOST 0.0.0.0
|
||||||
ENV PLANETMINT_WSSERVER_ADVERTISED_SCHEME ws
|
ENV PLANETMINT_WSSERVER_ADVERTISED_SCHEME ws
|
||||||
ENV PLANETMINT_WSSERVER_ADVERTISED_PORT 9985
|
|
||||||
ENTRYPOINT ["planetmint"]
|
ENV PLANETMINT_TENDERMINT_PORT 26657
|
||||||
CMD ["start"]
|
|
||||||
|
ENV PLANETMINT_CI_ABCI ${abci_status}
|
||||||
|
|
||||||
|
RUN mkdir -p /usr/src/app
|
||||||
|
COPY . /usr/src/app/
|
||||||
|
WORKDIR /usr/src/app
|
||||||
|
RUN pip install -e .[dev]
|
||||||
|
RUN pip install flask-cors
|
||||||
|
|||||||
@ -32,7 +32,7 @@ services:
|
|||||||
- tarantool
|
- tarantool
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile-dev
|
dockerfile: Dockerfile
|
||||||
volumes:
|
volumes:
|
||||||
- ./planetmint:/usr/src/app/planetmint
|
- ./planetmint:/usr/src/app/planetmint
|
||||||
- ./tests:/usr/src/app/tests
|
- ./tests:/usr/src/app/tests
|
||||||
@ -60,7 +60,7 @@ services:
|
|||||||
interval: 3s
|
interval: 3s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 5
|
retries: 5
|
||||||
command: 'scripts/entrypoint.sh'
|
command: 'planetmint -l DEBUG start'
|
||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
tendermint:
|
tendermint:
|
||||||
@ -94,7 +94,7 @@ services:
|
|||||||
- vdocs
|
- vdocs
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile-dev
|
dockerfile: Dockerfile
|
||||||
args:
|
args:
|
||||||
backend: tarantool
|
backend: tarantool
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user