tokenika / eosfactory

Python-based EOS smart-contract development & testing framework
http://eosfactory.io/
Other
243 stars 62 forks source link

Why is EOSFacotry in Docker not supported? #138

Closed ryanleecode closed 5 years ago

ryanleecode commented 5 years ago

In the documentation it states

EOSIO deployed in Docker is NOT supported.

However, I got an image running just fine with the following file.

FROM ubuntu:18.04

# needed for install script
ENV TERM dumb

RUN  apt-get update \
  && apt-get install -y wget \
  git \
  python3-pip python3-dev build-essential

RUN wget https://github.com/EOSIO/eos/releases/download/v1.5.5/eosio_1.5.5-1-ubuntu-18.04_amd64.deb
RUN apt-get install -y ./eosio_1.5.5-1-ubuntu-18.04_amd64.deb

RUN wget https://github.com/EOSIO/eosio.cdt/releases/download/v1.5.0/eosio.cdt_1.5.0-1_amd64.deb
RUN apt-get install -y ./eosio.cdt_1.5.0-1_amd64.deb

WORKDIR /home
RUN mkdir contracts

WORKDIR /
RUN git clone https://github.com/tokenika/eosfactory.git
WORKDIR /eosfactory
RUN echo "{ \"EOSIO_CONTRACT_WORKSPACE\": \"/home/contracts\"}" > config.json

# The echo will simulate pressing enter on the keyboard
RUN echo | ./install.sh

Then just run python3 tests/01_hello_world.py. If it hangs, CTRL+C and run it again. Not sure why it hangs either.

stefanzarembinski commented 5 years ago

The remark in the tutorial says that if EOSIO is installed as a Docker image, EOSFactory cannot use it, as it can use a plain installation of EOSIO.

stefanzarembinski commented 5 years ago

It is finished, I see. Closing it.