From 94a3e2df7a2500a8e0e50a63baf41414245f2f9b Mon Sep 17 00:00:00 2001 From: Timothy J Warren Date: Wed, 4 Dec 2019 15:59:18 -0500 Subject: [PATCH] Try CI with custom docker file --- Dockerfile | 2 ++ Jenkinsfile | 9 +-------- 2 files changed, 3 insertions(+), 8 deletions(-) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..01712ee --- /dev/null +++ b/Dockerfile @@ -0,0 +1,2 @@ +FROM php:7.4-cli-alpine +RUN docker-php-ext-install ffi \ No newline at end of file diff --git a/Jenkinsfile b/Jenkinsfile index f99f3bd..11ecb58 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,15 +1,8 @@ pipeline { - agent none + agent { dockerfile true } stages { stage('PHP 7.4') { - agent { - docker { - image 'php:7.4-cli-alpine' - args '-u root --privileged' - } - } steps { - sh 'docker-php-ext-install ffi' sh 'apk add --no-cache php7-phpdbg' sh 'curl -sS https://getcomposer.org/installer | php' sh 'php composer.phar install'