Skip to content

Commit

Permalink
chore: remove cache from wheel build in dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
jjaakola-aiven committed Sep 26, 2024
1 parent a5e1855 commit 99c0f56
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
!src
!requirements/*.txt
!README.rst
!LICENSE
!pyproject.toml
!container/start.sh
!container/healthcheck.py
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/container-smoke-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,7 @@ jobs:
fetch-depth: 0

- name: Install requirements
run: |
python -m venv venv
source ./venv/bin/activate
pip install .
run: make install-dev

- name: Resolve Karapace version
run: |
Expand All @@ -33,7 +30,7 @@ jobs:
run: docker build --build-arg KARAPACE_VERSION=${{ env.KARAPACE_VERSION }} --file=container/Dockerfile .

- name: Run container
run: docker compose --file=container/compose.yml up --build --wait --detach
run: docker compose --file=container/compose.yml up --build --detach || docker compose --file=container/compose.yml logs -f container-karapace-registry-1

- name: Smoke test registry
run: bin/smoke-test-registry.sh
Expand Down
2 changes: 1 addition & 1 deletion container/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ RUN --mount=type=cache,target=/root/.cache/pip \

COPY . /build/karapace-repo
WORKDIR /build/karapace-repo
RUN --mount=type=cache,target=/root/.cache/pip \
RUN --mount=type=cache,target=/root/.cache/pip/ \
if [ -z "${KARAPACE_VERSION}" ]; then \
PRETEND_VERSION="$(python -c 'from src.karapace import version; print(version.__version__)')"; \
else \
Expand Down

0 comments on commit 99c0f56

Please sign in to comment.