mirror of
https://gitlab.com/openlp/runners.git
synced 2024-12-22 11:22:48 +00:00
Add an image for installing from PyPI via pip
This commit is contained in:
parent
cde959a41a
commit
03ad894b7a
@ -23,6 +23,16 @@ lint-dockerfiles:
|
|||||||
rules:
|
rules:
|
||||||
- when: always
|
- 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:
|
test-debian:
|
||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
@ -83,6 +93,18 @@ test-documentation:
|
|||||||
changes:
|
changes:
|
||||||
- Dockerfile.documentation
|
- 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:
|
build-debian:
|
||||||
stage: build
|
stage: build
|
||||||
script:
|
script:
|
||||||
|
5
Dockerfile.pypi
Normal file
5
Dockerfile.pypi
Normal 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
|
Loading…
Reference in New Issue
Block a user