Jenkins is using alpine images
This commit is contained in:
+1
-1
@@ -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"),
|
||||
|
||||
Vendored
+2
-1
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user