forked from ethereum/web3.py
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add docker-compose for running sandbox environment
Using this “sandbox” you can run everything inside of docker without worrying about OS specific requirements.
- Loading branch information
1 parent
20752cc
commit d956bdf
Showing
3 changed files
with
59 additions
and
0 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,19 @@ | ||
FROM python:3.6 | ||
|
||
# Set up code directory | ||
RUN mkdir -p /usr/src/app | ||
WORKDIR /usr/src/app | ||
|
||
# Install Linux dependencies | ||
RUN apt-get update && apt-get install -y libssl-dev | ||
|
||
# Copy over requirements | ||
COPY setup.py . | ||
COPY README.md . | ||
COPY requirements-dev.txt . | ||
|
||
# Install python dependencies | ||
RUN pip install -r requirements-dev.txt | ||
RUN pip install -e . | ||
|
||
WORKDIR /code |
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,8 @@ | ||
version: '3' | ||
services: | ||
sandbox: | ||
build: | ||
context: . | ||
volumes: | ||
- .:/code | ||
command: tail -f /dev/null |