From 64eca107b59236aa36f72032ff4ea536c1f6264e Mon Sep 17 00:00:00 2001 From: Mpho raf Date: Sun, 20 Mar 2022 16:54:04 +0200 Subject: [PATCH] Jenkins is using alpine images --- .drone.jsonnet | 2 +- Jenkinsfile | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.drone.jsonnet b/.drone.jsonnet index a18517f..db23596 100644 --- a/.drone.jsonnet +++ b/.drone.jsonnet @@ -19,7 +19,7 @@ local Pipeline(name, image) = { }; [ - Pipeline("python-2", "python:2"), + Pipeline("python-3-5", "python:3.5"), Pipeline("python-3-7", "python:3.7"), Pipeline("python-3-8", "python:3.8"), Pipeline("python-3-9", "python:3.9"), diff --git a/Jenkinsfile b/Jenkinsfile index 14696dd..317d886 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -26,13 +26,14 @@ pipeline { stage('test') { agent { docker { image "python:$PY_VERSION" - args '-e DJANGO_SETTINGS_MODULE="locallibrary.settings"'} + args '-e DJANGO_SETTINGS_MODULE="locallibrary.settings" -u 0:0'} } environment { PY_ENV = "/tmp/pitestenv" } steps { sh ''' + apk install --no-cache libpq-dev python -m venv ${PY_ENV} source ${PY_ENV}/bin/activate export PATH=${PY_ENV}/bin:${PATH}