Skip to content
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
10 changes: 10 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.git
.venv
__pycache__
*.pyc
.pytest_cache
reports/
playbooks/
roles/
inventory/
retry/
26 changes: 26 additions & 0 deletions Containerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
FROM registry.access.redhat.com/ubi9/ubi:latest

ARG GRPCURL_VERSION=1.9.1
ARG FULFILLMENT_CLI_VERSION=0.0.48

RUN dnf install -y python3.11 python3.11-pip && dnf clean all

RUN curl -Lsf "https://mirror.openshift.com/pub/openshift-v4/x86_64/clients/ocp/stable/openshift-client-linux.tar.gz" \
| tar xz --no-same-owner -C /usr/local/bin oc kubectl

COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv

RUN curl -Lsf "https://github.com/fullstorydev/grpcurl/releases/download/v${GRPCURL_VERSION}/grpcurl_${GRPCURL_VERSION}_linux_x86_64.tar.gz" \
| tar xz --no-same-owner -C /usr/local/bin grpcurl

RUN curl -Lsfo /usr/local/bin/fulfillment-cli "https://github.com/osac-project/fulfillment-service/releases/download/v${FULFILLMENT_CLI_VERSION}/fulfillment-cli_Linux_x86_64" \
&& chmod +x /usr/local/bin/fulfillment-cli

WORKDIR /tests

COPY pyproject.toml uv.lock ./
RUN uv sync --frozen --python python3.11

COPY . .

ENV PATH="/tests/.venv/bin:$PATH"
Loading