diff --git a/Dockerfile b/Dockerfile index 85b9c4b978e3..70b46f6b7160 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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] @@ -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 @@ -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]