1
0
mirror of https://gitlab.com/openlp/runners.git synced 2024-12-22 03:12:49 +00:00

Merge branch 'pypi-runner' into 'master'

Add an image for installing from PyPI via pip

See merge request openlp/runners!52
This commit is contained in:
Tomas Groth 2024-11-13 05:26:15 +00:00
commit 27089bd29c
2 changed files with 27 additions and 0 deletions

View File

@ -23,6 +23,16 @@ lint-dockerfiles:
rules:
- when: always
test-pypi:
stage: test
script:
- docker pull $IMAGE_BASE/pypi || true
- docker build --cache-from $IMAGE_BASE/pypi --tag $IMAGE_BASE/pypi:$CI_COMMIT_SHA --tag $IMAGE_BASE/pypi:latest -f Dockerfile.pypi .
rules:
- if: $CI_COMMIT_BRANCH != "master"
changes:
- Dockerfile.pypi
test-debian:
stage: test
script:
@ -83,6 +93,18 @@ test-documentation:
changes:
- Dockerfile.documentation
build-pypi:
stage: build
script:
- docker pull $IMAGE_BASE/pypi || true
- docker build --cache-from $IMAGE_BASE/pypi --tag $IMAGE_BASE/pypi:$CI_COMMIT_SHA --tag $IMAGE_BASE/pypi:latest -f Dockerfile.pypi .
- docker push $IMAGE_BASE/pypi:$CI_COMMIT_SHA
- docker push $IMAGE_BASE/pypi:latest
rules:
- if: $CI_COMMIT_BRANCH == "master"
changes:
- Dockerfile.pypi
build-debian:
stage: build
script:

5
Dockerfile.pypi Normal file
View File

@ -0,0 +1,5 @@
FROM python:3.12
RUN apt-get update && DEBIAN_FRONTEND=noninteractive \
apt-get install -y python3-dev libdbus-1-dev libegl1 libxkbcommon0 libnss3 libxcomposite1 libxdamage1 libxtst6 \
libxi6 libasound2 libpulse0 xvfb