Skip to content

Commit

Permalink
Add 'alpine-3.8' image
Browse files Browse the repository at this point in the history
  • Loading branch information
chusiang committed Jul 11, 2018
1 parent d380ddb commit 9d086af
Show file tree
Hide file tree
Showing 9 changed files with 204 additions and 5 deletions.
13 changes: 8 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@ A Docker image for run [Ansible][ansible_official] 2.5 on [Jupyter Notebook][jup

## Supported tags and respective `Dockerfile` links

- `alpine-3.4` [*(alpine-3.4/Dockerfile)*][dockerfile_alpine-3.4]
- ~~`alpine-3.4`~~ [*(alpine-3.4/Dockerfile)*][dockerfile_alpine-3.4]
- ~~`alpine-3.4_ansible-2.1`~~ [*(alpine-3.4_ansible-2.1/Dockerfile)*][dockerfile_alpine-3.4_ansible-2.1]
- `alpine-3.6` [*(alpine-3.6/Dockerfile)*][dockerfile_alpine-3.6]
- `alpine-3.6_ansible-2.3` [*(alpine-3.6_ansible-2.3/Dockerfile)*][dockerfile_alpine-3.6_ansible-2.3]
- `alpine-3.7`, `latest` [*(alpine-3.7/Dockerfile)*][dockerfile_alpine-3.7]
- ~~`alpine-3.6`~~ [*(alpine-3.6/Dockerfile)*][dockerfile_alpine-3.6]
- ~~`alpine-3.6_ansible-2.3`~~ [*(alpine-3.6_ansible-2.3/Dockerfile)*][dockerfile_alpine-3.6_ansible-2.3]
- `alpine-3.7` [*(alpine-3.7/Dockerfile)*][dockerfile_alpine-3.7]
- `alpine-3.8`, `latest` [*(alpine-3.8/Dockerfile)*][dockerfile_alpine-3.8]
- `archlinux` [*(archlinux/Dockerfile)*][dockerfile_archlinux]
- ~~`centos-6`~~ [*(centos-6/Dockerfile)*][dockerfile_centos-6]
- `centos-7` [*(centos-7/Dockerfile)*][dockerfile_centos-7]
Expand All @@ -22,7 +23,7 @@ A Docker image for run [Ansible][ansible_official] 2.5 on [Jupyter Notebook][jup
- `debian-9` [*(debian-9/Dockerfile)*][dockerfile_debian-9]
- ~~`gentoo`~~ [*(gentoo/Dockerfile)*][dockerfile_gentoo]
- ~~`opensuse-42.1`~~ [*(opensuse-42.1/Dockerfile)*][dockerfile_opensuse-42.1]
- `opensuse-42.2` [*(opensuse-42.2/Dockerfile)*][dockerfile_opensuse-42.2]
- ~~`opensuse-42.2`~~ [*(opensuse-42.2/Dockerfile)*][dockerfile_opensuse-42.2]
- `opensuse-42.3` [*(opensuse-42.3/Dockerfile)*][dockerfile_opensuse-42.3]
- ~~`ubuntu-14.04`~~ [*(ubuntu-14.04/Dockerfile)*][dockerfile_ubuntu-14.04]
- `ubuntu-16.04` [*(ubuntu-16.04/Dockerfile)*][dockerfile_ubuntu-16.04]
Expand All @@ -33,6 +34,7 @@ A Docker image for run [Ansible][ansible_official] 2.5 on [Jupyter Notebook][jup
[dockerfile_alpine-3.6]: https://github.com/chusiang/ansible-jupyter.dockerfile/blob/master/alpine-3.6/Dockerfile
[dockerfile_alpine-3.6_ansible-2.3]: https://github.com/chusiang/ansible-jupyter.dockerfile/blob/master/alpine-3.6_ansible-2.3/Dockerfile
[dockerfile_alpine-3.7]: https://github.com/chusiang/ansible-jupyter.dockerfile/blob/master/alpine-3.7/Dockerfile
[dockerfile_alpine-3.8]: https://github.com/chusiang/ansible-jupyter.dockerfile/blob/master/alpine-3.8/Dockerfile
[dockerfile_archlinux]: https://github.com/chusiang/ansible-jupyter.dockerfile/blob/master/archlinux/Dockerfile
[dockerfile_centos-6]: https://github.com/chusiang/ansible-jupyter.dockerfile/blob/master/centos-6/Dockerfile
[dockerfile_centos-7]: https://github.com/chusiang/ansible-jupyter.dockerfile/blob/master/centos-7/Dockerfile
Expand Down Expand Up @@ -131,6 +133,7 @@ Enjoy it !
### 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`.
Expand Down
34 changes: 34 additions & 0 deletions alpine-3.6_ansible-2.4/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
FROM alpine:3.6

MAINTAINER Chu-Siang Lai <[email protected]>

# Update the index of available packages.
RUN apk update

# Install the requires apk package and python.
RUN apk add --no-cache linux-headers gcc build-base python py-pip python-dev \
libffi-dev openssl-dev ca-certificates

# Upgrade the pip to lastest.
RUN pip install -U pip

# Setup the ansible.
RUN pip install 'ansible>=2.4.0,<2.5.0'

# for disable localhost warning message.
RUN mkdir /etc/ansible && \
/bin/echo -e "[local]\nlocalhost ansible_connection=local" > /etc/ansible/hosts

# Setup with Ansible.
ADD https://raw.githubusercontent.com/chusiang/ansible-jupyter.dockerfile/master/setup_jupyter.yml /home
RUN ansible-playbook -vvvv /home/setup_jupyter.yml

# Copy a ipython notebook example to image.
ADD https://raw.githubusercontent.com/chusiang/ansible-jupyter.dockerfile/master/ipynb/ansible_on_jupyter.ipynb /home/

# Run service of Jupyter.
COPY docker-entrypoint.sh /usr/local/bin/
ENTRYPOINT [ "docker-entrypoint.sh" ]
EXPOSE 8888

CMD [ "jupyter", "--version" ]
15 changes: 15 additions & 0 deletions alpine-3.6_ansible-2.4/docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/sh
# ============================================================
# Author: Chu-Siang Lai / chusiang (at) drx.tw
# Blog: http://note.drx.tw
# Filename: docker-entrypoint.sh
# Modified: 2016-11-20 18:43
# Description: Run the jupyter service.
#
# --ip 0.0.0.0: Allow all IP access.
# --no-browser: Don't open browser from command line.
# --notebook-dir: Bunding the workdir.
#
# ===========================================================

jupyter-notebook --ip 0.0.0.0 --no-browser --allow-root --notebook-dir=/home
34 changes: 34 additions & 0 deletions alpine-3.7_ansible-2.5/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
FROM alpine:3.7

MAINTAINER Chu-Siang Lai <[email protected]>

# Update the index of available packages.
RUN apk update

# Install the requires apk package and python.
RUN apk add --no-cache linux-headers gcc build-base python py-pip python-dev \
libffi-dev openssl-dev ca-certificates

# Upgrade the pip to lastest.
RUN pip install -U pip

# Setup the ansible.
RUN pip install 'ansible>=2.5.0,<2.6.0'

# for disable localhost warning message.
RUN mkdir /etc/ansible && \
/bin/echo -e "[local]\nlocalhost ansible_connection=local" > /etc/ansible/hosts

# Setup with Ansible.
ADD https://raw.githubusercontent.com/chusiang/ansible-jupyter.dockerfile/master/setup_jupyter.yml /home
RUN ansible-playbook -vvvv /home/setup_jupyter.yml

# Copy a ipython notebook example to image.
ADD https://raw.githubusercontent.com/chusiang/ansible-jupyter.dockerfile/master/ipynb/ansible_on_jupyter.ipynb /home/

# Run service of Jupyter.
COPY docker-entrypoint.sh /usr/local/bin/
ENTRYPOINT [ "docker-entrypoint.sh" ]
EXPOSE 8888

CMD [ "jupyter", "--version" ]
15 changes: 15 additions & 0 deletions alpine-3.7_ansible-2.5/docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/sh
# ============================================================
# Author: Chu-Siang Lai / chusiang (at) drx.tw
# Blog: http://note.drx.tw
# Filename: docker-entrypoint.sh
# Modified: 2016-11-20 18:43
# Description: Run the jupyter service.
#
# --ip 0.0.0.0: Allow all IP access.
# --no-browser: Don't open browser from command line.
# --notebook-dir: Bunding the workdir.
#
# ===========================================================

jupyter-notebook --ip 0.0.0.0 --no-browser --allow-root --notebook-dir=/home
34 changes: 34 additions & 0 deletions alpine-3.8/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
FROM alpine:3.8

MAINTAINER Chu-Siang Lai <[email protected]>

# Update the index of available packages.
RUN apk update

# Install the requires apk package and python.
RUN apk add --no-cache linux-headers gcc build-base python py-pip python-dev \
libffi-dev openssl-dev ca-certificates

# Upgrade the pip to lastest.
RUN pip install -U pip

# Setup the ansible.
RUN pip install ansible

# for disable localhost warning message.
RUN mkdir /etc/ansible && \
/bin/echo -e "[local]\nlocalhost ansible_connection=local" > /etc/ansible/hosts

# Setup with Ansible.
ADD https://raw.githubusercontent.com/chusiang/ansible-jupyter.dockerfile/master/setup_jupyter.yml /home
RUN ansible-playbook -vv /home/setup_jupyter.yml

# Copy a ipython notebook example to image.
ADD https://raw.githubusercontent.com/chusiang/ansible-jupyter.dockerfile/master/ipynb/ansible_on_jupyter.ipynb /home/

# Run service of Jupyter.
COPY docker-entrypoint.sh /usr/local/bin/
ENTRYPOINT [ "docker-entrypoint.sh" ]
EXPOSE 8888

CMD [ "jupyter", "--version" ]
15 changes: 15 additions & 0 deletions alpine-3.8/docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/sh
# ============================================================
# Author: Chu-Siang Lai / chusiang (at) drx.tw
# Blog: http://note.drx.tw
# Filename: docker-entrypoint.sh
# Modified: 2016-11-20 18:43
# Description: Run the jupyter service.
#
# --ip 0.0.0.0: Allow all IP access.
# --no-browser: Don't open browser from command line.
# --notebook-dir: Bunding the workdir.
#
# ===========================================================

jupyter-notebook --ip 0.0.0.0 --no-browser --allow-root --notebook-dir=/home
34 changes: 34 additions & 0 deletions alpine-3.8_ansible-2.6/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
FROM alpine:3.8

MAINTAINER Chu-Siang Lai <[email protected]>

# Update the index of available packages.
RUN apk update

# Install the requires apk package and python.
RUN apk add --no-cache linux-headers gcc build-base python py-pip python-dev \
libffi-dev openssl-dev ca-certificates

# Upgrade the pip to lastest.
RUN pip install -U pip

# Setup the ansible.
RUN pip install 'ansible>=2.6.0,<2.7.0'

# for disable localhost warning message.
RUN mkdir /etc/ansible && \
/bin/echo -e "[local]\nlocalhost ansible_connection=local" > /etc/ansible/hosts

# Setup with Ansible.
ADD https://raw.githubusercontent.com/chusiang/ansible-jupyter.dockerfile/master/setup_jupyter.yml /home
RUN ansible-playbook -vvvv /home/setup_jupyter.yml

# Copy a ipython notebook example to image.
ADD https://raw.githubusercontent.com/chusiang/ansible-jupyter.dockerfile/master/ipynb/ansible_on_jupyter.ipynb /home/

# Run service of Jupyter.
COPY docker-entrypoint.sh /usr/local/bin/
ENTRYPOINT [ "docker-entrypoint.sh" ]
EXPOSE 8888

CMD [ "jupyter", "--version" ]
15 changes: 15 additions & 0 deletions alpine-3.8_ansible-2.6/docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/sh
# ============================================================
# Author: Chu-Siang Lai / chusiang (at) drx.tw
# Blog: http://note.drx.tw
# Filename: docker-entrypoint.sh
# Modified: 2016-11-20 18:43
# Description: Run the jupyter service.
#
# --ip 0.0.0.0: Allow all IP access.
# --no-browser: Don't open browser from command line.
# --notebook-dir: Bunding the workdir.
#
# ===========================================================

jupyter-notebook --ip 0.0.0.0 --no-browser --allow-root --notebook-dir=/home

0 comments on commit 9d086af

Please sign in to comment.