-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
204 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |