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 372844b

Browse files
committed
Upgraded Python dependencies (for Python 3.9.13)
1 parent c9c5d0e commit 372844b

File tree

6 files changed

+350
-218
lines changed

6 files changed

+350
-218
lines changed

‎.python-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.9.12
1+
3.9.13

‎Pipfile.lock

Lines changed: 232 additions & 216 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
File renamed without changes.

‎centos9/Dockerfile

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

‎ubuntu2204/Dockerfile

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

0 commit comments

Comments
(0)

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