From ecd3649e8bcf8e9f06b8faf09143ea7043ff6e3d Mon Sep 17 00:00:00 2001 From: Oliver Kurth Date: Wed, 23 Jun 2021 15:53:25 -0700 Subject: [PATCH] add photon 3.0 to ci tests --- .github/workflows/ci.yml | 15 +++++++++++++++ ci/Dockerfile.photon-3.0 | 17 +++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 ci/Dockerfile.photon-3.0 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6be74dc..0effa9f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,6 +17,21 @@ jobs: working-directory: ${{ github.workspace }} run: | docker run --security-opt seccomp:unconfined --rm -e DIST -v$(pwd):/build -w/build ${DIST}/tdnf-build ./ci/docker-entrypoint.sh + photon-3: + env: + DIST: photon + DIST_VERSION: '3.0' + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: build container + working-directory: ${{ github.workspace }} + run: | + docker build -t ${DIST}/tdnf-build:${DIST_VERSION} -f ci/Dockerfile.${DIST}-${DIST_VERSION} . + - name: run container with tests + working-directory: ${{ github.workspace }} + run: | + docker run --security-opt seccomp:unconfined --rm -e DIST -v$(pwd):/build -w/build ${DIST}/tdnf-build:${DIST_VERSION} ./ci/docker-entrypoint.sh fedora: env: DIST: fedora diff --git a/ci/Dockerfile.photon-3.0 b/ci/Dockerfile.photon-3.0 new file mode 100644 index 0000000..7de7680 --- /dev/null +++ b/ci/Dockerfile.photon-3.0 @@ -0,0 +1,17 @@ +FROM photon:3.0 + +MAINTAINER okurth@vmware.com + +RUN tdnf update -q -y +RUN tdnf remove -q -y toybox +RUN tdnf install -q -y --enablerepo=photon-debuginfo \ + build-essential cmake curl-devel rpm-build libsolv-devel \ + popt-devel sed createrepo_c glib libxml2 findutils \ + python3 python3-pip python3-setuptools python3-devel \ + valgrind gpgme-devel glibc-debuginfo libmetalink-devel \ + openssl-devel which + +# python build/test dependencies +RUN pip3 install -q requests urllib3 pyOpenSSL pytest + +CMD ["/bin/bash"]