Skip to content

Commit

Permalink
Always install python3.x-minimal
Browse files Browse the repository at this point in the history
  • Loading branch information
ddelange committed May 8, 2024
1 parent badde08 commit b9e48ff
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ jobs:
BASE_IMAGE=${{ env.REGISTRY }}/${{ github.repository }}/base
BASE_TAG=${{ github.event_name != 'pull_request' && github.sha || 'master' }}
PYTHON_MINOR_VERSION=${{ matrix.python_minor_version }}
PYTHON_DISTUTILS=${{ (matrix.python_minor_version < 12 && '-distutils') || '-minimal' }}
PYTHON_DISTUTILS=${{ (matrix.python_minor_version < 12 && '-distutils') || '' }}
cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ github.repository }}/${{ matrix.image }}:${{ (startsWith(matrix.image, 'runtime') && format('3.{0}-', matrix.python_minor_version)) || '' }}buildcache
cache-to: ${{ github.event_name != 'pull_request' && env.CACHE_TO_STRING || '' }}
provenance: false
Expand Down Expand Up @@ -185,3 +185,6 @@ jobs:
cache-from: type=registry,ref=ref=${{ env.REGISTRY }}/${{ github.repository }}/${{ matrix.image }}:${{ format('3.{0}-', matrix.python_minor_version) }}buildcache
cache-to: ${{ github.event_name != 'pull_request' && env.CACHE_TO_STRING || '' }}
provenance: false

- name: Smoketest
run: docker run --rm ${{ env.REGISTRY }}/${{ github.repository }}/${{ matrix.image }}:${{ format('3.{0}-', matrix.python_minor_version) }}${{ github.sha }} bash -c 'python -c "print(1)" && pip install ipdb'
1 change: 1 addition & 0 deletions runtime/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ ARG PYTHON_MINOR_VERSION
ARG PYTHON_DISTUTILS
RUN apt-install \
python3.${PYTHON_MINOR_VERSION}${PYTHON_DISTUTILS} \
python3.${PYTHON_MINOR_VERSION}-minimal \
libpython3.${PYTHON_MINOR_VERSION}-stdlib
2 changes: 0 additions & 2 deletions vanilla/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,3 @@ RUN python3.${PYTHON_MINOR_VERSION} -m venv ${VIRTUAL_ENV} && \
FROM ghcr.io/ddelange/pycuda/runtime:3.${PYTHON_MINOR_VERSION}-master

COPY --from=builder ${VIRTUAL_ENV} ${VIRTUAL_ENV}

RUN python -c "print('hello world')" && pip install ipdb

0 comments on commit b9e48ff

Please sign in to comment.