-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
49 lines (39 loc) · 1.44 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
ARG BASE_IMAGE_TAG=10.1
FROM wengerk/drupal-for-contrib:${BASE_IMAGE_TAG}
# Drupal Commerce 2.20+ requires bcmath extensions.
RUN docker-php-ext-install bcmath
ENV COMPOSER_MEMORY_LIMIT=-1
# Disable deprecation notice because of Drupal Commerce hard-dependency.
ENV SYMFONY_DEPRECATIONS_HELPER=disabled
# Install Drupal Commerce as required by the module
RUN composer require drupal/commerce:^2.33 'drupal/inline_entity_form:^1.0@RC'
# Install the TrustedShops PHP SDK as required by the module
RUN composer require antistatique/trustedshops-php-sdk:^1.0.0
# Register the Drupal and DrupalPractice Standard with PHPCS.
RUN ./vendor/bin/phpcs --config-set installed_paths \
`pwd`/vendor/drupal/coder/coder_sniffer
# Copy the Analyzer definition files to ease run.
COPY phpcs.xml.dist phpmd.xml ./
# Download & install PHPMD.
RUN set -eux; \
curl -LJO https://phpmd.org/static/latest/phpmd.phar; \
chmod +x phpmd.phar; \
mv phpmd.phar /usr/bin/phpmd
# Download & install PHPCPD.
RUN set -eux; \
curl -LJO https://phar.phpunit.de/phpcpd.phar; \
chmod +x phpcpd.phar; \
mv phpcpd.phar /usr/bin/phpcpd
# Download & install PhpDeprecationDetector.
RUN set -eux; \
\
apt-get update; \
apt-get install -y \
libbz2-dev \
; \
\
docker-php-ext-install bz2; \
\
curl -LJO https://github.com/wapmorgan/PhpDeprecationDetector/releases/download/2.0.24/phpcf-2.0.24.phar; \
chmod +x phpcf-2.0.24.phar; \
mv phpcf-2.0.24.phar /usr/bin/phpdd