remove docker-on-docker hacks from Jenkinsfile

This commit is contained in:
Andrew Dolgov 2022-10-01 22:22:06 +03:00
parent c654f02a53
commit 68dee45782
No known key found for this signature in database
GPG Key ID: 1A56B4FA25D4AF2A
1 changed files with 4 additions and 4 deletions

8
Jenkinsfile vendored
View File

@ -6,8 +6,8 @@ pipeline {
steps {
sh """
docker run --rm \
--volumes-from jenkins-docker_app_1 \
--workdir ${env.WORKSPACE} \
--workdir /app \
-v ${env.WORKSPACE}:/app \
php:8.1-cli \
php ./vendor/bin/phpunit
"""
@ -18,8 +18,8 @@ pipeline {
sh """
# php -d memory_limit=-1 ....
docker run --rm \
--volumes-from jenkins-docker_app_1 \
--workdir ${env.WORKSPACE} \
--workdir /app \
-v ${env.WORKSPACE}:/app \
php:8.1-cli \
php -d memory_limit=-1 ./vendor/bin/phpstan --memory-limit=2G
"""