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

[DO NOT MERGE] [WIP] RHOAIENG-9036: [Spike] Explore poetry over pipenv for the IDE notebook repo #590

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Forcing micropipenv 1.7.0
  • Loading branch information
paulovmr committed Aug 8, 2024
commit 5d3677767af233cfae7a8fa3223323de660174b8
2 changes: 1 addition & 1 deletion base/c9s-python-3.9/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ LABEL name="odh-notebook-base-centos-stream9-python-3.9" \
WORKDIR /opt/app-root/bin

# Install micropipenv to deploy packages from pyproject.toml and poetry.lock
RUN pip install --no-cache-dir -U "micropipenv[toml]"
RUN pip install --no-cache-dir -U "micropipenv[toml]==1.7.0"

# Install Python dependencies from pyproject.toml and poetry.lock file
COPY pyproject.toml poetry.lock ./
Expand Down
2 changes: 1 addition & 1 deletion base/ubi8-python-3.8/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ LABEL name="odh-notebook-base-ubi8-python-3.8" \
WORKDIR /opt/app-root/bin

# Install micropipenv to deploy packages from pyproject.toml and poetry.lock
RUN pip install --no-cache-dir -U "micropipenv[toml]"
RUN pip install --no-cache-dir -U "micropipenv[toml]==1.7.0"

# Install Python dependencies from pyproject.toml and poetry.lock file
COPY pyproject.toml poetry.lock ./
Expand Down
2 changes: 1 addition & 1 deletion base/ubi9-python-3.9/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ LABEL name="odh-notebook-base-ubi9-python-3.9" \
WORKDIR /opt/app-root/bin

# Install micropipenv to deploy packages from pyproject.toml and poetry.lock
RUN pip install --no-cache-dir -U "micropipenv[toml]"
RUN pip install --no-cache-dir -U "micropipenv[toml]==1.7.0"

# Install Python dependencies from pyproject.toml and poetry.lock file
COPY pyproject.toml poetry.lock ./
Expand Down
2 changes: 1 addition & 1 deletion intel/runtimes/pytorch/ubi9-python-3.9/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ RUN python3.9 -m venv ${CPU_ENV} && \
chown -R 1001:0 ${CPU_ENV} && \
fix-permissions ${CPU_ENV} -P && \
source ${CPU_ENV}/bin/activate && \
pip install --no-cache-dir -U "micropipenv[toml]" && \
pip install --no-cache-dir -U "micropipenv[toml]==1.7.0" && \
micropipenv install --method poetry && \
rm -f ./poetry.lock ./pyproject.toml && \
# Fix permissions to support pip in Openshift environments \
Expand Down
2 changes: 1 addition & 1 deletion intel/runtimes/tensorflow/ubi9-python-3.9/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ RUN python3.9 -m venv ${CPU_ENV} && \
unlink ${CPU_ENV}/lib64 && \
cp -r ${CPU_ENV}/lib ${CPU_ENV}/lib64 && \
source ${CPU_ENV}/bin/activate && \
pip install --no-cache-dir -U "micropipenv[toml]" && \
pip install --no-cache-dir -U "micropipenv[toml]==1.7.0" && \
micropipenv install --method poetry && \
rm -f ./poetry.lock ./pyproject.toml && \
# Fix permissions to support pip in Openshift environments \
Expand Down
2 changes: 1 addition & 1 deletion jupyter/intel/pytorch/ubi9-python-3.9/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ RUN python3.9 -m venv ${CPU_ENV} && \
chown -R 1001:0 ${CPU_ENV} && \
fix-permissions ${CPU_ENV} -P && \
source ${CPU_ENV}/bin/activate && \
pip install --no-cache-dir -U "micropipenv[toml]" && \
pip install --no-cache-dir -U "micropipenv[toml]==1.7.0" && \
micropipenv install --method poetry && \
rm -f ./poetry.lock ./pyproject.toml && \
python -m ipykernel install --prefix=/opt/app-root --name 'pytorch-cpu' --display-name='pytorch-cpu' && \
Expand Down
2 changes: 1 addition & 1 deletion jupyter/intel/tensorflow/ubi9-python-3.9/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ RUN python3.9 -m venv ${CPU_ENV} && \
unlink ${CPU_ENV}/lib64 && \
cp -r ${CPU_ENV}/lib ${CPU_ENV}/lib64 && \
source ${CPU_ENV}/bin/activate && \
pip install --no-cache-dir -U "micropipenv[toml]" && \
pip install --no-cache-dir -U "micropipenv[toml]==1.7.0" && \
micropipenv install --method poetry && \
rm -f ./poetry.lock ./pyproject.toml && \
python -m ipykernel install --prefix=/opt/app-root --name 'tensorflow-cpu' --display-name='tensorflow-cpu' && \
Expand Down