Skip to content
This repository has been archived by the owner on Oct 28, 2021. It is now read-only.

Commit

Permalink
Initial Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
chulsupark committed Apr 30, 2014
1 parent 47572e8 commit 6b2827b
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
20 changes: 20 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
FROM ubuntu:14.04

ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update
RUN apt-get upgrade -y

RUN apt-get install -qy wget
RUN apt-get install -qy build-essential g++-4.8 automake libtool unzip git cmake
RUN apt-get install -qy libncurses5-dev libgmp-dev libgmp3-dev libboost-all-dev libleveldb-dev yasm libminiupnpc-dev
RUN apt-get install -qy qtbase5-dev qt5-default qtdeclarative5-dev libqt5webkit5-dev

RUN mkdir /cryptopp562
RUN cd /cryptopp562 && wget http://www.cryptopp.com/cryptopp562.zip && unzip cryptopp562.zip
RUN cd /cryptopp562 && make -j $(cat /proc/cpuinfo | grep processor | wc -l) && make install

RUN git clone --depth=1 https://github.com/ethereum/cpp-ethereum
RUN mkdir cpp-ethereum/build
RUN cd cpp-ethereum/build && cmake .. -DCMAKE_BUILD_TYPE=Release && make -j $(cat /proc/cpuinfo | grep processor | wc -l) && make install

ENTRYPOINT ["/usr/local/bin/eth"]
17 changes: 17 additions & 0 deletions docker/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Dockerfile for cpp-ethereum
Dockerfile to build a bleeding edge cpp-ethereum docker image from source

docker build -t cppeth < Dockerfile

Run a simple peer server

docker run -i cppeth -m off -o peer -x 256

GUI is compiled but not exposed. You can mount /cpp-ethereum/build to access binaries:

cid = $(docker run -i -v /cpp-ethereum/build cppeth -m off -o peer -x 256)
docker inspect $cid # <-- Find volume path in JSON output

You may also modify the Docker image to run the GUI and expose a
ssh/VNC server in order to tunnel an X11 or VNC session.

3 comments on commit 6b2827b

@EthereumBuilder
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TeamCity Ethereum :: Cpp Ethereum Build 354 is now running

@EthereumBuilder
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TeamCity Ethereum :: Cpp Ethereum Build 354 outcome was SUCCESS
Summary: Running Build time: 0:11:31

@bobsummerwill
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @chulsupark!
Please could you let me know your name and an e-mail address for you?

It is in relation to this cpp-ethereum re-licensing effort!

You contributed this Dockerfile :-) Thanks!

ethereum/webthree-umbrella#530

Please sign in to comment.