Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pre-install minimal requirment python packages on vscode #374

Merged
merged 1 commit into from
Dec 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
38 changes: 38 additions & 0 deletions codeserver/ubi9-python-3.9/Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
[[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"
ipykernel = "~=6.26.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
Loading