From 9994781754e75d86fc66278510c65fc7bca73106 Mon Sep 17 00:00:00 2001 From: Anjar Febrianto Date: Tue, 27 Aug 2024 10:42:53 +0700 Subject: [PATCH] feat: update package to spesific version for php7.x --- .dockerignore | 3 +++ Dockerfile | 2 +- README.md | 6 ++++++ 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..2a9b6cc --- /dev/null +++ b/.dockerignore @@ -0,0 +1,3 @@ +.env +bin/act +.github/ \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 0fde0bc..8cf9ae2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,7 @@ RUN apk add --no-cache zip libzip-dev \ && docker-php-ext-configure zip --with-libzip \ && docker-php-ext-install zip \ && rm -rf /var/lib/apt/lists/* \ - && composer global require symplify/easy-coding-standard phpunit/phpunit pdepend/pdepend:2.10.0 phpmd/phpmd \ + && composer global require symplify/easy-coding-standard:9.4.70 phpunit/phpunit:9.5.10 pdepend/pdepend:2.10.0 phpmd/phpmd:2.10.2 \ && composer clear-cache \ && rm -rf /var/cache/* /var/tmp/* /tmp/* /var/lib/apt/lists/* /usr/share/man /var/lib/dpkg/info \ && ln -s /root/.composer/vendor/bin/ecs /usr/bin \ diff --git a/README.md b/README.md index 17a15f0..dec3708 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,12 @@ Currently there are 2 library that can be use: --- #### How to use +* Authenticate with github container. + ```bash + export CR_PAT=YOUR_TOKEN_WITH_READ_ACCESS_TO_PACKAGES + echo $CR_PAT | docker login ghcr.io -u USERNAME --password-stdin + ``` + * Create ecs.php, if you wanna use ECS, see ecs.php.example. * Create ruleset.xml, if you want use PHPMD. * Ecs example: