Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 14 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ FROM ubuntu:18.04

WORKDIR /auto-sklearn

# Copy the checkout autosklearn version for installation
ADD . /auto-sklearn/

# install linux packages
RUN apt-get update

Expand All @@ -17,19 +14,29 @@ ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8

# set environment variables to only use one core
RUN export OPENBLAS_NUM_THREADS=1
RUN export MKL_NUM_THREADS=1
RUN export BLAS_NUM_THREADS=1
RUN export OMP_NUM_THREADS=1

# install build requirements
RUN apt install -y python3-dev python3-pip
RUN pip3 install --upgrade setuptools
RUN apt-get install -y build-essential curl
RUN apt install -y build-essential

# https://github.com/automl/auto-sklearn/issues/314
RUN apt-get install -y swig3.0
RUN apt install -y swig3.0
RUN ln -s /usr/bin/swig3.0 /usr/bin/swig

# Copy the checkout autosklearn version for installation
ADD . /auto-sklearn/

# Upgrade pip then install dependencies
RUN pip3 install --upgrade pip
RUN pip3 install pytest==4.6.* pep8 codecov pytest-cov flake8 flaky openml
RUN curl https://raw.githubusercontent.com/automl/auto-sklearn/master/requirements.txt | xargs -n 1 -L 1 pip3 install
RUN cat /auto-sklearn/requirements.txt | xargs -n 1 -L 1 pip3 install
RUN pip3 install jupyter

# Install
RUN pip3 install -e /auto-sklearn/
RUN pip3 install /auto-sklearn/
13 changes: 8 additions & 5 deletions doc/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,14 @@ Possible other solutions (not tested):

Docker Image
=========================
A Docker image is also provided as a github package. The user must authenticate following the instructions from `GitHub Packages <https://help.github.com/en/packages/using-github-packages-with-your-projects-ecosystem/configuring-docker-for-use-with-github-packages>`_ . Then, the image can be downloaded as follows:
A Docker image is also provided on dockerhub. To download from dockerhub,
use:

.. code:: bash

docker pull docker.pkg.github.com/automl/auto-sklearn/auto-sklearn:latest
docker pull mfeurer/auto-sklearn:master

You can also verify that the images are downloaded via:
You can also verify that the image was downloaded via:

.. code:: bash

Expand All @@ -126,11 +127,13 @@ This image can be used to start an interactive session as follows:

.. code:: bash

docker run -it docker.pkg.github.com/automl/auto-sklearn/auto-sklearn:latest
docker run -it mfeurer/auto-sklearn:master

To start a Jupyter notebook, you could instead run e.g.:

.. code:: bash

docker run -it -v $PWD:/opt/nb -p 8888:8888 docker.pkg.github.com/automl/auto-sklearn/auto-sklearn:latest /bin/bash -c "mkdir -p /opt/nb && jupyter notebook --notebook-dir=/opt/nb --ip='0.0.0.0' --port=8888 --no-browser --allow-root"
docker run -it -v $PWD:/opt/nb -p 8888:8888 mfeurer/auto-sklearn:master /bin/bash -c "mkdir -p /opt/nb && jupyter notebook --notebook-dir=/opt/nb --ip='0.0.0.0' --port=8888 --no-browser --allow-root"

Alternatively, it is possible to use the development version of auto-sklearn by replacing all
occurences of ``master`` by ``development``.