From f97ba26631bb01fae4436ffbfb1ddd705057499a Mon Sep 17 00:00:00 2001 From: Rui Carmo Date: Thu, 28 Nov 2019 13:19:27 +0000 Subject: [PATCH] Add testing on Ubuntu LTS (currently bionic) --- .github/workflows/bionic/Dockerfile | 33 +++++++++++++++++++++++++++++ .github/workflows/os-packages.yml | 5 ++--- 2 files changed, 35 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/bionic/Dockerfile diff --git a/.github/workflows/bionic/Dockerfile b/.github/workflows/bionic/Dockerfile new file mode 100644 index 0000000..0e57021 --- /dev/null +++ b/.github/workflows/bionic/Dockerfile @@ -0,0 +1,33 @@ +FROM ubuntu:bionic + +ENV DEBIAN_FRONTEND=noninteractive + +# Install the minimum amount of packages required for testing, which currently means: +# - minimal set of packages required to run Python 3 +# - shipping versions of uWSGI and nginx (so that config files are put in the right places) +# Also, make sure we have a sane default locale inside the container + +RUN apt-get update \ + && apt-get dist-upgrade -y \ + && apt-get install -y --no-install-recommends \ + apt-utils \ + ca-certificates \ + locales \ + curl \ + tzdata \ + git \ + build-essential \ + git \ + incron \ + nginx \ + python3-pip \ + python3-click \ + python3-virtualenv \ + uwsgi \ + uwsgi-plugin-asyncio-python3 \ + uwsgi-plugin-python3 \ +&& locale-gen en_US.UTF-8 + +VOLUME ["/run"] + +CMD ["/usr/bin/python3", "/run/piku.py"] \ No newline at end of file diff --git a/.github/workflows/os-packages.yml b/.github/workflows/os-packages.yml index ccf669d..b52fc5e 100644 --- a/.github/workflows/os-packages.yml +++ b/.github/workflows/os-packages.yml @@ -8,12 +8,11 @@ jobs: strategy: max-parallel: 2 matrix: - distro: [buster] + distro: [ buster, bionic ] steps: - uses: actions/checkout@v1 - name: Test on ${{ matrix.distro }} run: | - pwd docker build .github/workflows/${{ matrix.distro }} -t local/${{ matrix.distro }} - docker run local/${{ matrix.distro }} \ No newline at end of file + docker run -v "$PWD":/run local/${{ matrix.distro }} \ No newline at end of file