mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-12-26 22:57:50 +01:00
6a6a19207c
* Dependencies update Signed-off-by: David Dashyan <mail@davie.li> * Dockerfile-dev: update python version + remove system pynacl Signed-off-by: David Dashyan <mail@davie.li> * Set dummy_transaction fixture scope to "session" Signed-off-by: David Dashyan <mail@davie.li> * Add 3.7 and 3.8 python tests * setup.py: fix version typo
36 lines
928 B
Plaintext
36 lines
928 B
Plaintext
ARG python_version=3.6
|
|
FROM python:${python_version}
|
|
LABEL maintainer "contact@ipdb.global"
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install -y git \
|
|
&& pip install -U pip \
|
|
&& apt-get autoremove \
|
|
&& apt-get clean
|
|
|
|
ARG backend
|
|
ARG abci_status
|
|
|
|
# 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 BIGCHAINDB_DATABASE_PORT 27017
|
|
ENV BIGCHAINDB_DATABASE_BACKEND $backend
|
|
ENV BIGCHAINDB_SERVER_BIND 0.0.0.0:9984
|
|
ENV BIGCHAINDB_WSSERVER_HOST 0.0.0.0
|
|
ENV BIGCHAINDB_WSSERVER_SCHEME ws
|
|
|
|
ENV BIGCHAINDB_WSSERVER_ADVERTISED_HOST 0.0.0.0
|
|
ENV BIGCHAINDB_WSSERVER_ADVERTISED_SCHEME ws
|
|
|
|
ENV BIGCHAINDB_TENDERMINT_PORT 26657
|
|
|
|
ENV BIGCHAINDB_CI_ABCI ${abci_status}
|
|
|
|
RUN mkdir -p /usr/src/app
|
|
COPY . /usr/src/app/
|
|
WORKDIR /usr/src/app
|
|
RUN pip install -e .[dev]
|
|
RUN bigchaindb -y configure
|