-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
66 lines (53 loc) · 1.87 KB
/
Dockerfile
File metadata and controls
66 lines (53 loc) · 1.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
FROM ubuntu:17.04
MAINTAINER Sami Mäkelä
RUN apt-get update && \
apt-get install -y wget ocaml opam libzarith-ocaml-dev m4 pkg-config zlib1g-dev apache2 psmisc sudo && \
opam init -y
RUN apt-get install -y curl && \
curl -sL https://deb.nodesource.com/setup_8.x | bash - && \
apt-get install -y nodejs && \
npm install -g ethereumjs-testrpc && \
cd bin && \
wget https://github.com/ethereum/solidity/releases/download/v0.4.18/solc-static-linux && \
mv solc-static-linux solc && \
chmod 744 solc
RUN wget https://dist.ipfs.io/go-ipfs/v0.4.11/go-ipfs_v0.4.11_linux-amd64.tar.gz && \
tar xf go-ipfs_v0.4.11_linux-amd64.tar.gz && \
cd go-ipfs && \
./install.sh && \
ipfs init
RUN eval `opam config env` && \
opam install cryptokit yojson -y
RUN wget -O getparity.sh https://get.parity.io && \
bash getparity.sh -r stable && \
(parity --chain dev &) && \
sleep 10 && \
killall parity
#RUN git clone https://github.com/TrueBitFoundation/ocaml-offchain webasm && \
# cd webasm/interpreter && \
# eval `opam config env` && \
# make && \
# ./wasm -m ../test/core/fac.wast
RUN git clone https://github.com/mrsmkl/webasm-solidity && \
cd webasm-solidity && \
git submodule init && \
git submodule update && \
cd ocaml-offchain/interpreter && \
eval `opam config env` && \
make && \
cd ../../node && \
npm install && \
cd .. && \
./compile.sh
# ENV PATH="${PATH}:/node-v6.11.3-linux-x64/bin"
RUN wget https://gethstore.blob.core.windows.net/builds/geth-linux-amd64-1.7.2-1db4ecdc.tar.gz && \
tar xf geth-linux-amd64-1.7.2-1db4ecdc.tar.gz && \
cp geth-linux-amd64-1.7.2-1db4ecdc/geth /bin/geth
RUN cd webasm-solidity && \
git pull && \
chmod 755 kovan.sh dev.sh rinkeby.sh && \
cd node && \
cp app.html /var/www/html/index.html && \
cp socketio.js /var/www/html/
EXPOSE 80 22448 4001
# ENTRYPOINT cd webasm-solidity && sh rinkeby.sh