EOS Developing: Right way to building from docker
This tutorial is base on dawn-2.x
Why ? Because dawn-2.x is the most stable version, it wouldn't change frequently.
Why this tutorial? Because the official repo or document has some mistakes that caused by out-of-date document updating.
First, pull down the git repo
git clone -b dawn-2.x --depth 1 https://github.com/EOSIO/eos.git --recursive
Change Dockerfile
cd eos/Docker
cp Dockerfile Dockerfile.bak
vim Dockerfile
To simply build a correct image
Just replace text start from line 75 with below:
RUN git clone -b dawn-2.x --depth 1 https://github.com/EOSIO/eos.git --recursive \
&& cd eos \
&& cmake -H. -B"/tmp/build" -GNinja -DCMAKE_BUILD_TYPE=Release -DWASM_LLVM_CONFIG=/opt/wasm/bin/llvm-config -DCMAKE_CXX_COMPILER=clang++ \
-DCMAKE_C_COMPILER=clang -DCMAKE_INSTALL_PREFIX=/opt/eos -DSecp256k1_ROOT_DIR=/usr/local \
&& cmake --build /tmp/build --target install
FROM ubuntu:16.04
LABEL author="Xiaobo Tian <peterwillcn@gmail.com>" \
maintainer="Huang-Ming Huang <huangh@objectcomputing.com>" \
version="0.2.1" \
description="This is an eosio/eos image"
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -y install openssl && rm -rf /var/lib/apt/lists/*
COPY --from=builder /usr/local/lib/* /usr/local/lib/
COPY --from=builder /tmp/build/install/bin /opt/eos/bin
COPY --from=builder /tmp/build/contracts /contracts
COPY --from=builder /eos/Docker/config.ini /eos/genesis.json /
COPY start_eosd.sh /opt/eos/bin/start_eosd.sh
RUN chmod +x /opt/eos/bin/start_eosd.sh
ENV LD_LIBRARY_PATH /usr/local/lib
VOLUME /opt/eos/bin/data-dir
ENV PATH /opt/eos/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
Or download the entire file from here: learn_eos/correct.Dockerfile at master · panyanyany/learn_eos · GitHub
** remember to override the Dockerfile
To build a powerful image which could compile contracts
Replace text start from line 75 with below:
RUN git clone -b dawn-2.x --depth 1 https://github.com/EOSIO/eos.git --recursive \
&& cd eos \
&& cmake -H. -B"/tmp/build" -GNinja -DCMAKE_BUILD_TYPE=Release -DWASM_LLVM_CONFIG=/opt/wasm/bin/llvm-config -DCMAKE_CXX_COMPILER=clang++ \
-DCMAKE_C_COMPILER=clang -DCMAKE_INSTALL_PREFIX=/opt/eos -DSecp256k1_ROOT_DIR=/usr/local \
&& cmake --build /tmp/build --target install
# FROM ubuntu:16.04
LABEL author="Xiaobo Tian <peterwillcn@gmail.com>" \
maintainer="Huang-Ming Huang <huangh@objectcomputing.com>" \
version="0.2.1" \
description="This is an eosio/eos image"
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -y install openssl && rm -rf /var/lib/apt/lists/*
RUN apt-get update && apt-get install -y vim
RUN mkdir -p /opt/eos/bin && \
cp -rp /tmp/build/install/bin /opt/eos && \
cp -rp /tmp/build/contracts /contracts && \
cp -rp /eos/Docker/config.ini / && \
cp -rp /eos/genesis.json /
COPY start_eosd.sh /opt/eos/bin/start_eosd.sh
RUN chmod +x /opt/eos/bin/start_eosd.sh
RUN sed -i.bak 's/-I $filePath/-I $filePath -I $filePath\/../g' /opt/eos/bin/eoscpp
ENV LD_LIBRARY_PATH /usr/local/lib
VOLUME /opt/eos/bin/data-dir
ENV PATH /opt/eos/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
Or download the entire file from here: https://github.com/panyanyany/learn_eos/blob/master/dawn-2.x/Docker/full.Dockerfile
** remember to override the Dockerfile
Build docker image
docker build . -t eosio/eos-dawn-2.x-fullfix
Run as docker services
Override origin docker-compose.yml with learn_eos/docker-compose.yml at master · panyanyany/learn_eos · GitHub
Then open 2 terminal windows.
To set up docker services:
### In terminal #1
cd eos/Docker
docker-compose up
To check whether eosc
command works:
### In terminal #2
cd eos/Docker
alias eosc='docker-compose exec walletd eosc -H eosd'
eosc get info
Sample Result:
{
"server_version": "8746d320",
"head_block_num": 9,
"last_irreversible_block_num": 0,
"head_block_id": "00000009eb010cefe6d3853465a0f1fdcc24d1c03a00794f4183b1a3d279990e",
"head_block_time": "2018-02-13T04:25:20",
"head_block_producer": "initj",
"recent_slots": "1111111111111111111111111111111111111111111111111111111111111111",
"participation_rate": "1.00000000000000000"
}
To check whether wallet available:
### In terminal #2
eosc wallet create
Sample Result:
Creating wallet: default
Save password to use in the future to unlock this wallet.
Without password imported keys will not be retrievable.
"<--- This is your wallet password --->"
Now you are able to follow official’s tutorials which is Tutorials · EOSIO/eos Wiki · GitHub to create accounts and import wallets.
Greetings my friend!
I am glad that our community has increased with one more member!
I hope that you will find here a way to realize yourself, and to benefit others
Be yourself, be sincere, be honest and worthy of the place you are in.
I Upvoted your post and Resteem of your greeting in my feed, where you you can search friends and other minnows...
I think you can use this collected information:
First off all! Most answers to your questions you can find here https://www.steemithelp.net/
Blockchain Explorer https://steemd.com/@_Your_Steemit_Nickname
Blockchain Explorer and statistics https://steemdb.com/@Your_Steemit_Nickname
Your account achievements https://steemitboard.com
Navigate the prices and exchanges where you can buy Steem or sell SBD
Steem
SBD
For the your first post use please #introduceyourself tag! Thank you:)
You can become a participant in the competitions, by selecting the desired in the tag #contest or invent and organize your own.
More useful tips and steemit app you can find in #steemit & #steem tag
There is a Steemit chat with various rooms, in which you can ask questions, advice, or place your post to advertise it to the community https://steemit.chat
Upvote chat in the telegram massager:
https://t.me/steem https://t.me/intercambiosteemit https://t.me/Steemplus
Similarly, by reading the posts of other Steemians you can find invitations to the Discord channels! They often contain upvote chats, and you can easily find friends of interest in them
Here are some of them:
World Of Photography https://discord.gg/4Ezx2eM
MinnowBOOSTER https://discord.gg/k7fWQD7
SteemSports https://discord.gg/ApvKKUF
WhaleShares https://discord.gg/DX7zErC
Steem Gigs https://discord.gg/NuFVxKA
SteemTrail https://discord.gg/gHt2aGN
Minnow-Power channel https://discord.gg/WvFQzXu notify
Steemit Lover https://discord.gg/EVKhssF
GuideSteemit https://discord.gg/nkwh36Y
BuildAWhale https://discord.gg/yebax27
Steemit ramble https://discord.gg/9pUSjv8
VotoVZLA https://discord.gg/VhgeFJQ
Steem Life https://discord.gg/SD3ReMm
SteemLab https://discord.gg/phWQveU
MinnowsUnite https://discord.gg/CJEEfgb
Steemians https://discord.gg/uR95R7t
Society for Narwhal https://discord.gg/repxc9v
Territorial communities
Steemit Philippines https://discord.gg/VyG83AN | https://discord.gg/Q8956PF Steem NIGERIA https://discord.gg/Y3u2z6T East Coast Steem https://discord.gg/QXduBuk Ukraine SteemOn https://discord.gg/cxq8JQd Ru-Steem Trail https://discord.gg/8KyDBUx
Let us know if you know more or create new!
Alternative interfaces:
https://zappl.com https://busy.org https://steepshot.io (-mobile app have to) Forums https://chainbb.com
Mobile app - eSteem :
for Android https://play.google.com/store/apps/details?id=com.netsolutions.esteem&hl=ru for iOS https://itunes.apple.com/us/app/esteem-mobile/id1141397898?mt=8
Forget about youtube! There is https://d.tube!
Have fun and joke yourself with https://dmania.lol/
Rewarding Open Source Contributors
https://utopian.io | https://discord.gg/kPYBCYKA public SQL database with all blockchain data http://steemsql.com https://sql.steemhelpers.com From Developers https://steemconnect.com
Autocuration
Autocuration
Bot Tracker1 https://steemvoter.com2 https://streemian.com/profile/curationtrail/trailing/943 https://s3.amazonaws.com/yabapmatt/bottracker/bottracker.html#paid
Use @minnowbooster for boost your rewards! More https://www.minnowbooster.net
You also need to select witnesses and vote for them. These are people who ensure decentralization of the work of the blockchain. Make your choice consciously, by choosing responsible and useful delegates
https://steemit.com/~witnesses
Golos wait for you too! Find more here about Golos.io blockchain platform - analogue Steemit! This is Steemit,s younger brother! Join us: https://golos.io/create_account
Regarding the correction, insertion or deletion of your information, please contact @Dimarss