mirror of
https://github.com/planetmint/planetmint.git
synced 2025-11-25 06:55:45 +00:00
Fix make test issue - unhealthy planetmint container because non-init of tarantool spaces
Signed-off-by: Sangat Das <sangatdas5@gmail.com>
This commit is contained in:
parent
6a243743f4
commit
fe5afa5a7a
@ -4,6 +4,7 @@ LABEL maintainer "contact@ipdb.global"
|
|||||||
|
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y git zsh\
|
&& apt-get install -y git zsh\
|
||||||
|
&& apt-get install -y tarantool-common\
|
||||||
&& pip install -U pip \
|
&& pip install -U pip \
|
||||||
&& apt-get autoremove \
|
&& apt-get autoremove \
|
||||||
&& apt-get clean
|
&& apt-get clean
|
||||||
@ -15,7 +16,7 @@ ARG abci_status
|
|||||||
# to force stdin, stdout and stderr to be totally unbuffered and to capture logs/outputs
|
# to force stdin, stdout and stderr to be totally unbuffered and to capture logs/outputs
|
||||||
ENV PYTHONUNBUFFERED 0
|
ENV PYTHONUNBUFFERED 0
|
||||||
|
|
||||||
ENV PLANETMINT_DATABASE_PORT 27017
|
ENV PLANETMINT_DATABASE_PORT 3303
|
||||||
ENV PLANETMINT_DATABASE_BACKEND $backend
|
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
|
||||||
|
|||||||
@ -63,7 +63,7 @@ class TarantoolDB:
|
|||||||
import subprocess
|
import subprocess
|
||||||
print(f" commands: {command}")
|
print(f" commands: {command}")
|
||||||
ret = subprocess.Popen(
|
ret = subprocess.Popen(
|
||||||
['%s %s:%s < %s' % ("tarantoolctl connect", "localhost", "3303", command)],
|
['%s %s:%s < %s' % ("tarantoolctl connect", self.host, self.port, command)],
|
||||||
stdin=subprocess.PIPE,
|
stdin=subprocess.PIPE,
|
||||||
stdout=subprocess.PIPE,
|
stdout=subprocess.PIPE,
|
||||||
universal_newlines=True,
|
universal_newlines=True,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user