Skip to content

Commit 2138293

Browse files
ndouglasNathan DouglasswirtSJWdependabot[bot]
authored
VACMS-6461: Creates Dockerfile. (#6570)
* VACMS-6461: Creates Dockerfile. * VACMS-0000: Ignores module and core updates on status-error check. (#6590) Co-authored-by: Nathan Douglas <[email protected]> * VACMS-6561 Add and enable drupal graphql_menu module. (#6568) * Bump mglaman/phpstan-drupal from 0.12.13 to 0.12.14 (#6588) Bumps [mglaman/phpstan-drupal](https://github.com/mglaman/phpstan-drupal) from 0.12.13 to 0.12.14. - [Release notes](https://github.com/mglaman/phpstan-drupal/releases) - [Commits](mglaman/phpstan-drupal@0.12.13...0.12.14) --- updated-dependencies: - dependency-name: mglaman/phpstan-drupal dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Removes .git from .dockerignore. * Removes some other things from .dockerignore -- they weren't helping much anyway. * xdebug, imprisoning me, all that i see, absolute horror * Removes comments that were breaking PHPCS. * Removes docker-compose.yaml. Co-authored-by: Nathan Douglas <[email protected]> Co-authored-by: Steve Wirt <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent ad03fc2 commit 2138293

File tree

4 files changed

+147
-6
lines changed

4 files changed

+147
-6
lines changed

.dockerignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
docroot/sites/default/files/*
2+
!docroot/sites/default/files/.htaccess
3+
docroot/sites/simpletest
4+
5+
**/.DS_Store

Dockerfile

+80
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
FROM php:7.3-apache AS cms_build
2+
3+
ENV CMS_REPO_ROOT="/var/www/cms"
4+
ENV CMS_DOCROOT="$CMS_REPO_ROOT/docroot"
5+
ENV PHP_VERSION="7.3"
6+
ENV CMS_ENVIRONMENT_TYPE="eks"
7+
8+
# Copy Composer into container rather than installing it.
9+
COPY --from=composer:2.1.8 /usr/bin/composer /usr/local/bin/composer
10+
11+
# php-extension-installer makes working with PHP modules a lot easier
12+
COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/local/bin/
13+
14+
# Install VA internal certificate.
15+
ADD http://crl.pki.va.gov/PKI/AIA/VA/VA-Internal-S2-RCA1-v1.cer /usr/local/share/ca-certificates/
16+
RUN openssl x509 -inform DER -in /usr/local/share/ca-certificates/VA-Internal-S2-RCA1-v1.cer -out /usr/local/share/ca-certificates/VA-Internal-S2-RCA1-v1.crt
17+
RUN update-ca-certificates
18+
19+
# Use default production values.
20+
RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
21+
22+
# Inject PHP conf overrides.
23+
COPY .lando/zzz-lando-my-custom.ini $PHP_INI_DIR/conf.d/my-php.ini
24+
25+
# Change docroot.
26+
RUN sed -ri -e 's#/var/www/html#${CMS_DOCROOT}#g' \
27+
/etc/apache2/sites-available/*.conf \
28+
&& sed -ri -e 's#/var/www/#${CMS_DOCROOT}#g' \
29+
/etc/apache2/apache2.conf \
30+
/etc/apache2/conf-available/*.conf
31+
32+
# Enable mod_rewrite.
33+
RUN a2enmod rewrite
34+
35+
# Install dependencies
36+
RUN apt-get update \
37+
&& apt-get install -y \
38+
# Git (for Composer/etc modules)
39+
git \
40+
mariadb-client \
41+
# unzip (for unzipping Composer zip files)
42+
unzip
43+
44+
# Install PHP extensions.
45+
RUN install-php-extensions \
46+
apcu \
47+
bcmath \
48+
bz2 \
49+
calendar \
50+
exif \
51+
gd \
52+
gettext \
53+
imagick \
54+
imap \
55+
intl \
56+
ldap \
57+
mbstring \
58+
memcached \
59+
oauth \
60+
pcntl \
61+
memcache \
62+
opcache \
63+
pdo_mysql \
64+
redis \
65+
soap \
66+
# NO STOP DIE DIE DIE
67+
# xdebug \
68+
# Drush 10 requirement
69+
zip
70+
71+
# Copy in the repository.
72+
COPY . $CMS_REPO_ROOT
73+
RUN chown -R www-data:www-data $CMS_REPO_ROOT/..
74+
75+
USER www-data
76+
77+
WORKDIR $CMS_REPO_ROOT
78+
79+
USER root
80+

composer.lock

+21-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<?php
2+
3+
// phpcs:ignoreFile
4+
5+
include dirname(__FILE__) . '/settings.brd_common.php';
6+
7+
$config['config_split.config_split.dev']['status'] = FALSE;
8+
$config['config_split.config_split.stg']['status'] = FALSE;
9+
$config['config_split.config_split.prod']['status'] = FALSE;
10+
$config['config_split.config_split.local']['status'] = FALSE;
11+
$config['config_split.config_split.tugboat']['status'] = FALSE;
12+
13+
$config['system.performance']['cache']['page']['use_internal'] = TRUE;
14+
$config['system.performance']['css']['preprocess'] = TRUE;
15+
$config['system.performance']['css']['gzip'] = TRUE;
16+
$config['system.performance']['js']['preprocess'] = TRUE;
17+
$config['system.performance']['js']['gzip'] = TRUE;
18+
$config['system.performance']['response']['gzip'] = TRUE;
19+
$config['views.settings']['ui']['show']['sql_query']['enabled'] = FALSE;
20+
$config['views.settings']['ui']['show']['performance_statistics'] = FALSE;
21+
$config['system.logging']['error_level'] = 'none';
22+
$config['environment_indicator.indicator']['bg_color'] = '#800080'; // Deep Purple
23+
$config['environment_indicator.indicator']['fg_color'] = '#ffffff';
24+
$config['environment_indicator.indicator']['name'] = 'EKS';
25+
26+
$webhost_on_cli = 'https://prod.cms.va.gov';
27+
28+
$settings['trusted_host_patterns'] = [
29+
// For ALB/ELB Healthchecks.
30+
'10\.199.*',
31+
'10\.247.*',
32+
'localhost',
33+
'va-gov-cms.lndo.site',
34+
'prod.cms.va.gov',
35+
'test.prod.cms.va.gov',
36+
'cms.va.gov',
37+
'.*\.us-gov-west-1\.elb\.amazonaws\.com',
38+
];
39+
40+
$settings['va_gov_frontend_build_type'] = 'eks';
41+
$settings['va_gov_frontend_url'] = 'http://localhost:8080';

0 commit comments

Comments
 (0)