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