Last active
September 23, 2021 20:46
-
-
Save syurkevi/15d5ddee69909806368974c4d66d95c4 to your computer and use it in GitHub Desktop.
Alpha D3M + ArrayFire Dockerfile
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
FROM registry.gitlab.com/datadrivendiscovery/images/primitives:ubuntu-bionic-python36-master | |
MAINTAINER "remi.rampin@nyu.edu, raoni@nyu.edu, rlopez@nyu.edu" | |
RUN apt-get update -yy && \ | |
apt-get install -yy git swig sqlite3 && \ | |
apt-get clean | |
WORKDIR /usr/src/app | |
# Install requirements | |
COPY requirements.txt /usr/src/app/requirements.txt | |
RUN pip3 freeze | sort >prev_reqs.txt && \ | |
pip3 install Cython==0.29.16 && \ | |
pip3 install -r requirements.txt && \ | |
pip3 freeze | sort >new_reqs.txt && \ | |
comm -23 prev_reqs.txt new_reqs.txt | while read i; do echo "Removed package $i" >&2; exit 1; done && \ | |
rm prev_reqs.txt new_reqs.txt | |
# Install alphaautoml | |
COPY alphaautoml /usr/src/app/alphaautoml | |
RUN pip3 freeze | sort >prev_reqs.txt && \ | |
pip3 install -e /usr/src/app/alphaautoml && \ | |
pip3 freeze | sort >new_reqs.txt && \ | |
comm -23 prev_reqs.txt new_reqs.txt | while read i; do echo "Removed package $i" >&2; exit 1; done && \ | |
rm prev_reqs.txt new_reqs.txt | |
# Install TA2 | |
COPY alphad3m /usr/src/app/alphad3m | |
COPY resource /usr/src/app/resource | |
COPY setup.py README.md /usr/src/app/ | |
RUN pip3 freeze | sort >prev_reqs.txt && \ | |
pip3 install -e /usr/src/app && \ | |
pip3 freeze | sort >new_reqs.txt && \ | |
comm -23 prev_reqs.txt new_reqs.txt | while read i; do echo "Removed package $i" >&2; exit 1; done && \ | |
rm prev_reqs.txt new_reqs.txt | |
RUN pip3 install d3m-automl-rpc==1.0.0 | |
RUN pip3 install nltk==3.4.5 | |
RUN pip3 install datamart-profiler==0.9 | |
RUN pip3 install datamart-materialize==0.6.1 | |
RUN pip3 install arrayfire==3.8.0+cu102 -f https://repo.arrayfire.com/python/wheels/3.8.0/ | |
RUN pip3 install git+https://github.com/arrayfire/af-sklearn-monkeypatch && \ | |
pip3 install git+https://github.com/syurkevi/autowrapt.git | |
ENV AUTOWRAPT_BOOTSTRAP=afsklearn | |
COPY eval.sh /usr/local/bin/eval.sh | |
ARG VERSION | |
ARG GIT_COMMIT | |
LABEL version=$VERSION \ | |
commit=$GIT_COMMIT | |
CMD "/usr/local/bin/eval.sh" | |
EXPOSE 45042 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment