Skip to content
This repository was archived by the owner on Aug 2, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
5eb7ae8
Added options for cmake_build_type, codeCoverage & doxygen. Added che…
Apr 27, 2018
d167ed2
Merge branch 'master' into eosio_build_option
Apr 27, 2018
657e414
ubuntu: modified build for new variables
Apr 27, 2018
3338bb4
Fedora: adjusted script for new variable adjustments
Apr 30, 2018
dc09a8c
Merge branch 'master' into eosio_build_option
Apr 30, 2018
9982894
Merge branch 'eosio_build_option' of https://github.com/pacificcode/e…
Apr 30, 2018
3d67917
removed boost_root from eosio_build.sh
May 1, 2018
cdb01eb
darwin: added homebrew installing boost back into darwin build
May 1, 2018
9e080f8
Fix cleos unhandled exception on wallet connect failure
spoonincode May 1, 2018
35d401a
darwin: removed debugging ids when installing boost
May 2, 2018
01d26e9
Merge branch 'master' into eosio_build_darwin
May 2, 2018
8b038f0
amazon: modified eosio_build_amazon.sh for options and refactored eos…
May 2, 2018
a65d5db
Merge branch 'master' into eosio_build_option
May 2, 2018
64e7337
Centos: modified eosio_build_centos.sh to run with updated eosio_buil…
May 2, 2018
8a8d32f
Merge pull request #2683 from pacificcode/eosio_build_darwin
spoonincode May 2, 2018
51a31ff
darwin: fixed conflicts and merged master branch
May 2, 2018
1d2bf29
Merge branch 'eosio_build_option' of https://github.com/pacificcode/e…
May 2, 2018
19227c9
Merge pull request #2711 from pacificcode/eosio_build_option
heifner May 2, 2018
1934d3c
Attempt to fix some call() template ambiguity
spoonincode May 3, 2018
1326973
Update help_text.cpp
DenisCarriere May 4, 2018
71ddb46
Merge pull request #2765 from DenisCarriere/patch-1
spoonincode May 4, 2018
cfc8261
Merge branch 'master' into fix_wallet_http_exception
bytemaster May 5, 2018
c286954
Merge pull request #2689 from EOSIO/fix_wallet_http_exception
bytemaster May 5, 2018
28bd5f8
Update README.md
sjledet May 6, 2018
45fb921
Merge pull request #2796 from sjledet/patch-1
bytemaster May 6, 2018
c74572a
cleos: fix issue #2656 transactions error
May 6, 2018
f9c414b
Docker fixes
May 7, 2018
2ae6151
Merge pull request #2825 from EOSIO/docker-fixes
heifner May 7, 2018
0d88a8a
Merge branch 'master' into joelone/2018-05-06
bytemaster May 9, 2018
799924c
Merge pull request #2804 from Joelone/joelone/2018-05-06
bytemaster May 9, 2018
e664a07
darwin: added check for cmake cache file in eos/ doc root
May 9, 2018
1d24a77
Merge branch 'master' into eosio_build_darwin
May 9, 2018
f17c28c
Merge pull request #2879 from pacificcode/eosio_build_darwin
heifner May 9, 2018
c56ef1d
Change RAM requirement from 8GB to 7GB
May 10, 2018
d3ef04e
ubuntu: added extra error validation
May 10, 2018
4a561de
Merge branch 'master' into eosio_build_ubuntu
May 10, 2018
1459244
Merge pull request #2918 from EOSIO/doc-change
heifner May 10, 2018
5100a22
Merge pull request #2929 from pacificcode/eosio_build_ubuntu
heifner May 10, 2018
5b0a011
Changes to Docker buildere
May 10, 2018
66fb57f
Added StackExchange
May 10, 2018
df31fe3
Update cleos args for docker
May 11, 2018
3b10e76
Merge pull request #2935 from EOSIO/docker-changes
heifner May 11, 2018
716e752
Merge pull request #2948 from EOSIO/docker-readme
heifner May 11, 2018
fd0d720
Merge branch 'master' into slim
arhag May 11, 2018
a0abd49
Merge branch 'slim' into slim-master-merge
arhag May 11, 2018
a98e360
Merge remote-tracking branch 'origin/slim' into slim-master-merge
arhag May 11, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ set( CMAKE_CXX_STANDARD 14 )
set( CMAKE_CXX_EXTENSIONS ON )
set( CXX_STANDARD_REQUIRED ON)

set(VERSION_MAJOR 3)
set(VERSION_MAJOR 4)
set(VERSION_MINOR 0)
set(VERSION_PATCH 0)

Expand Down
46 changes: 36 additions & 10 deletions Docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ Simple and fast setup of EOS.IO on Docker is also available.

## Docker Requirement

- At least 8GB RAM (Docker -> Preferences -> Advanced -> Memory -> 8GB or above)
- At least 7GB RAM (Docker -> Preferences -> Advanced -> Memory -> 7GB or above)
- If the build below fails, make sure you've adjusted Docker Memory settings and try again.

## Build eos image

