diff --git a/.jenkins/build-symfony-image.groovy b/.jenkins/build-symfony-image.groovy new file mode 100644 index 0000000..475c76f --- /dev/null +++ b/.jenkins/build-symfony-image.groovy @@ -0,0 +1,15 @@ +def exec() { + String dockerfile = readFile(file:'Dockerfile') + + dockerfile = """ + ${dockerfile} + + RUN apt update && apt install -y php-gd php-curl php-zip curl + RUN curl -fsSL https://deb.nodesource.com/setup_16.x | bash - && apt-get install -y nodejs + RUN npm install -g yarn + """.stripIndent() + + writeFile(file:'Dockerfile', text: dockerfile) +} + +return this diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..6cf6995 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,3 @@ +@Library('cadoles') _ + +symfonyAppPipeline('ubuntu:22.04')