-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from snario/liam/containerize
Liam/containerize
- Loading branch information
Showing
10 changed files
with
78 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
__pycache__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
keys/vk.json | ||
__pycache__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
FROM ubuntu:18.04 | ||
|
||
RUN apt-get update && \ | ||
apt-get install software-properties-common -y && \ | ||
add-apt-repository ppa:ethereum/ethereum -y && \ | ||
apt-get update && \ | ||
apt-get install -y \ | ||
wget unzip curl \ | ||
build-essential cmake git libgmp3-dev libprocps-dev python-markdown libboost-all-dev libssl-dev pkg-config python3-pip solc | ||
|
||
WORKDIR /root/roll_up | ||
|
||
COPY . . | ||
|
||
RUN pip3 install -r requirements.txt | ||
|
||
RUN cd build \ | ||
&& cmake .. \ | ||
&& make \ | ||
&& DESTDIR=/usr/local make install \ | ||
NO_PROCPS=1 \ | ||
NO_GTEST=1 \ | ||
NO_DOCS=1 \ | ||
CURVE=ALT_BN128 \ | ||
FEATUREFLAGS="-DBINARY_OUTPUT=1 -DMONTGOMERY_OUTPUT=1 -DNO_PT_COMPRESSION=1" | ||
|
||
ENV LD_LIBRARY_PATH $LD_LIBRARY_PATH:/usr/local/lib |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
version: "3" | ||
|
||
services: | ||
|
||
testrpc: | ||
image: trufflesuite/ganache-cli:v6.1.8 | ||
ports: | ||
- 8545 | ||
networks: | ||
- blockchain | ||
|
||
test: | ||
build: . | ||
working_dir: /root/roll_up/tests | ||
command: python3 test.py testrpc | ||
depends_on: | ||
- testrpc | ||
networks: | ||
- blockchain | ||
volumes: | ||
- ./tests:/root/roll_up/tests | ||
- ./pythonWrapper:/root/roll_up/pythonWrapper | ||
- ./keys:/root/roll_up/keys | ||
- ./contracts/contract_deploy.py:/root/roll_up/contracts/contract_deploy.py | ||
|
||
networks: | ||
blockchain: |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
web3==4.6.0 | ||
py-solc==3.1.0 | ||
bitstring==3.1.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters