Skip to content

Commit 9d086af

Browse files
committed
Add 'alpine-3.8' image
1 parent d380ddb commit 9d086af

File tree

9 files changed

+204
-5
lines changed

9 files changed

+204
-5
lines changed

README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,12 @@ A Docker image for run [Ansible][ansible_official] 2.5 on [Jupyter Notebook][jup
99

1010
## Supported tags and respective `Dockerfile` links
1111

12-
- `alpine-3.4` [*(alpine-3.4/Dockerfile)*][dockerfile_alpine-3.4]
12+
- ~~`alpine-3.4`~~ [*(alpine-3.4/Dockerfile)*][dockerfile_alpine-3.4]
1313
- ~~`alpine-3.4_ansible-2.1`~~ [*(alpine-3.4_ansible-2.1/Dockerfile)*][dockerfile_alpine-3.4_ansible-2.1]
14-
- `alpine-3.6` [*(alpine-3.6/Dockerfile)*][dockerfile_alpine-3.6]
15-
- `alpine-3.6_ansible-2.3` [*(alpine-3.6_ansible-2.3/Dockerfile)*][dockerfile_alpine-3.6_ansible-2.3]
16-
- `alpine-3.7`, `latest` [*(alpine-3.7/Dockerfile)*][dockerfile_alpine-3.7]
14+
- ~~`alpine-3.6`~~ [*(alpine-3.6/Dockerfile)*][dockerfile_alpine-3.6]
15+
- ~~`alpine-3.6_ansible-2.3`~~ [*(alpine-3.6_ansible-2.3/Dockerfile)*][dockerfile_alpine-3.6_ansible-2.3]
16+
- `alpine-3.7` [*(alpine-3.7/Dockerfile)*][dockerfile_alpine-3.7]
17+
- `alpine-3.8`, `latest` [*(alpine-3.8/Dockerfile)*][dockerfile_alpine-3.8]
1718
- `archlinux` [*(archlinux/Dockerfile)*][dockerfile_archlinux]
1819
- ~~`centos-6`~~ [*(centos-6/Dockerfile)*][dockerfile_centos-6]
1920
- `centos-7` [*(centos-7/Dockerfile)*][dockerfile_centos-7]
@@ -22,7 +23,7 @@ A Docker image for run [Ansible][ansible_official] 2.5 on [Jupyter Notebook][jup
2223
- `debian-9` [*(debian-9/Dockerfile)*][dockerfile_debian-9]
2324
- ~~`gentoo`~~ [*(gentoo/Dockerfile)*][dockerfile_gentoo]
2425
- ~~`opensuse-42.1`~~ [*(opensuse-42.1/Dockerfile)*][dockerfile_opensuse-42.1]
25-
- `opensuse-42.2` [*(opensuse-42.2/Dockerfile)*][dockerfile_opensuse-42.2]
26+
- ~~`opensuse-42.2`~~ [*(opensuse-42.2/Dockerfile)*][dockerfile_opensuse-42.2]
2627
- `opensuse-42.3` [*(opensuse-42.3/Dockerfile)*][dockerfile_opensuse-42.3]
2728
- ~~`ubuntu-14.04`~~ [*(ubuntu-14.04/Dockerfile)*][dockerfile_ubuntu-14.04]
2829
- `ubuntu-16.04` [*(ubuntu-16.04/Dockerfile)*][dockerfile_ubuntu-16.04]
@@ -33,6 +34,7 @@ A Docker image for run [Ansible][ansible_official] 2.5 on [Jupyter Notebook][jup
3334
[dockerfile_alpine-3.6]: https://github.com/chusiang/ansible-jupyter.dockerfile/blob/master/alpine-3.6/Dockerfile
3435
[dockerfile_alpine-3.6_ansible-2.3]: https://github.com/chusiang/ansible-jupyter.dockerfile/blob/master/alpine-3.6_ansible-2.3/Dockerfile
3536
[dockerfile_alpine-3.7]: https://github.com/chusiang/ansible-jupyter.dockerfile/blob/master/alpine-3.7/Dockerfile
37+
[dockerfile_alpine-3.8]: https://github.com/chusiang/ansible-jupyter.dockerfile/blob/master/alpine-3.8/Dockerfile
3638
[dockerfile_archlinux]: https://github.com/chusiang/ansible-jupyter.dockerfile/blob/master/archlinux/Dockerfile
3739
[dockerfile_centos-6]: https://github.com/chusiang/ansible-jupyter.dockerfile/blob/master/centos-6/Dockerfile
3840
[dockerfile_centos-7]: https://github.com/chusiang/ansible-jupyter.dockerfile/blob/master/centos-7/Dockerfile
@@ -131,6 +133,7 @@ Enjoy it !
131133
132134
### 2018
133135
136+
* 07/11 Add new images of `alpine-3.8`. Stop automated build image of `alpine-3.4`, `alpine-3.6` and `opensuse-42.2`.
134137
* 06/18 Add new images of `alpine-3.7`, `ubuntu-18.04`. Stop automated build image of `ubuntu-14.04`.
135138
* 01/10 Stop automated build images of `centos-6`, `debian-7` and `alpine-3.4_ansible-2.1`.
136139

alpine-3.6_ansible-2.4/Dockerfile

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
FROM alpine:3.6
2+
3+
MAINTAINER Chu-Siang Lai <[email protected]>
4+
5+
# Update the index of available packages.
6+
RUN apk update
7+
8+
# Install the requires apk package and python.
9+
RUN apk add --no-cache linux-headers gcc build-base python py-pip python-dev \
10+
libffi-dev openssl-dev ca-certificates
11+
12+
# Upgrade the pip to lastest.
13+
RUN pip install -U pip
14+
15+
# Setup the ansible.
16+
RUN pip install 'ansible>=2.4.0,<2.5.0'
17+
18+
# for disable localhost warning message.
19+
RUN mkdir /etc/ansible && \
20+
/bin/echo -e "[local]\nlocalhost ansible_connection=local" > /etc/ansible/hosts
21+
22+
# Setup with Ansible.
23+
ADD https://raw.githubusercontent.com/chusiang/ansible-jupyter.dockerfile/master/setup_jupyter.yml /home
24+
RUN ansible-playbook -vvvv /home/setup_jupyter.yml
25+
26+
# Copy a ipython notebook example to image.
27+
ADD https://raw.githubusercontent.com/chusiang/ansible-jupyter.dockerfile/master/ipynb/ansible_on_jupyter.ipynb /home/
28+
29+
# Run service of Jupyter.
30+
COPY docker-entrypoint.sh /usr/local/bin/
31+
ENTRYPOINT [ "docker-entrypoint.sh" ]
32+
EXPOSE 8888
33+
34+
CMD [ "jupyter", "--version" ]
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/sh
2+
# ============================================================
3+
# Author: Chu-Siang Lai / chusiang (at) drx.tw
4+
# Blog: http://note.drx.tw
5+
# Filename: docker-entrypoint.sh
6+
# Modified: 2016-11-20 18:43
7+
# Description: Run the jupyter service.
8+
#
9+
# --ip 0.0.0.0: Allow all IP access.
10+
# --no-browser: Don't open browser from command line.
11+
# --notebook-dir: Bunding the workdir.
12+
#
13+
# ===========================================================
14+
15+
jupyter-notebook --ip 0.0.0.0 --no-browser --allow-root --notebook-dir=/home

alpine-3.7_ansible-2.5/Dockerfile

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
FROM alpine:3.7
2+
3+
MAINTAINER Chu-Siang Lai <[email protected]>
4+
5+
# Update the index of available packages.
6+
RUN apk update
7+
8+
# Install the requires apk package and python.
9+
RUN apk add --no-cache linux-headers gcc build-base python py-pip python-dev \
10+
libffi-dev openssl-dev ca-certificates
11+
12+
# Upgrade the pip to lastest.
13+
RUN pip install -U pip
14+
15+
# Setup the ansible.
16+
RUN pip install 'ansible>=2.5.0,<2.6.0'
17+
18+
# for disable localhost warning message.
19+
RUN mkdir /etc/ansible && \
20+
/bin/echo -e "[local]\nlocalhost ansible_connection=local" > /etc/ansible/hosts
21+
22+
# Setup with Ansible.
23+
ADD https://raw.githubusercontent.com/chusiang/ansible-jupyter.dockerfile/master/setup_jupyter.yml /home
24+
RUN ansible-playbook -vvvv /home/setup_jupyter.yml
25+
26+
# Copy a ipython notebook example to image.
27+
ADD https://raw.githubusercontent.com/chusiang/ansible-jupyter.dockerfile/master/ipynb/ansible_on_jupyter.ipynb /home/
28+
29+
# Run service of Jupyter.
30+
COPY docker-entrypoint.sh /usr/local/bin/
31+
ENTRYPOINT [ "docker-entrypoint.sh" ]
32+
EXPOSE 8888
33+
34+
CMD [ "jupyter", "--version" ]
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/sh
2+
# ============================================================
3+
# Author: Chu-Siang Lai / chusiang (at) drx.tw
4+
# Blog: http://note.drx.tw
5+
# Filename: docker-entrypoint.sh
6+
# Modified: 2016-11-20 18:43
7+
# Description: Run the jupyter service.
8+
#
9+
# --ip 0.0.0.0: Allow all IP access.
10+
# --no-browser: Don't open browser from command line.
11+
# --notebook-dir: Bunding the workdir.
12+
#
13+
# ===========================================================
14+
15+
jupyter-notebook --ip 0.0.0.0 --no-browser --allow-root --notebook-dir=/home

alpine-3.8/Dockerfile

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
FROM alpine:3.8
2+
3+
MAINTAINER Chu-Siang Lai <[email protected]>
4+
5+
# Update the index of available packages.
6+
RUN apk update
7+
8+
# Install the requires apk package and python.
9+
RUN apk add --no-cache linux-headers gcc build-base python py-pip python-dev \
10+
libffi-dev openssl-dev ca-certificates
11+
12+
# Upgrade the pip to lastest.
13+
RUN pip install -U pip
14+
15+
# Setup the ansible.
16+
RUN pip install ansible
17+
18+
# for disable localhost warning message.
19+
RUN mkdir /etc/ansible && \
20+
/bin/echo -e "[local]\nlocalhost ansible_connection=local" > /etc/ansible/hosts
21+
22+
# Setup with Ansible.
23+
ADD https://raw.githubusercontent.com/chusiang/ansible-jupyter.dockerfile/master/setup_jupyter.yml /home
24+
RUN ansible-playbook -vv /home/setup_jupyter.yml
25+
26+
# Copy a ipython notebook example to image.
27+
ADD https://raw.githubusercontent.com/chusiang/ansible-jupyter.dockerfile/master/ipynb/ansible_on_jupyter.ipynb /home/
28+
29+
# Run service of Jupyter.
30+
COPY docker-entrypoint.sh /usr/local/bin/
31+
ENTRYPOINT [ "docker-entrypoint.sh" ]
32+
EXPOSE 8888
33+
34+
CMD [ "jupyter", "--version" ]

alpine-3.8/docker-entrypoint.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/sh
2+
# ============================================================
3+
# Author: Chu-Siang Lai / chusiang (at) drx.tw
4+
# Blog: http://note.drx.tw
5+
# Filename: docker-entrypoint.sh
6+
# Modified: 2016-11-20 18:43
7+
# Description: Run the jupyter service.
8+
#
9+
# --ip 0.0.0.0: Allow all IP access.
10+
# --no-browser: Don't open browser from command line.
11+
# --notebook-dir: Bunding the workdir.
12+
#
13+
# ===========================================================
14+
15+
jupyter-notebook --ip 0.0.0.0 --no-browser --allow-root --notebook-dir=/home

alpine-3.8_ansible-2.6/Dockerfile

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
FROM alpine:3.8
2+
3+
MAINTAINER Chu-Siang Lai <[email protected]>
4+
5+
# Update the index of available packages.
6+
RUN apk update
7+
8+
# Install the requires apk package and python.
9+
RUN apk add --no-cache linux-headers gcc build-base python py-pip python-dev \
10+
libffi-dev openssl-dev ca-certificates
11+
12+
# Upgrade the pip to lastest.
13+
RUN pip install -U pip
14+
15+
# Setup the ansible.
16+
RUN pip install 'ansible>=2.6.0,<2.7.0'
17+
18+
# for disable localhost warning message.
19+
RUN mkdir /etc/ansible && \
20+
/bin/echo -e "[local]\nlocalhost ansible_connection=local" > /etc/ansible/hosts
21+
22+
# Setup with Ansible.
23+
ADD https://raw.githubusercontent.com/chusiang/ansible-jupyter.dockerfile/master/setup_jupyter.yml /home
24+
RUN ansible-playbook -vvvv /home/setup_jupyter.yml
25+
26+
# Copy a ipython notebook example to image.
27+
ADD https://raw.githubusercontent.com/chusiang/ansible-jupyter.dockerfile/master/ipynb/ansible_on_jupyter.ipynb /home/
28+
29+
# Run service of Jupyter.
30+
COPY docker-entrypoint.sh /usr/local/bin/
31+
ENTRYPOINT [ "docker-entrypoint.sh" ]
32+
EXPOSE 8888
33+
34+
CMD [ "jupyter", "--version" ]
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/sh
2+
# ============================================================
3+
# Author: Chu-Siang Lai / chusiang (at) drx.tw
4+
# Blog: http://note.drx.tw
5+
# Filename: docker-entrypoint.sh
6+
# Modified: 2016-11-20 18:43
7+
# Description: Run the jupyter service.
8+
#
9+
# --ip 0.0.0.0: Allow all IP access.
10+
# --no-browser: Don't open browser from command line.
11+
# --notebook-dir: Bunding the workdir.
12+
#
13+
# ===========================================================
14+
15+
jupyter-notebook --ip 0.0.0.0 --no-browser --allow-root --notebook-dir=/home

0 commit comments

Comments
 (0)