Skip to content

Commit

Permalink
pre-install minimal requirment python packages on vscode
Browse files Browse the repository at this point in the history
  • Loading branch information
atheo89 committed Nov 30, 2023
1 parent bf2bf3c commit 0789d1c
Show file tree
Hide file tree
Showing 3 changed files with 3,234 additions and 0 deletions.
14 changes: 14 additions & 0 deletions codeserver/ubi9-python-3.9/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,20 @@ USER 0

WORKDIR /opt/app-root/bin

# Install usefull packages from Pipfile.lock
COPY Pipfile.lock ./

# Install packages and cleanup
RUN echo "Installing softwares and packages" && \
micropipenv install && \
rm -f ./Pipfile.lock && \
# Fix permissions to support pip in Openshift environments \
chmod -R g+w /opt/app-root/lib/python3.9/site-packages && \
fix-permissions /opt/app-root -P

# Install usefull OS packages
RUN dnf install -y jq git-lfs libsndfile

# Install Code Server
RUN yum install -y "https://github.com/coder/code-server/releases/download/${CODESERVER_VERSION}/code-server-${CODESERVER_VERSION/v/}-amd64.rpm" && \
yum -y clean all --enablerepo='*'
Expand Down
47 changes: 47 additions & 0 deletions codeserver/ubi9-python-3.9/Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true

[[source]]
name = "pytorch"
url = "https://download.pytorch.org/whl/cu118"
verify_ssl = true

[dev-packages]

[packages]
# Base packages
wheel = "~=0.41.2"
setuptools = "~=68.1.2"

# Datascience packages
boto3 = "~=1.29.7"
kafka-python = "~=2.0.2"
matplotlib = "~=3.8.2"
numpy = "~=1.26.2"
pandas = "~=2.1.3"
plotly = "~=5.18.0"
scikit-learn = "~=1.3.2"
scipy = "~=1.11.4"
skl2onnx = "~=1.15.0"
codeflare-sdk = "~=0.12.1"
kfp = "~=1.8.22"
kfp-tekton = "~=1.8.1"
ipykernel = "~=6.26.0"

# PyTorch packages
tensorboard = "~=2.15.1"
torch = {version = "~=2.1.1", index = "pytorch"}
torchvision = {version = "~=0.16.1", index = "pytorch"}
torchmetrics = "~=1.2.0"

# Some extra usefull packages
opencensus = "~=0.11.3"
smart-open = "~=6.4.0"
virtualenv = "~=20.21.0"
py-spy = "~=0.3.14"
prometheus-client = "~=0.19.0"

[requires]
python_version = "3.9"
Loading

0 comments on commit 0789d1c

Please sign in to comment.