From 000e9e9298e8a8089032ab63c7d44a4eea4a1964 Mon Sep 17 00:00:00 2001 From: sebprt Date: Fri, 15 Dec 2023 09:43:21 +0100 Subject: [PATCH] Added commands for docker and composer --- src/Dockerfile/Arg.php | 18 ++++++++++++++++++ src/PHP/ComposerConfig.php | 28 ++++++++++++++++++++++++++++ src/PHP/ComposerRequire.php | 2 +- 3 files changed, 47 insertions(+), 1 deletion(-) create mode 100644 src/Dockerfile/Arg.php create mode 100644 src/PHP/ComposerConfig.php diff --git a/src/Dockerfile/Arg.php b/src/Dockerfile/Arg.php new file mode 100644 index 0000000..5035f5b --- /dev/null +++ b/src/Dockerfile/Arg.php @@ -0,0 +1,18 @@ +name); + } +} diff --git a/src/PHP/ComposerConfig.php b/src/PHP/ComposerConfig.php new file mode 100644 index 0000000..20082c9 --- /dev/null +++ b/src/PHP/ComposerConfig.php @@ -0,0 +1,28 @@ +host, + $this->token, + )); + } +} diff --git a/src/PHP/ComposerRequire.php b/src/PHP/ComposerRequire.php index 5eeaca9..e32f39a 100644 --- a/src/PHP/ComposerRequire.php +++ b/src/PHP/ComposerRequire.php @@ -19,7 +19,7 @@ public function __toString(): string { return (string) new Dockerfile\Run(sprintf(<<<'RUN' set -ex \ - && composer require --prefer-dist --no-progress --prefer-stable --sort-packages --optimize-autoloader --with-dependencies %s + && composer require --prefer-dist --no-progress --prefer-stable --sort-packages --optimize-autoloader --with-all-dependencies %s RUN, implode(' ', $this->packages))); } }