Skip to content

Commit

Permalink
Delete poetry cache from images
Browse files Browse the repository at this point in the history
  • Loading branch information
cgerum committed Aug 23, 2024
1 parent 6177a87 commit 2cabe9d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 36 deletions.
38 changes: 3 additions & 35 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,21 +53,9 @@ test_prebuilt_docker:
dependencies: []


build_testcontainers:
stage: build
image: gitlab/gitlab-runner:latest
tags:
- dind
before_script:
- apk add --no-cache bash
script:
- bash ./build_testcontainer.sh all
allow_failure: false
when: manual

test_python_39:
stage: test
image: es-git-registry.cs.uni-tuebingen.de/es/ai/hannah/hannah/testing/python:3.9
image: ghcr.io/ekut-es/hannah_python_3.9:latest
script:
- set -e
- poetry config installer.max-workers 10
Expand All @@ -84,29 +72,9 @@ test_python_39:
- if: $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
- when: manual

#test_tvm:
# stage: test
# image: ubuntu:22.04
# script:
# - set -e
# - apt-get install -y llvm-dev libclang-dev g++ python-is-python3
# - poetry config installer.max-workers 10
# - poetry run external/hannah-tvm/scripts/install_full.sh
# - poetry install -E tvm -E vision
# - poetry run python -m pytest -v --cov=hannah --cov external/hannah-tvm test --integration
# tags:
# - docker
# interruptible: true
# allow_failure: false
# rules:
# - if: $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
# cache:
# paths:
# - .cache/

test_python_310:
stage: test
image: es-git-registry.cs.uni-tuebingen.de/es/ai/hannah/hannah/testing/python:3.10
image: ghcr.io/ekut-es/hannah_python_3.10:latest
script:
- set -e
- poetry config installer.max-workers 10
Expand Down Expand Up @@ -137,7 +105,7 @@ test_python_310:

test_python_311:
stage: test
image: es-git-registry.cs.uni-tuebingen.de/es/ai/hannah/hannah/es/ai/hannah/hannah/testing/python:3.11
image: ghcr.io/ekut-es/hannah_python_3.11:latest
script:
- set -e
- poetry config installer.max-workers 10
Expand Down
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ FROM ${target}
ARG python_version
ARG target

ENV POETRY_CACHE_DIR="/tmp/poetry_cache"


RUN if [ "$target" = "hannah" ] || [ "$target" = "mlonmcu" ]; then\
apt-get update -y && apt-get -y install git mesa-utils python3 python3-pip python3-dev libblas-dev liblapack-dev libsndfile1-dev libsox-dev cmake ninja-build curl build-essential python-is-python3; \
else \
Expand All @@ -51,5 +54,6 @@ COPY poetry.lock pyproject.toml /deps/

# Install dependencies
RUN poetry config virtualenvs.create false \
&& poetry install --no-interaction --no-ansi --all-extras --no-root
&& poetry install --no-interaction --no-ansi --all-extras --no-root \
&& rm -rf $POETRY_CACHE_DIR

0 comments on commit 2cabe9d

Please sign in to comment.