Skip to content

Latest commit

 

History

History
62 lines (39 loc) · 2.03 KB

README.md

File metadata and controls

62 lines (39 loc) · 2.03 KB

jupyter-with-jenkins Binder

Jupyter with Jenkins to perform daily tasks easily

Design

Design

Getting started jupyter-with-jenkins with MyBinder

To launch jupyter-with-jenkins, simply click the binder button: Binder

After Jupyter Notebook is open, you can open the Jenkins UI from the jenkins menu.

jenkins button

Using Selenium

The notebook Using Selenium.ipynb shows you how to use Selenium from Jupyter Notebook.

Running notebook periodically

You can use papermill to let Jenkins execute your notebook.

# Move notebook directory
cd /home/jovyan/

# Execute notebook
papermill "Using Selenium.ipynb" "${WORKSPACE}/${BUILD_ID}.ipynb"

Deploy jupyter-with-jenkins to your environment

On Your Docker Engine

Create a working directory and perform the following:

$ cd (working directory)
$ docker run -d -p 8888:8888 -v $(pwd):/home/jovyan --name jupyter-with-jenkins yacchin1205/jupyter-with-jenkins

Once this is done, jupyter-with-jenkins will start working on port 8888. Open http://localhost:8888. When asked for a Token, use the docker logs to see the container's log.

$ docker logs jupyter-with-jenkins
...
    Or copy and paste one of these URLs:
        http://xxxxxxxxxxxx:8888/?token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
     or http://127.0.0.1:8888/?token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Enter the token string part of the above token=token string into the browser.

On Amazon Elastic Container Service

Jupyter Notebook Run Container on AWS ECS.ipynb provides a way to run jupyter-with-jenkins container on the AWS Elastic Container Service.

ECS