mirror of
https://github.com/planetmint/planetmint.git
synced 2025-06-07 06:36:38 +00:00
fixed all-in-one container tarantool issue
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
This commit is contained in:
parent
3ac0ca2c69
commit
67abb7102d
@ -1,4 +1,4 @@
|
|||||||
FROM python:3.9-slim
|
FROM ubuntu:22.04
|
||||||
LABEL maintainer "contact@ipdb.global"
|
LABEL maintainer "contact@ipdb.global"
|
||||||
|
|
||||||
ARG TM_VERSION=0.34.24
|
ARG TM_VERSION=0.34.24
|
||||||
@ -11,13 +11,15 @@ RUN apt-get update \
|
|||||||
&& apt-get install -y openssl ca-certificates git \
|
&& apt-get install -y openssl ca-certificates git \
|
||||||
&& apt-get install -y vim build-essential cmake jq zsh wget \
|
&& apt-get install -y vim build-essential cmake jq zsh wget \
|
||||||
&& apt-get install -y libstdc++6 \
|
&& apt-get install -y libstdc++6 \
|
||||||
&& apt-get install -y openssh-client openssh-server \
|
&& apt-get install -y openssh-client openssh-server
|
||||||
&& pip install --upgrade pip cffi \
|
RUN apt-get install -y python3 python3-pip cython3
|
||||||
|
RUN pip install --upgrade pip cffi \
|
||||||
&& pip install -e . \
|
&& pip install -e . \
|
||||||
&& apt-get autoremove
|
&& apt-get autoremove
|
||||||
|
|
||||||
# Install tarantool and monit
|
# Install tarantool and monit
|
||||||
RUN apt-get install -y dirmngr gnupg apt-transport-https software-properties-common ca-certificates curl
|
RUN apt-get install -y dirmngr gnupg apt-transport-https software-properties-common ca-certificates curl
|
||||||
|
RUN ln -fs /usr/share/zoneinfo/Etc/UTC /etc/localtime
|
||||||
RUN apt-get update
|
RUN apt-get update
|
||||||
RUN curl -L https://tarantool.io/wrATeGF/release/2/installer.sh | bash
|
RUN curl -L https://tarantool.io/wrATeGF/release/2/installer.sh | bash
|
||||||
RUN apt-get install -y tarantool monit
|
RUN apt-get install -y tarantool monit
|
||||||
|
4
Makefile
4
Makefile
@ -65,8 +65,8 @@ test: check-deps test-unit ## Run unit
|
|||||||
|
|
||||||
test-unit: check-deps ## Run all tests once or specify a file/test with TEST=tests/file.py::Class::test
|
test-unit: check-deps ## Run all tests once or specify a file/test with TEST=tests/file.py::Class::test
|
||||||
@$(DC) up -d tarantool
|
@$(DC) up -d tarantool
|
||||||
#wget https://github.com/tendermint/tendermint/releases/download/v0.34.15/tendermint_0.34.15_linux_amd64.tar.gz
|
#wget https://github.com/tendermint/tendermint/releases/download/v0.34.24/tendermint_0.34.24_linux_amd64.tar.gz
|
||||||
#tar zxf tendermint_0.34.15_linux_amd64.tar.gz
|
#tar zxf tendermint_0.34.24_linux_amd64.tar.gz
|
||||||
poetry run pytest -m "not abci"
|
poetry run pytest -m "not abci"
|
||||||
rm -rf ~/.tendermint && ./tendermint init && ./tendermint node --consensus.create_empty_blocks=false --rpc.laddr=tcp://0.0.0.0:26657 --proxy_app=tcp://localhost:26658&
|
rm -rf ~/.tendermint && ./tendermint init && ./tendermint node --consensus.create_empty_blocks=false --rpc.laddr=tcp://0.0.0.0:26657 --proxy_app=tcp://localhost:26658&
|
||||||
poetry run pytest -m abci
|
poetry run pytest -m abci
|
||||||
|
@ -59,8 +59,8 @@ $ sudo apt install mongodb
|
|||||||
```
|
```
|
||||||
Tendermint can be installed and started as follows
|
Tendermint can be installed and started as follows
|
||||||
```
|
```
|
||||||
$ wget https://github.com/tendermint/tendermint/releases/download/v0.34.15/tendermint_0.34.15_linux_amd64.tar.gz
|
$ wget https://github.com/tendermint/tendermint/releases/download/v0.34.24/tendermint_0.34.24_linux_amd64.tar.gz
|
||||||
$ tar zxf tendermint_0.34.15_linux_amd64.tar.gz
|
$ tar zxf tendermint_0.34.24_linux_amd64.tar.gz
|
||||||
$ ./tendermint init
|
$ ./tendermint init
|
||||||
$ ./tendermint node --proxy_app=tcp://localhost:26658
|
$ ./tendermint node --proxy_app=tcp://localhost:26658
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user