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:
Sangat Das 2022-04-26 05:13:03 -07:00
parent 6a243743f4
commit fe5afa5a7a
2 changed files with 3 additions and 2 deletions

View File

@ -4,6 +4,7 @@ LABEL maintainer "contact@ipdb.global"
RUN apt-get update \
&& apt-get install -y git zsh\
&& apt-get install -y tarantool-common\
&& pip install -U pip \
&& apt-get autoremove \
&& 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
ENV PYTHONUNBUFFERED 0
ENV PLANETMINT_DATABASE_PORT 27017
ENV PLANETMINT_DATABASE_PORT 3303
ENV PLANETMINT_DATABASE_BACKEND $backend
ENV PLANETMINT_SERVER_BIND 0.0.0.0:9984
ENV PLANETMINT_WSSERVER_HOST 0.0.0.0

View File

@ -63,7 +63,7 @@ class TarantoolDB:
import subprocess
print(f" commands: {command}")
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,
stdout=subprocess.PIPE,
universal_newlines=True,