Skip to content

Commit 7a63f9a

Browse files
authored
[ISV-5633] Remove dev dependencies from the image (#803)
* [ISV-5633] Remove dev dependencies from the image Signed-off-by: Tomas Man <[email protected]> --------- Signed-off-by: Tomas Man <[email protected]>
1 parent 8a317c6 commit 7a63f9a

File tree

4 files changed

+26
-42
lines changed

4 files changed

+26
-42
lines changed

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
-include .env
22
-include .set_env
33

4-
# Default tag is gnerated from the current timestamp
4+
# Default tag is generated from the current timestamp
55
TAG ?= $(shell date +%s)
66
PIPELINE_IMAGE_REPO ?= quay.io/redhat-isv/operator-pipelines-test-image
77
PIPELINE_IMAGE ?= $(PIPELINE_IMAGE_REPO):$(TAG)
8-
# For local tests use a version-release based on the latest sucesfull
8+
# For local tests use a version-release based on the latest successful
99
# pipeline run in Github action and bump up the release number
1010
# https://github.com/redhat-openshift-ecosystem/operator-pipelines/actions/workflows/integration-tests.yml
1111
OPERATOR_VERSION_RELEASE ?= 1-1

operator-pipeline-images/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ COPY ./operator-pipeline-images ./operator-pipeline-images
7070
RUN pip3 install --no-cache-dir pdm
7171
# install dependencies in virtual environment
7272
COPY ./pdm.lock ./pyproject.toml ./README.md ./
73-
RUN pdm venv create 3.12 && pdm install --frozen-lockfile --no-editable \
74-
--group operatorcert-dev
73+
RUN pdm venv create 3.12 && \
74+
pdm install --frozen-lockfile --no-editable --production
7575

7676
ENV VIRTUAL_ENV=/home/user/.venv
7777
ENV PATH="$VIRTUAL_ENV/bin:$PATH"

pdm.lock

+22-33
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

-5
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,3 @@ operatorcert-dev = [
106106
"pip-audit>=2.7.3",
107107
]
108108
tox = ["tox>=4.16.0", "tox-pdm>=0.7.2"]
109-
110-
# The following two lines are required to install ansible-lint under pdm
111-
# Ref: https://github.com/pdm-project/pdm/issues/1575
112-
[tool.pdm.resolution.overrides]
113-
will-not-work-on-windows-try-from-wsl-instead = "0.1.0"

0 commit comments

Comments
 (0)