From 4125d042e2333f35de88bcc2e5b8793f1c821a43 Mon Sep 17 00:00:00 2001 From: Raoul Snyman Date: Mon, 16 Sep 2019 22:03:02 -0700 Subject: [PATCH] Initial commit of OpenLP Docker Runners --- .gitlab-ci.yml | 36 ++++++++++++++++++++++++++++++++++++ Dockerfile.debian | 10 ++++++++++ Dockerfile.fedora | 7 +++++++ Dockerfile.ubuntu | 10 ++++++++++ README.rst | 4 ++++ 5 files changed, 67 insertions(+) create mode 100644 .gitlab-ci.yml create mode 100644 Dockerfile.debian create mode 100644 Dockerfile.fedora create mode 100644 Dockerfile.ubuntu create mode 100644 README.rst diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..98d8051 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,36 @@ +image: docker:stable + +services: + - docker:dind + +variables: + CONTAINER_IMAGE: registry.gitlab.com/$CI_PROJECT_PATH + DOCKER_HOST: tcp://docker:2375 + DOCKER_DRIVER: overlay2 + +before_script: + - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN registry.gitlab.com + +build-debian: + stage: build + script: + - docker pull $CONTAINER_IMAGE:debian || true + - docker build --cache-from $CONTAINER_IMAGE:debian --tag $CONTAINER_IMAGE:$CI_COMMIT_SHA --tag $CONTAINER_IMAGE:debian -f Dockerfile.debian . + - docker push $CONTAINER_IMAGE:$CI_COMMIT_SHA + - docker push $CONTAINER_IMAGE:debian + +build-ubuntu: + stage: build + script: + - docker pull $CONTAINER_IMAGE:ubuntu || true + - docker build --cache-from $CONTAINER_IMAGE:ubuntu --tag $CONTAINER_IMAGE:$CI_COMMIT_SHA --tag $CONTAINER_IMAGE:ubuntu -f Dockerfile.ubuntu . + - docker push $CONTAINER_IMAGE:$CI_COMMIT_SHA + - docker push $CONTAINER_IMAGE:ubuntu + +build-fedora: + stage: build + script: + - docker pull $CONTAINER_IMAGE:fedora || true + - docker build --cache-from $CONTAINER_IMAGE:fedora --tag $CONTAINER_IMAGE:$CI_COMMIT_SHA --tag $CONTAINER_IMAGE:fedora -f Dockerfile.fedora . + - docker push $CONTAINER_IMAGE:$CI_COMMIT_SHA + - docker push $CONTAINER_IMAGE:fedora diff --git a/Dockerfile.debian b/Dockerfile.debian new file mode 100644 index 0000000..2d4fe2d --- /dev/null +++ b/Dockerfile.debian @@ -0,0 +1,10 @@ +FROM debian:unstable + +RUN apt-get update && DEBIAN_FRONTEND=noninteractive \ + apt-get install -y python3 qttools5-dev-tools pyqt5-dev-tools python3-pyqt5 python3-pyqt5.qtmultimedia \ + python3-pyqt5.qtsvg python3-pyqt5.qtopengl python3-pyqt5.qtwebchannel python3-pyqt5.qtwebkit \ + python3-pyqt5.qtwebengine python3-sqlalchemy python3-chardet python3-lxml python3-enchant \ + python3-bs4 python3-mako python3-uno python3-pytest python3-pytest-cov python3-pip \ + python3-alembic python3-xdg python3-dbus.mainloop.pyqt5 python3-pep8 python3-websockets \ + python3-waitress python3-webob python3-requests python3-pymediainfo python3-qtawesome \ + python3-opengl python3-appdirs python3-vlc python3-zeroconf mediainfo pylint3 xvfb diff --git a/Dockerfile.fedora b/Dockerfile.fedora new file mode 100644 index 0000000..2ba2b20 --- /dev/null +++ b/Dockerfile.fedora @@ -0,0 +1,7 @@ +FROM fedora + +RUN dnf install -y python3-PyQt5 python3-qt5-webkit python3-qt5-webengine python3-sqlalchemy python3-alembic \ + python3-beautifulsoup4 python3-chardet python3-enchant python3-lxml python3-pyxdg python3-pytest \ + python3-websockets python3-appdirs python3-webob python3-QtAwesome python3-waitress \ + python3-pymediainfo python3-pyopengl python3-pylint python-pysword python3-requests \ + mediainfo patch xorg-x11-server-Xvfb python3-vlc python3-zeroconf diff --git a/Dockerfile.ubuntu b/Dockerfile.ubuntu new file mode 100644 index 0000000..b7f2951 --- /dev/null +++ b/Dockerfile.ubuntu @@ -0,0 +1,10 @@ +FROM ubuntu:rolling + +RUN apt-get update && DEBIAN_FRONTEND=noninteractive \ + apt-get install -y python3 qttools5-dev-tools pyqt5-dev-tools python3-pyqt5 python3-pyqt5.qtmultimedia \ + python3-pyqt5.qtsvg python3-pyqt5.qtopengl python3-pyqt5.qtwebchannel python3-pyqt5.qtwebkit \ + python3-pyqt5.qtwebengine python3-sqlalchemy python3-chardet python3-lxml python3-enchant \ + python3-bs4 python3-mako python3-uno python3-pytest python3-pytest-cov python3-pip \ + python3-alembic python3-xdg python3-dbus.mainloop.pyqt5 python3-pep8 python3-websockets \ + python3-waitress python3-webob python3-requests python3-pymediainfo python3-qtawesome \ + python3-opengl python3-appdirs python3-vlc python3-zeroconf mediainfo pylint3 xvfb diff --git a/README.rst b/README.rst new file mode 100644 index 0000000..8952b17 --- /dev/null +++ b/README.rst @@ -0,0 +1,4 @@ +OpenLP Docker Runners +===================== + +This repository holds the configuration to build the Docker runners for testing OpenLP.