Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 6075dbd

Browse files
committed
[CentOS] Added specifications for CentOS 8
1 parent 9a81e9b commit 6075dbd

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

‎centos8/Dockerfile

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
#
2+
# Python Jupyter notebooks for Artificial Intelligence (AI) / Machine Learning (ML) on CentOS 8
3+
#
4+
# Reference:
5+
# * https://cloud.docker.com/u/artificialintelligence/repository/docker/artificialintelligence/python-jupyter
6+
# * https://github.com/machine-learning-helpers/docker-python-jupyter/tree/master/centos8
7+
# * https://github.com/cpp-projects-showcase/docker-images
8+
# * https://cloud.docker.com/u/cpppythondevelopment/repository/docker/cpppythondevelopment/base/tree/master/centos8
9+
#
10+
11+
FROM cpppythondevelopment/base:centos8
12+
MAINTAINER Denis Arnaud <denis.arnaud_github at m4x dot org>
13+
LABEL version="0.1"
14+
15+
# Configuration
16+
ENV container docker
17+
ENV HOME /home/build
18+
ENV LANGUAGE en_US:en
19+
ENV LANG en_US.UTF-8
20+
ENV LC_ALL $LANG
21+
22+
# Create the top directories to host the notebook and data samples
23+
USER root
24+
RUN mkdir -p /notebook /data && chown build.build /notebook /data
25+
26+
# Switch to the `build` user
27+
USER build
28+
29+
# Python
30+
ENV PATH $HOME/.pyenv/bin:$HOME/.pyenv/shims:$PATH
31+
32+
# Download some sample notebooks and data sets
33+
WORKDIR /notebook
34+
RUN git clone https://github.com/machine-learning-helpers/induction-python.git .
35+
WORKDIR /data
36+
RUN git clone https://github.com/machine-learning-helpers/data-samples.git .
37+
38+
# The base directory is where the Jupyter notebook samples have been dowloaded.
39+
# However, that directory may be overshadowed by the one the user running that
40+
# Docker image may wish to mount instead.
41+
# There is content (which can be overshadowed) in that directory just in case
42+
# the user does not want to mount her/his own Jupyter notebooks.
43+
# Same comment for the content of the /data directory.
44+
VOLUME /notebook
45+
WORKDIR /notebook
46+
47+
# Install the Python dependencies, including Jupyter
48+
RUN pipenv install
49+
50+
# Tell Docker that about the Jupyter port
51+
EXPOSE 8888
52+
53+
# Launch Jupyter
54+
CMD pipenv run jupyter lab --allow-root --no-browser --ip 0.0.0.0 --NotebookApp.token=
55+

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /