-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
44 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,42 @@ | ||
FROM continuumio/miniconda3 | ||
|
||
WORKDIR /app | ||
|
||
# Copy the repo | ||
COPY . . | ||
|
||
# Move to build | ||
WORKDIR /app/build | ||
|
||
# Install base requirements | ||
RUN apt-get update -y | ||
# RUN apt-get build-essential -y | ||
|
||
# Create new conda environment | ||
RUN conda create -n dhenv python=3.8 -y --quiet | ||
|
||
# Make RUN commands use the new environment: | ||
SHELL ["conda", "run", "-n", "dhenv", "/bin/bash", "-c"] | ||
|
||
# Install OpenMPI | ||
RUN conda install openmpi mpi4py -y | ||
RUN export OMPI_ALLOW_RUN_AS_ROOT=1 | ||
RUN export OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1 | ||
|
||
# Clone & Install DeepHyper/Scikit-Optimize (develop) | ||
RUN git clone https://github.com/deephyper/scikit-optimize.git deephyper-scikit-optimize | ||
RUN cd deephyper-scikit-optimize/ && git checkout c272896c4e3f75ebd3b09b092180f5ef5b12692e && cd .. | ||
RUN pip install -e deephyper-scikit-optimize/ | ||
|
||
# Clone & Install DeepHyper (develop) | ||
RUN git clone https://github.com/deephyper/deephyper.git | ||
RUN cd deephyper/ && git checkout b027148046d811e466c65cfc969bfdf85eeb7c49 && cd .. | ||
RUN pip install -e deephyper/ | ||
|
||
# Install Scalable-BO | ||
RUN pip install -e ../src/scalbo/ | ||
|
||
# activate 'dh' environment by default | ||
RUN echo "conda activate dhenv" >> ~/.bashrc | ||
|
||
WORKDIR /app |
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