GithubHelp home page GithubHelp logo

chusiang / ansible-jupyter.dockerfile Goto Github PK

View Code? Open in Web Editor NEW
25.0 4.0 8.0 192 KB

Building the Docker image with Ansible and Jupyter.

Home Page: https://hub.docker.com/r/chusiang/ansible-jupyter/

License: MIT License

Jupyter Notebook 90.25% Shell 1.93% Makefile 0.23% Python 3.44% Dockerfile 4.14%
ansible jupyter-notebook docker dockerfile jupyter dockerhub-image dockerhub

ansible-jupyter.dockerfile's Introduction

Docker image: Ansible on Jupyter Notebook

Docker Hub microbadger

A Docker image for run Ansible 2.x on Jupyter Notebook 4.x (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/<IMAGE_TAG>/
    
  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
    

    2016-11-20-ansible-jupyter1

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

    2016-11-20-ansible-jupyter2

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

You can see more detail at 怎麼用 Jupyter 操控 Ansible?(localhost) | 現代 IT 人一定要知道的 Ansible 自動化組態技巧 .

Enjoy it !

History

2020

  • 12/12 Fixed Python 3 dependency problem on Alpine Linux v3.12, and stop support some EOL images.

2018

  • 07/11 Add new images of alpine-3.8. Stop automated build image of alpine-3.4, alpine-3.6 and opensuse-42.2.
  • 06/18 Add new images of alpine-3.7, ubuntu-18.04. Stop automated build image of ubuntu-14.04.
  • 01/10 Stop automated build images of centos-6, debian-7 and alpine-3.4_ansible-2.1.

2017

  • ??/?? Stop automated build images of gentoo, opensuse-42.1 and alpine-3.4.

License

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.