Public | Automated Build

Last pushed: 6 days ago
Short Description
Run Ansible 2.3 on Jupyter Notebook 4.3 (ipython notebook).
Full Description

Docker image: Ansible on Jupyter Notebook

A Docker image for run Ansible 2.3 on Jupyter Notebook 4.3 (ipython notebook) with Browsers.

Supported tags and respective Dockerfile links

Build image

  1. Get this project.

     $ git clone https://github.com/chusiang/ansible-jupyter.dockerfile.git
    
  2. Go to workspace.

     $ cd ansible-jupyter.dockerfile/
    
  3. Bunild the image.

     $ docker build -t chusiang/ansible-jupyter .
    

Run container

  1. Get image.

     $ docker pull chusiang/ansible-jupyter
    
  2. Run the container with daemon mode.

     $ docker run --name ansible-jupyter -P -d chusiang/ansible-jupyter
     be8a15b9d4da5d24610c1fc738cb13086f01101e90f94640360d8d84892de772
    
  3. Check container process.

     $ docker ps
     CONTAINER ID        IMAGE                      COMMAND                  CREATED             STATUS              PORTS                     NAMES
     be8a15b9d4da        chusiang/ansible-jupyter   "docker-entrypoint.sh"   12 seconds ago      Up 11 seconds       0.0.0.0:32808->8888/tcp   ansible-jupyter
    
  4. Enter container with command line.

     $ docker exec -it ansible-jupyter sh
     / #
    

Play Ansible on Jupyter

Now, you can play the Ansible on Jupyter.

  1. Go jupyter web.

     # GNU/Linux
     $ firefox http://localhost:32786
    
     # macOS
     $ open http://localhost:32786
    

  1. Attach my example ==> ansible_on_jupyter.ipynb.

  1. Remember use the ! prefix to trigger system command.

Enjoy it !

License

Copyright (c) chusiang from 2016-2017 under the MIT license.

Docker Pull Command
Owner
chusiang

Comments (2)
chusiang
3 months ago

I add the --allow-root args for run jupyter-notebook by root on Jypyter 4.3.0, you can see more information at https://github.com/chusiang/ansible-jupyter.dockerfile/issues/10 .

chusiang
7 months ago

I disable the login authentication on jupyter 4.2.1, you can see the https://github.com/chusiang/ansible-jupyter.dockerfile/issues/6 .