-
-
Notifications
You must be signed in to change notification settings - Fork 3
1. Getting started
For working with EOSIO and ezeos you need to install:
- EOSIO
- EOSIO.CDT
- Required python modules.
Install EOSIO (v1.4.1) in the ~/eos
directory by following the official repository instruction.
For using docker container with EOSIO you have to have docker installed.
-
If you don't already have docker, you can download it here.
-
Setup a development diretory.
You're going to need to pick a directory to work from, it's suggested to create a contracts directory somewhere on your local drive.
mkdir /home/username/contracts
cd /home/username/contracts
- Get the latest or specific version docker image. The versions you can find here
# To get the latest version (recommended)
docker pull eosio/eos
# To get the concrete version
docker pull eosio/eos:v1.4.2
- Boot container (The following command you are doing only once)
# Boot latest version container (recommended)
docker run --name eos \
--publish 127.0.0.1:5555:5555 \
--volume /home/username/contracts:/home/username/contracts \
--detach \
eosio/eos \
/bin/bash -c "keosd --http-server-address=0.0.0.0:5555"
# Boot concrete version container
docker run --name eos \
--publish 127.0.0.1:5555:5555 \
--volume /home/username/contracts:/home/username/contracts \
--detach \
eosio/eos:v1.4.2 \
/bin/bash -c "keosd --http-server-address=0.0.0.0:5555"
eos - The required name of the container.
--volume - Alias a work volume on your local drive to the docker container.
- Check the container
docker logs --tail 10 eos
You should see some output in the console that looks like this:
info 2018-11-16T18:20:00.189 thread-0 http_plugin.cpp:554 add_handler ] add api url: /v1/wallet/list_keys
info 2018-11-16T18:20:00.189 thread-0 http_plugin.cpp:554 add_handler ] add api url: /v1/wallet/list_wallets
info 2018-11-16T18:20:00.189 thread-0 http_plugin.cpp:554 add_handler ] add api url: /v1/wallet/lock
info 2018-11-16T18:20:00.189 thread-0 http_plugin.cpp:554 add_handler ] add api url: /v1/wallet/lock_all
info 2018-11-16T18:20:00.189 thread-0 http_plugin.cpp:554 add_handler ] add api url: /v1/wallet/open
info 2018-11-16T18:20:00.189 thread-0 http_plugin.cpp:554 add_handler ] add api url: /v1/wallet/remove_key
info 2018-11-16T18:20:00.189 thread-0 http_plugin.cpp:554 add_handler ] add api url: /v1/wallet/set_timeout
info 2018-11-16T18:20:00.189 thread-0 http_plugin.cpp:554 add_handler ] add api url: /v1/wallet/sign_digest
info 2018-11-16T18:20:00.189 thread-0 http_plugin.cpp:554 add_handler ] add api url: /v1/wallet/sign_transaction
info 2018-11-16T18:20:00.189 thread-0 http_plugin.cpp:554 add_handler ] add api url: /v1/wallet/unlock
- Start/Stop your container
docker start eos
docker stop eos
- Open the container shell
docker exec -it eos bash
To exit cast exit
- Aliases
You don't want to enter into the Docker container's bash every time you need to interact with Cleos, Nodeos or Keosd. A solution to this is to create an aliases.
Add the following lines to your .bashrc
or .zshrc
or .profile
alias cleos='docker exec -it eos /opt/eosio/bin/cleos
alias nodeos='docker exec -it eos /opt/eosio/bin/nodeos
alias keosd='docker exec -it eos /opt/eosio/bin/keosd
For working with contracts you need to install Contract Development Toolkit. Follow the official installation guide for EOSIO.CDT
For using ezeos you nneed to install:
- Python 3
- pip3 install pillow
- pip3 install ttkthemes
At the root of this project: Run:
python3 ezeos.py