Skip to content

Commit

Permalink
Poetry test
Browse files Browse the repository at this point in the history
  • Loading branch information
paulovmr committed Jun 25, 2024
1 parent 8461fce commit d3a335f
Show file tree
Hide file tree
Showing 167 changed files with 176,439 additions and 112,676 deletions.
1 change: 1 addition & 0 deletions base/c9s-python-3.9/.python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.9
6 changes: 3 additions & 3 deletions base/c9s-python-3.9/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ WORKDIR /opt/app-root/bin
# Install micropipenv to deploy packages from Pipfile.lock
RUN pip install --no-cache-dir -U "micropipenv[toml]"

# Install Python dependencies from Pipfile.lock file
COPY Pipfile.lock ./
# Install Python dependencies from pyproject.toml and poetry.lock file
COPY pyproject.toml poetry.lock ./

# OS Packages needs to be installed as root
USER root
Expand All @@ -27,7 +27,7 @@ RUN dnf install -y mesa-libGL && dnf clean all && rm -rf /var/cache/yum
# Other apps and tools installed as default user
USER 1001

RUN echo "Installing softwares and packages" && micropipenv install && rm -f ./Pipfile.lock && \
RUN echo "Installing softwares and packages" && micropipenv install --method poetry && rm -f ./pyproject.toml ./poetry.lock && \
# Install the oc client \
curl -L https://mirror.openshift.com/pub/openshift-v4/$(uname -m)/clients/ocp/stable/openshift-client-linux.tar.gz \
-o /tmp/openshift-client-linux.tar.gz && \
Expand Down
14 changes: 0 additions & 14 deletions base/c9s-python-3.9/Pipfile

This file was deleted.

29 changes: 0 additions & 29 deletions base/c9s-python-3.9/Pipfile.lock

This file was deleted.

36 changes: 36 additions & 0 deletions base/c9s-python-3.9/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions base/c9s-python-3.9/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[tool.poetry]
package-mode = false

[tool.poetry.dependencies]
python = ">=3.9.0,<3.10.0"
wheel = "~=0.43.0"
setuptools = "~=69.2.0"


[tool.poetry.group.dev.dependencies]

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

1 change: 1 addition & 0 deletions base/ubi8-python-3.8/.python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.8
6 changes: 3 additions & 3 deletions base/ubi8-python-3.8/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ WORKDIR /opt/app-root/bin
# Install micropipenv to deploy packages from Pipfile.lock
RUN pip install --no-cache-dir -U "micropipenv[toml]"

# Install Python dependencies from Pipfile.lock file
COPY Pipfile.lock ./
# Install Python dependencies from pyproject.toml and poetry.lock file
COPY pyproject.toml poetry.lock ./

RUN echo "Installing softwares and packages" && micropipenv install && rm -f ./Pipfile.lock
RUN echo "Installing softwares and packages" && micropipenv install --method poetry && rm -f ./pyproject.toml ./poetry.lock

# OS Packages needs to be installed as root
USER root
Expand Down
14 changes: 0 additions & 14 deletions base/ubi8-python-3.8/Pipfile

This file was deleted.

29 changes: 0 additions & 29 deletions base/ubi8-python-3.8/Pipfile.lock

This file was deleted.

36 changes: 36 additions & 0 deletions base/ubi8-python-3.8/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions base/ubi8-python-3.8/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[tool.poetry]
package-mode = false

[tool.poetry.dependencies]
python = ">=3.8.0,<3.9.0"
wheel = "~=0.43.0"
setuptools = "~=69.2.0"


[tool.poetry.group.dev.dependencies]

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

1 change: 1 addition & 0 deletions base/ubi9-python-3.9/.python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.9
6 changes: 3 additions & 3 deletions base/ubi9-python-3.9/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ WORKDIR /opt/app-root/bin
# Install micropipenv to deploy packages from Pipfile.lock
RUN pip install --no-cache-dir -U "micropipenv[toml]"

# Install Python dependencies from Pipfile.lock file
COPY Pipfile.lock ./
# Install Python dependencies from pyproject.toml and poetry.lock file
COPY pyproject.toml poetry.lock ./

RUN echo "Installing softwares and packages" && micropipenv install && rm -f ./Pipfile.lock
RUN echo "Installing softwares and packages" && micropipenv install --method poetry && rm -f ./pyproject.toml ./poetry.lock

# OS Packages needs to be installed as root
USER root
Expand Down
14 changes: 0 additions & 14 deletions base/ubi9-python-3.9/Pipfile

This file was deleted.

29 changes: 0 additions & 29 deletions base/ubi9-python-3.9/Pipfile.lock

This file was deleted.

36 changes: 36 additions & 0 deletions base/ubi9-python-3.9/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions base/ubi9-python-3.9/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[tool.poetry]
package-mode = false

[tool.poetry.dependencies]
python = ">=3.9.0,<3.10.0"
wheel = "~=0.43.0"
setuptools = "~=69.2.0"


[tool.poetry.group.dev.dependencies]

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

1 change: 1 addition & 0 deletions codeserver/ubi9-python-3.9/.python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.9
8 changes: 4 additions & 4 deletions codeserver/ubi9-python-3.9/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ USER 0

WORKDIR /opt/app-root/bin

# Install usefull packages from Pipfile.lock
COPY Pipfile.lock ./
# Install usefull packages from pyproject.toml and poetry.lock
COPY pyproject.toml poetry.lock ./

# Install packages and cleanup
RUN echo "Installing softwares and packages" && \
micropipenv install && \
rm -f ./Pipfile.lock && \
micropipenv install --method poetry && \
rm -f ./pyproject.toml ./poetry.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
Expand Down
Loading

0 comments on commit d3a335f

Please sign in to comment.