{"id":18676939,"url":"https://github.com/chusiang/ansible-jupyter.dockerfile","last_synced_at":"2025-04-12T02:25:16.904Z","repository":{"id":142952043,"uuid":"74273904","full_name":"chusiang/ansible-jupyter.dockerfile","owner":"chusiang","description":"Building the Docker image with Ansible and Jupyter.","archived":false,"fork":false,"pushed_at":"2020-12-11T18:19:21.000Z","size":192,"stargazers_count":25,"open_issues_count":5,"forks_count":8,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-12T02:25:08.022Z","etag":null,"topics":["ansible","docker","dockerfile","dockerhub","dockerhub-image","jupyter","jupyter-notebook"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/chusiang/ansible-jupyter/","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chusiang.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-11-20T12:53:53.000Z","updated_at":"2023-03-23T14:10:48.000Z","dependencies_parsed_at":"2023-06-25T19:53:22.620Z","dependency_job_id":null,"html_url":"https://github.com/chusiang/ansible-jupyter.dockerfile","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chusiang%2Fansible-jupyter.dockerfile","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chusiang%2Fansible-jupyter.dockerfile/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chusiang%2Fansible-jupyter.dockerfile/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chusiang%2Fansible-jupyter.dockerfile/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chusiang","download_url":"https://codeload.github.com/chusiang/ansible-jupyter.dockerfile/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248506336,"owners_count":21115419,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible","docker","dockerfile","dockerhub","dockerhub-image","jupyter","jupyter-notebook"],"created_at":"2024-11-07T09:31:50.057Z","updated_at":"2025-04-12T02:25:16.891Z","avatar_url":"https://github.com/chusiang.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker image: Ansible on Jupyter Notebook\n\n[![Docker Hub](https://img.shields.io/badge/docker-ansible--jupyter-blue.svg)](https://hub.docker.com/r/chusiang/ansible-jupyter/) [![microbadger](https://images.microbadger.com/badges/image/chusiang/ansible-jupyter.svg)](https://microbadger.com/images/chusiang/ansible-jupyter \"Get your own image badge on microbadger.com\")\n\nA Docker image for run [Ansible][ansible_official] 2.x on [Jupyter Notebook][jupyter_official] 4.x (ipython notebook) with Browsers.\n\n[ansible_official]: https://www.ansible.com/\n[jupyter_official]: http://jupyter.org/\n\n## Supported tags and respective `Dockerfile` links\n\n- `alpine-3`, `latest` [*(alpine-3/Dockerfile)*][dockerfile_alpine-3]\n- `archlinux` [*(archlinux/Dockerfile)*][dockerfile_archlinux]\n- `centos-7` [*(centos-7/Dockerfile)*][dockerfile_centos-7]\n- `debian-9` [*(debian-9/Dockerfile)*][dockerfile_debian-9]\n- ~~`gentoo`~~ [*(gentoo/Dockerfile)*][dockerfile_gentoo]\n- `opensuse-42.3` [*(opensuse-42.3/Dockerfile)*][dockerfile_opensuse-42.3]\n- `ubuntu-18.04` [*(ubuntu-18.04/Dockerfile)*][dockerfile_ubuntu-18.04]\n\n[dockerfile_alpine-3]:      https://github.com/chusiang/ansible-jupyter.dockerfile/blob/master/alpine-3/Dockerfile\n[dockerfile_archlinux]:     https://github.com/chusiang/ansible-jupyter.dockerfile/blob/master/archlinux/Dockerfile\n[dockerfile_centos-7]:      https://github.com/chusiang/ansible-jupyter.dockerfile/blob/master/centos-7/Dockerfile\n[dockerfile_debian-9]:      https://github.com/chusiang/ansible-jupyter.dockerfile/blob/master/debian-9/Dockerfile\n[dockerfile_gentoo]:        https://github.com/chusiang/ansible-jupyter.dockerfile/blob/master/gentoo/Dockerfile\n[dockerfile_opensuse-42.3]: https://github.com/chusiang/ansible-jupyter.dockerfile/blob/master/opensuse-42.3/Dockerfile\n[dockerfile_ubuntu-18.04]:  https://github.com/chusiang/ansible-jupyter.dockerfile/blob/master/ubuntu-18.04/Dockerfile\n\n## Build image\n\n1. Get this project.\n\n    ```\n    $ git clone https://github.com/chusiang/ansible-jupyter.dockerfile.git\n    ```\n\n1. Go to workspace.\n\n    ```\n    $ cd ansible-jupyter.dockerfile/\u003cIMAGE_TAG\u003e/\n    ```\n\n1. Bunild the image.\n\n    ```\n    $ docker build -t chusiang/ansible-jupyter .\n    ```\n\n## Run container\n\n1. Get image.\n\n    ```\n    $ docker pull chusiang/ansible-jupyter\n    ```\n\n1. Run the container with daemon mode.\n\n    ```\n    $ docker run --name ansible-jupyter -P -d chusiang/ansible-jupyter\n    be8a15b9d4da5d24610c1fc738cb13086f01101e90f94640360d8d84892de772\n    ```\n\n1. Check container process.\n\n    ```\n    $ docker ps\n    CONTAINER ID        IMAGE                      COMMAND                  CREATED             STATUS              PORTS                     NAMES\n    be8a15b9d4da        chusiang/ansible-jupyter   \"docker-entrypoint.sh\"   12 seconds ago      Up 11 seconds       0.0.0.0:32808-\u003e8888/tcp   ansible-jupyter\n    ```\n\n1. Enter container with command line.\n\n    ```\n    $ docker exec -it ansible-jupyter sh\n    / #\n    ```\n\n## Play Ansible on Jupyter\n\nNow, you can play the Ansible on Jupyter.\n\n1. Go jupyter web.\n\n    ```\n    # GNU/Linux\n    $ firefox http://localhost:32786\n\n    # macOS\n    $ open http://localhost:32786\n    ```\n\n    ![2016-11-20-ansible-jupyter1]\n\n1. Attach my example ==\u003e [`ansible_on_jupyter.ipynb`][ansible_on_jupyter.ipynb].\n\n    ![2016-11-20-ansible-jupyter2]\n\n1. Remember use the `!` prefix to trigger system command.\n\nYou can see more detail at [怎麼用 Jupyter 操控 Ansible？(localhost) | 現代 IT 人一定要知道的 Ansible 自動化組態技巧](https://chusiang.gitbooks.io/automate-with-ansible/07.how-to-practive-the-ansible-with-jupyter1.html) .\n\nEnjoy it !\n\n[ansible_on_jupyter.ipynb]: https://github.com/chusiang/ansible-jupyter.dockerfile/blob/master/ipynb/ansible_on_jupyter.ipynb\n[2016-11-20-ansible-jupyter1]: https://cloud.githubusercontent.com/assets/219066/20463322/218f0c4a-af6b-11e6-9a95-2411ec7acb5f.png\n[2016-11-20-ansible-jupyter2]: https://cloud.githubusercontent.com/assets/219066/20463319/fa8c047c-af6a-11e6-96d6-f985096c9c8c.png\n\n## History\n\n### 2020\n\n* 12/12 Fixed Python 3 dependency problem on Alpine Linux v3.12, and stop support some EOL images.\n\n### 2018\n\n* 07/11 Add new images of `alpine-3.8`. Stop automated build image of `alpine-3.4`, `alpine-3.6` and `opensuse-42.2`.\n* 06/18 Add new images of `alpine-3.7`, `ubuntu-18.04`. Stop automated build image of `ubuntu-14.04`.\n* 01/10 Stop automated build images of `centos-6`, `debian-7` and `alpine-3.4_ansible-2.1`.\n\n### 2017\n\n* ??/?? Stop automated build images of `gentoo`, `opensuse-42.1` and `alpine-3.4`.\n\n## License\n\nCopyright (c) chusiang from 2016-2020 under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchusiang%2Fansible-jupyter.dockerfile","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchusiang%2Fansible-jupyter.dockerfile","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchusiang%2Fansible-jupyter.dockerfile/lists"}