-
Notifications
You must be signed in to change notification settings - Fork 32
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 #928 from hdoupe/local-dockerfile
Merged #928
- Loading branch information
Showing
4 changed files
with
62 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
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,37 @@ | ||
FROM continuumio/miniconda3 | ||
USER root | ||
RUN apt-get update && apt install libgl1-mesa-glx --yes | ||
|
||
RUN mkdir /home/distributed | ||
RUN mkdir /home/distributed/api | ||
|
||
COPY requirements.txt home/distributed | ||
|
||
WORKDIR /home/distributed/api | ||
|
||
RUN conda config --append channels conda-forge | ||
|
||
# not safe. don't publish with token | ||
# see conversations like: https://github.com/moby/moby/issues/33343 | ||
ARG PUF_TOKEN | ||
RUN if [ -z ${PUF_TOKEN+x} ]; \ | ||
then echo PUF token not specified; \ | ||
else echo getting and writing PUF file && \ | ||
conda install taxpuf -c https://conda.anaconda.org/t/$PUF_TOKEN/opensourcepolicycenter && \ | ||
write-latest-taxpuf; \ | ||
gunzip -k puf.csv.gz; \ | ||
fi | ||
|
||
WORKDIR /home/distributed | ||
|
||
RUN conda install numpy>=1.12.1 pandas>=0.23.0 \ | ||
matplotlib numba six bokeh>=0.12.7 mock xlrd \ | ||
sphinx nomkl | ||
RUN pip install -r requirements.txt | ||
|
||
COPY script.sh /home/distributed | ||
COPY ./Tax-Calculator /home/distributed/Tax-Calculator/ | ||
COPY ./B-Tax /home/distributed/B-Tax/ | ||
RUN bash script.sh | ||
|
||
WORKDIR /home/distributed/api |
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,7 @@ | ||
cd Tax-Calculator | ||
pip install -e . | ||
cd .. | ||
|
||
cd B-Tax | ||
pip install -e . | ||
cd .. |