Skip to content
Open
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
19 changes: 15 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@

# - Internal stages
# * api-test [build-python]
# * api-private-test [build-python-private]

# - Target (shippable) stages
# * private-cloud-api [api-runtime-private, build-python-private]
Expand Down Expand Up @@ -87,7 +88,7 @@ FROM wolfi-base AS build-python
WORKDIR /build

ARG PYTHON_VERSION
RUN apk add build-base linux-headers curl git \
RUN apk add build-base linux-headers curl git postgresql \
python-${PYTHON_VERSION} \
python-${PYTHON_VERSION}-dev \
py${PYTHON_VERSION}-pip
Expand Down Expand Up @@ -158,13 +159,23 @@ RUN apk add xmlsec
# * api-test [build-python]
FROM build-python AS api-test

COPY api /build/

RUN make install-packages opts='--with dev'

WORKDIR /app
CMD ["make", "test"]

COPY api /app/
# * api-private-test [build-python-private]
FROM build-python-private AS api-private-test

COPY api /build/

RUN make install-packages opts='--with dev' && \
make integrate-private-tests && \
git config --global --unset credential.helper && \
rm -f ${HOME}/.git-credentials

CMD ["make test"]
CMD ["make", "test"]

# - Target (shippable) stages
# * private-cloud-api [api-runtime-private, build-python-private]
Expand Down
Loading