Expand Down Expand Up @@ -53,14 +54,14 @@ docker volume create --name=keosd-data-volume
docker-compose up -d
```

After `docker-compose up -d`, two services named `nodeosd` and `keosd` will be started. nodeos service would expose ports 8888 and 9876 to the host. keosd service does not expose any port to the host, it is only accessible to cleos when runing cleos is running inside the keosd container as described in "Execute cleos commands" section.
After `docker-compose up -d`, two services named `nodeosd` and `keosd` will be started. nodeos service would expose ports 8888 and 9876 to the host. keosd service does not expose any port to the host, it is only accessible to cleos when running cleos is running inside the keosd container as described in "Execute cleos commands" section.

### Execute cleos commands

You can run the `cleos` commands via a bash alias.

```bash
alias cleos='docker-compose exec keosd /opt/eosio/bin/cleos -H nodeosd'
alias cleos='docker-compose exec keosd /opt/eosio/bin/cleos -u http://nodeosd:8888'
cleos get info
cleos get account inita
```
Expand All @@ -77,6 +78,31 @@ If you don't need keosd afterwards, you can stop the keosd service using
docker-compose stop keosd
```

### Develop/Build custom contracts

Due to the fact that the eosio/eos image does not contain the required dependencies for contract development (this is by design, to keep the image size small), you will need to utilize eosio/builder. However, eosio/builder does not contain eosiocpp. As such, you will need to run eosio/builder interactively, and clone, build and install EOS. Once this is complete, you can then utilize eosiocpp to compile your contracts.

You can also create a Dockerfile that will do this for you.

```
FROM eosio/builder

RUN git clone -b master --depth 1 https://github.com/EOSIO/eos.git --recursive \
&& cd eos \
&& cmake -H. -B"/tmp/build" -GNinja -DCMAKE_BUILD_TYPE=Release -DWASM_ROOT=/opt/wasm -DCMAKE_CXX_COMPILER=clang++ \
-DCMAKE_C_COMPILER=clang -DSecp256k1_ROOT_DIR=/usr/local -DBUILD_MONGO_DB_PLUGIN=true \
&& cmake --build /tmp/build --target install && rm -rf /tmp/build /eos
```

Then, from the same directory as the Dockerfile, simply run:

```bash
docker build -t eosio/contracts .
docker run -it -v /path/to/custom/contracts:/contracts eosio/contracts /bin/bash
```

At this time you should be at a bash shell. You can navigate into the /contracts directory and use eosiocpp to compile your custom contracts.

### Change default configuration

You can use docker compose override file to change the default configurations. For example, create an alternate config file `config2.ini` and a `docker-compose.override.yml` with the following content.
Expand Down Expand Up @@ -143,15 +169,15 @@ volumes:

```

*NOTE:* the defalut version is the latest, you can change it to what you want
*NOTE:* the default version is the latest, you can change it to what you want

run `docker pull eosio/eos:latest`
run `docker pull eosio/eos:latest`

run `docker-compose up`

### Dawn3.0 Testnet
### Dawn 4.0 Testnet

We can easliy set up a dawn3.0 local testnet using docker images. Just run the following commands:
We can easily set up a Dawn 4.0 local testnet using docker images. Just run the following commands:

Note: if you want to use the mongo db plugin, you have to enable it in your `data-dir/config.ini` first.

Expand All @@ -164,17 +190,17 @@ docker volume create --name=nodeos-data-volume
docker volume create --name=keosd-data-volume
docker volume create --name=mongo-data-volume
# start containers
docker-compose -f docker-compose-dawn3.0.yaml up -d
docker-compose -f docker-compose-dawn4.0.yaml up -d
# get chain info
curl http://127.0.0.1:8888/v1/chain/get_info
# get logs
docker-compose logs nodeosd
# stop containers
docker-compose -f docker-compose-dawn3.0.yaml down
docker-compose -f docker-compose-dawn4.0.yaml down
```

The `blocks` data are stored under `--data-dir` by default, and the wallet files are stored under `--wallet-dir` by default, of course you can change these as you want.

### About MongoDB Plugin

Currently, the mongodb plugin is disabled in `config.ini` by default, you have to change it manually in `config.ini` or you can mount a `config.ini` file to `/opt/eosio/bin/data-dir/config.ini` in the docker-compose file.
Currently, the mongodb plugin is disabled in `config.ini` by default, you have to change it manually in `config.ini` or you can mount a `config.ini` file to `/opt/eosio/bin/data-dir/config.ini` in the docker-compose file.
6 changes: 0 additions & 6 deletions Docker/nodeosd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@ if [ -f '/opt/eosio/bin/data-dir/config.ini' ]; then
cp /config.ini /opt/eosio/bin/data-dir
fi

if [ -f '/opt/eosio/bin/data-dir/genesis.json' ]; then
echo
else
cp /genesis.json /opt/eosio/bin/data-dir
fi

if [ -d '/opt/eosio/bin/data-dir/contracts' ]; then
echo
else
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ EOSIO currently supports the following operating systems:
3. [EOSIO Blog](https://medium.com/eosio)
8. [EOSIO Documentation Wiki](https://github.com/EOSIO/eos/wiki)
2. [EOSIO API Documentation](https://eosio.github.io/eos/)
1. [EOSIO StackExchange for Q&A](https://eosio.stackexchange.com/)
4. [Community Telegram Group](https://t.me/EOSProject)
5. [Developer Telegram Group](https://t.me/joinchat/EaEnSUPktgfoI-XPfMYtcQ)
6. [White Paper](https://github.com/EOSIO/Documentation/blob/master/TechnicalWhitePaper.md)
Expand Down
Loading