Skip to content

Use docker to provision Featuretools with a Jupyter notebook server

License

Notifications You must be signed in to change notification settings

alteryx/featuretools-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

featuretools-docker

This is the source for a Featuretools docker image. It uses docker to provision Featuretools with a Jupyter notebook server. Details for Docker can be found on their website. For further details on Featuretools, check the website or the documentation.

Setup

  1. Install Docker on your system, following the instructions on the Docker website.
  2. Clone this repo. git clone https://github.com/featuretools/featuretools-docker
  3. Build the docker image docker build -t IMAGE_NAME PATH_TO_GIT_REPO

Launching a container

By default running this image starts a jupyter notebook server in the container listening on port 8888. This basic command starts the container, links port 8888 on the host machine to port 8888 on the container, and outputs server information to the console.

docker run -it -p 8888:8888 IMAGE_NAME

The -p argument publishes ports on the container to the host, with the format HOST_PORT:CONTAINER_PORT.

The default configuration uses a token-based authentication for accessing the server. If running from a terminal, you should see something like the following

Copy/paste this URL into your browser when you connect for the first time,
to login with a token:
    http://localhost:8888/?token=379197fcd7ea8b56bd23868d04c6f625eb09915122d85fdc

To detach from the container's terminal without halting the server, use ctrl+p+ctrl+q.

The notebook can also be configured to be password protected and use https. The container will generate self-signed ssl certificates if passed -e GEN_CERT=yes. Passing -e SET_PASSWORD=yes will make the container prompt the user for a password (via the terminal) the first time the container is launched. This password will be required to sign into the notebook server. An example command to start a notebook server with self-signed certificates and a user-defined password:

docker run -it -p 8888:8888 -e GEN_CERT=yes -e SET_PASSWORD=yes IMAGE_NAME

More configuration options

This docker image is based on a jupyter notebook image maintained by the Jupyter team. While the "What it Gives You" section of their github repository doesn't describe the python installation of this image, the Notebook Options, Docker Options, and SSL Certificates sections are very useful for configuring the notebook to your needs. The Jupyter Notebook documentation is also a good resource, with the configuration section and the security section being the most relevant.

Feature Labs

Featuretools

Featuretools is an open source project created by Feature Labs. To see the other open source projects we're working on visit Feature Labs Open Source. If building impactful data science pipelines is important to you or your business, please get in touch.

Contact

Any questions can be directed to help@featurelabs.com

About

Use docker to provision Featuretools with a Jupyter notebook server

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •