Skip to content

Commit 0df7031

Browse files
authored
Merge pull request #374 from atheo89/nbk-345
pre-install minimal requirment python packages on vscode
2 parents cadbe9e + efc71bc commit 0df7031

File tree

3 files changed

+1350
-0
lines changed

3 files changed

+1350
-0
lines changed

codeserver/ubi9-python-3.9/Dockerfile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,20 @@ USER 0
1717

1818
WORKDIR /opt/app-root/bin
1919

20+
# Install usefull packages from Pipfile.lock
21+
COPY Pipfile.lock ./
22+
23+
# Install packages and cleanup
24+
RUN echo "Installing softwares and packages" && \
25+
micropipenv install && \
26+
rm -f ./Pipfile.lock && \
27+
# Fix permissions to support pip in Openshift environments \
28+
chmod -R g+w /opt/app-root/lib/python3.9/site-packages && \
29+
fix-permissions /opt/app-root -P
30+
31+
# Install usefull OS packages
32+
RUN dnf install -y jq git-lfs libsndfile
33+
2034
# Install Code Server
2135
RUN yum install -y "https://github.com/coder/code-server/releases/download/${CODESERVER_VERSION}/code-server-${CODESERVER_VERSION/v/}-amd64.rpm" && \
2236
yum -y clean all --enablerepo='*'

codeserver/ubi9-python-3.9/Pipfile

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
[[source]]
2+
name = "pypi"
3+
url = "https://pypi.org/simple"
4+
verify_ssl = true
5+
6+
[[source]]
7+
name = "pytorch"
8+
url = "https://download.pytorch.org/whl/cu118"
9+
verify_ssl = true
10+
11+
[dev-packages]
12+
13+
[packages]
14+
# Base packages
15+
wheel = "~=0.41.2"
16+
setuptools = "~=68.1.2"
17+
18+
# Datascience packages
19+
boto3 = "~=1.29.7"
20+
kafka-python = "~=2.0.2"
21+
matplotlib = "~=3.8.2"
22+
numpy = "~=1.26.2"
23+
pandas = "~=2.1.3"
24+
plotly = "~=5.18.0"
25+
scikit-learn = "~=1.3.2"
26+
scipy = "~=1.11.4"
27+
skl2onnx = "~=1.15.0"
28+
ipykernel = "~=6.26.0"
29+
30+
# Some extra usefull packages
31+
opencensus = "~=0.11.3"
32+
smart-open = "~=6.4.0"
33+
virtualenv = "~=20.21.0"
34+
py-spy = "~=0.3.14"
35+
prometheus-client = "~=0.19.0"
36+
37+
[requires]
38+
python_version = "3.9"

0 commit comments

Comments
 (0)