@fishawack/lab-env 5.9.0-beta.5 → 5.10.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +47 -0
- package/_Test/config-drupal.js +197 -0
- package/_Test/config-laravel.js +239 -0
- package/_Test/config-wordpress.js +200 -0
- package/_Test/force-managed-updates.js +1 -0
- package/bitbucket-pipelines.yml +2 -0
- package/commands/create/libs/runtime-versions.js +34 -0
- package/commands/create/services/aws/elasticbeanstalk.js +3 -2
- package/craftcms/3/docker-compose.yml +7 -5
- package/craftcms/3/php/Dockerfile +2 -1
- package/drupal/10/docker-compose.yml +71 -0
- package/drupal/10/php/CHANGELOG.md +4 -0
- package/drupal/10/php/Dockerfile +44 -0
- package/drupal/10/php/custom.ini +5 -0
- package/drupal/10/php/entrypoint.sh +27 -0
- package/drupal/10/php/package.json +11 -0
- package/drupal/10/php/policy.xml +99 -0
- package/drupal/9/docker-compose.yml +7 -5
- package/drupal/9/php/Dockerfile +2 -1
- package/globals.js +283 -209
- package/laravel/10/docker-compose.yml +3 -1
- package/laravel/10/php/CHANGELOG.md +3 -0
- package/laravel/10/php/Dockerfile +3 -2
- package/laravel/10/php/package.json +1 -1
- package/laravel/11/docker-compose.yml +92 -0
- package/laravel/11/php/CHANGELOG.md +4 -0
- package/laravel/11/php/Dockerfile +48 -0
- package/laravel/11/php/custom.ini +5 -0
- package/laravel/11/php/entrypoint.sh +27 -0
- package/laravel/11/php/package.json +11 -0
- package/laravel/11/php/policy.xml +99 -0
- package/laravel/8/docker-compose.yml +3 -1
- package/laravel/8/php/Dockerfile +2 -1
- package/laravel/9/docker-compose.yml +3 -1
- package/laravel/9/php/Dockerfile +2 -1
- package/package.json +1 -1
- package/php/8.2/Dockerfile +1 -1
- package/wordpress/1/docker-compose.yml +7 -5
- package/wordpress/1/php/Dockerfile +2 -1
- package/wordpress/2/docker-compose.yml +63 -0
- package/wordpress/2/php/CHANGELOG.md +4 -0
- package/wordpress/2/php/Dockerfile +44 -0
- package/wordpress/2/php/custom.ini +5 -0
- package/wordpress/2/php/entrypoint.sh +27 -0
- package/wordpress/2/php/package.json +11 -0
- package/wordpress/2/php/policy.xml +99 -0
- /package/_Ai/{laravel-12.md → laravel-@.md} +0 -0
|
@@ -1063,6 +1063,7 @@ describe("managed action AWS helpers (offline)", () => {
|
|
|
1063
1063
|
"@aws-sdk/client-elastic-beanstalk": sdk,
|
|
1064
1064
|
"../../libs/utilities": {},
|
|
1065
1065
|
"../../libs/vars": { awsClientConfig: {} },
|
|
1066
|
+
"../../libs/runtime-versions": { latest: () => undefined },
|
|
1066
1067
|
lodash: {},
|
|
1067
1068
|
});
|
|
1068
1069
|
}
|
package/bitbucket-pipelines.yml
CHANGED
|
@@ -40,6 +40,8 @@ pipelines:
|
|
|
40
40
|
- chown -R aws-runner:aws-runner /tmp
|
|
41
41
|
# Install
|
|
42
42
|
- su aws-runner -c 'npm run setup'
|
|
43
|
+
# Link this checkout as the global lab-env/fw binary so intercept.sh's `command lab-env` calls use it, not a stale global install baked into the runner image (run as root, since the existing global install isn't owned by aws-runner)
|
|
44
|
+
- npm link
|
|
43
45
|
# Test
|
|
44
46
|
- su aws-runner -c 'docker login $DOCKER_CREDENTIALS && npm test'
|
|
45
47
|
services:
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// Single source of truth for the PHP/MySQL runtime versions each framework's lab-env directory builds against.
|
|
2
|
+
// Consumed by globals.js (wires FW_<FRAMEWORK>_<VERSION>_{PHP,MYSQL}_RUNTIME env vars into docker-compose build
|
|
3
|
+
// args), by elasticbeanstalk.js (picks the EB PHP platform to provision), and by the _Test/config-*.js suites.
|
|
4
|
+
const RUNTIME_VERSIONS = {
|
|
5
|
+
laravel: {
|
|
6
|
+
8: { php: "7.4", mysql: "5.7" },
|
|
7
|
+
9: { php: "8.2", mysql: "8.4" },
|
|
8
|
+
10: { php: "8.4", mysql: "8.4" },
|
|
9
|
+
11: { php: "8.5", mysql: "8.4" },
|
|
10
|
+
},
|
|
11
|
+
drupal: {
|
|
12
|
+
9: { php: "8.2", mysql: "8.4" },
|
|
13
|
+
10: { php: "8.4", mysql: "8.4" },
|
|
14
|
+
},
|
|
15
|
+
wordpress: {
|
|
16
|
+
1: { php: "8.2", mysql: "8.4" },
|
|
17
|
+
2: { php: "8.4", mysql: "8.4" },
|
|
18
|
+
},
|
|
19
|
+
craftcms: {
|
|
20
|
+
3: { php: "7.4", mysql: "5.7" },
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
const latestVersion = (framework) =>
|
|
25
|
+
Object.keys(RUNTIME_VERSIONS[framework] || {})
|
|
26
|
+
.sort((a, b) => +a - +b)
|
|
27
|
+
.pop();
|
|
28
|
+
|
|
29
|
+
module.exports = {
|
|
30
|
+
runtimeVersions: RUNTIME_VERSIONS,
|
|
31
|
+
latestVersion,
|
|
32
|
+
latest: (framework, key) =>
|
|
33
|
+
RUNTIME_VERSIONS[framework]?.[latestVersion(framework)]?.[key],
|
|
34
|
+
};
|
|
@@ -27,6 +27,7 @@ const {
|
|
|
27
27
|
} = require("@aws-sdk/client-elastic-beanstalk");
|
|
28
28
|
const { Spinner, poll } = require("../../libs/utilities");
|
|
29
29
|
const { eb, secretGroups, awsClientConfig } = require("../../libs/vars");
|
|
30
|
+
const { latest } = require("../../libs/runtime-versions");
|
|
30
31
|
const { template } = require("lodash");
|
|
31
32
|
|
|
32
33
|
const getClient = () => new ElasticBeanstalkClient(awsClientConfig);
|
|
@@ -207,7 +208,7 @@ module.exports.getEnvironmentTags = async (environmentArn) => {
|
|
|
207
208
|
|
|
208
209
|
module.exports.createElasticBeanstalkEnvironment = async (
|
|
209
210
|
name,
|
|
210
|
-
{ language },
|
|
211
|
+
{ framework, language },
|
|
211
212
|
ApplicationName,
|
|
212
213
|
OptionSettings,
|
|
213
214
|
CNAMEPrefix,
|
|
@@ -221,7 +222,7 @@ module.exports.createElasticBeanstalkEnvironment = async (
|
|
|
221
222
|
},
|
|
222
223
|
);
|
|
223
224
|
|
|
224
|
-
let stackName =
|
|
225
|
+
let stackName = `PHP ${latest(framework, "php") || "8.2"}`;
|
|
225
226
|
switch (language) {
|
|
226
227
|
case "python":
|
|
227
228
|
stackName = "Python 3.13";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
services:
|
|
2
2
|
mysql:
|
|
3
3
|
platform: linux/amd64
|
|
4
|
-
image: mysql
|
|
4
|
+
image: mysql:${FW_CRAFTCMS_3_MYSQL_RUNTIME:-5.7}
|
|
5
5
|
networks:
|
|
6
6
|
- default
|
|
7
7
|
environment:
|
|
@@ -15,9 +15,9 @@ services:
|
|
|
15
15
|
- mysql:/var/lib/mysql
|
|
16
16
|
apache:
|
|
17
17
|
build:
|
|
18
|
-
context: $
|
|
18
|
+
context: $FW_CRAFTCMS_3_APACHE_CONTEXT
|
|
19
19
|
target: development
|
|
20
|
-
image:
|
|
20
|
+
image: $FW_CRAFTCMS_3_APACHE_IMAGE:${FW_CRAFTCMS_3_APACHE_VERSION:-latest}
|
|
21
21
|
working_dir: /app
|
|
22
22
|
networks:
|
|
23
23
|
- default
|
|
@@ -28,9 +28,11 @@ services:
|
|
|
28
28
|
- "${PORT_WEB:-8000}:8080"
|
|
29
29
|
php:
|
|
30
30
|
build:
|
|
31
|
-
context: $
|
|
31
|
+
context: $FW_CRAFTCMS_3_PHP_CONTEXT
|
|
32
32
|
target: development
|
|
33
|
-
|
|
33
|
+
args:
|
|
34
|
+
PHP_VERSION: ${FW_CRAFTCMS_3_PHP_RUNTIME:-7.4}
|
|
35
|
+
image: $FW_CRAFTCMS_3_PHP_IMAGE:${FW_CRAFTCMS_3_PHP_VERSION:-latest}
|
|
34
36
|
init: true
|
|
35
37
|
working_dir: /app
|
|
36
38
|
networks:
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
services:
|
|
2
|
+
mysql:
|
|
3
|
+
image: mysql:${FW_DRUPAL_10_MYSQL_RUNTIME:-8.4}
|
|
4
|
+
networks:
|
|
5
|
+
- default
|
|
6
|
+
environment:
|
|
7
|
+
- MYSQL_ROOT_PASSWORD=password
|
|
8
|
+
- MYSQL_DATABASE=${DB_DATABASE}
|
|
9
|
+
- MYSQL_USER=${DB_USERNAME}
|
|
10
|
+
- MYSQL_PASSWORD=${DB_PASSWORD}
|
|
11
|
+
ports:
|
|
12
|
+
- "${PORT_DB:-3306}:3306"
|
|
13
|
+
volumes:
|
|
14
|
+
- mysql:/var/lib/mysql
|
|
15
|
+
security_opt:
|
|
16
|
+
- seccomp:unconfined
|
|
17
|
+
apache:
|
|
18
|
+
build:
|
|
19
|
+
context: $FW_DRUPAL_9_APACHE_CONTEXT
|
|
20
|
+
target: development
|
|
21
|
+
image: $FW_DRUPAL_9_APACHE_IMAGE:${FW_DRUPAL_9_APACHE_VERSION:-latest}
|
|
22
|
+
working_dir: /app
|
|
23
|
+
networks:
|
|
24
|
+
- default
|
|
25
|
+
volumes:
|
|
26
|
+
- $CWD/:/app
|
|
27
|
+
- $CWD/themes:/app/web/themes
|
|
28
|
+
- $CWD/modules:/app/web/modules
|
|
29
|
+
- $CWD/sites:/app/web/sites
|
|
30
|
+
- $CWD/profiles:/app/web/profiles
|
|
31
|
+
- drupal:/app/web
|
|
32
|
+
ports:
|
|
33
|
+
- "${PORT_WEB:-8000}:8080"
|
|
34
|
+
php:
|
|
35
|
+
build:
|
|
36
|
+
context: $FW_DRUPAL_10_PHP_CONTEXT
|
|
37
|
+
target: development
|
|
38
|
+
args:
|
|
39
|
+
PHP_VERSION: ${FW_DRUPAL_10_PHP_RUNTIME:-8.4}
|
|
40
|
+
image: $FW_DRUPAL_10_PHP_IMAGE:${FW_DRUPAL_10_PHP_VERSION:-latest}
|
|
41
|
+
init: true
|
|
42
|
+
working_dir: /app
|
|
43
|
+
networks:
|
|
44
|
+
- default
|
|
45
|
+
volumes:
|
|
46
|
+
- $CWD/:/app
|
|
47
|
+
- $CWD/themes:/app/web/themes
|
|
48
|
+
- $CWD/modules:/app/web/modules
|
|
49
|
+
- $CWD/sites:/app/web/sites
|
|
50
|
+
- $CWD/profiles:/app/web/profiles
|
|
51
|
+
- vendor:/app/vendor
|
|
52
|
+
- drupal:/app/web
|
|
53
|
+
- $DIRNAME/_Shared/mysql-client/.my.cnf:/home/php/.my.cnf:ro
|
|
54
|
+
environment:
|
|
55
|
+
- FW_ROOT=${FW_ROOT:-}
|
|
56
|
+
- USER_UID=${USER_UID:-0}
|
|
57
|
+
- USER_GID=${USER_GID:-0}
|
|
58
|
+
core:
|
|
59
|
+
volumes:
|
|
60
|
+
- drupal:/app/web
|
|
61
|
+
|
|
62
|
+
networks:
|
|
63
|
+
default:
|
|
64
|
+
driver: "bridge"
|
|
65
|
+
volumes:
|
|
66
|
+
vendor:
|
|
67
|
+
driver: "local"
|
|
68
|
+
mysql:
|
|
69
|
+
driver: "local"
|
|
70
|
+
drupal:
|
|
71
|
+
driver: "local"
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
ARG PHP_VERSION
|
|
2
|
+
FROM chialab/php:${PHP_VERSION}-fpm AS development
|
|
3
|
+
|
|
4
|
+
LABEL org.opencontainers.image.authors="Mike Mellor <mike.mellor@avalerehealth.com>"
|
|
5
|
+
|
|
6
|
+
# Install ghostscript
|
|
7
|
+
RUN apt-get update && \
|
|
8
|
+
apt-get install -y ghostscript
|
|
9
|
+
|
|
10
|
+
# Install mysql client
|
|
11
|
+
RUN apt-get install -y mariadb-client
|
|
12
|
+
|
|
13
|
+
# Copy custom.ini
|
|
14
|
+
COPY ./custom.ini /usr/local/etc/php/conf.d/custom.ini
|
|
15
|
+
|
|
16
|
+
# Copy ImageMagick policy
|
|
17
|
+
COPY ./policy.xml /etc/ImageMagick-6/policy.xml
|
|
18
|
+
|
|
19
|
+
# Add php user
|
|
20
|
+
RUN useradd -m -G www-data -s /bin/bash php
|
|
21
|
+
|
|
22
|
+
# Change composer home dir
|
|
23
|
+
ENV COMPOSER_HOME=/home/php/.composer
|
|
24
|
+
|
|
25
|
+
# Cleanup apt-get install folders
|
|
26
|
+
RUN apt-get clean && \
|
|
27
|
+
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
|
28
|
+
|
|
29
|
+
COPY entrypoint.sh /bin/entrypoint.sh
|
|
30
|
+
RUN chmod +x /bin/entrypoint.sh
|
|
31
|
+
ENTRYPOINT ["/bin/entrypoint.sh"]
|
|
32
|
+
|
|
33
|
+
CMD ["php-fpm"]
|
|
34
|
+
|
|
35
|
+
FROM fishawack/lab-env-drupal-10-php:latest AS production
|
|
36
|
+
|
|
37
|
+
# Copy source code into container
|
|
38
|
+
COPY . /app
|
|
39
|
+
|
|
40
|
+
# Install composer dependencies
|
|
41
|
+
RUN TEMPFILE=$(mktemp) && \
|
|
42
|
+
curl -o "$TEMPFILE" "https://getcomposer.org/installer" && \
|
|
43
|
+
php <"$TEMPFILE" && \
|
|
44
|
+
./composer.phar install -d /app --no-dev --no-interaction --no-ansi --optimize-autoloader
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
|
|
3
|
+
# Setting $FW_ROOT will bypass the user switch to php
|
|
4
|
+
if [ -z "$FW_ROOT" ]; then
|
|
5
|
+
# Set php user id to match host users id so no permission issues outside of docker
|
|
6
|
+
usermod -u $USER_UID php &>/dev/null
|
|
7
|
+
|
|
8
|
+
# Fix access rights to stdout and stderr
|
|
9
|
+
chown php /proc/self/fd/{1,2}
|
|
10
|
+
|
|
11
|
+
# Own the vendor folder otherwise it'll be owned by root/previous php id which will prevent writing
|
|
12
|
+
chown php /app/vendor
|
|
13
|
+
|
|
14
|
+
# Own the web folder otherwise it'll be owned by root/previous php id which will prevent writing
|
|
15
|
+
chown php /app/web
|
|
16
|
+
|
|
17
|
+
# If bash command then start an non login interactive shell
|
|
18
|
+
if [[ "$@" == "bash" ]]; then
|
|
19
|
+
exec su php
|
|
20
|
+
# Otherwise pipe the command into the non login non interactive shell as a command to exec
|
|
21
|
+
else
|
|
22
|
+
exec su php -c "$@"
|
|
23
|
+
fi
|
|
24
|
+
else
|
|
25
|
+
echo "Accessing as root"
|
|
26
|
+
exec "$@"
|
|
27
|
+
fi
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "php",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "lab-env docker config for the php module",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"preversion": "docker login",
|
|
7
|
+
"postversion": "docker buildx build --target development --platform linux/amd64,linux/arm64 -t fishawack/lab-env-drupal-10-php:$npm_package_version -t fishawack/lab-env-drupal-10-php:latest --push . && git add . && git commit -m \"build: bumped fishawack/lab-env-drupal-10-php to $npm_package_version\""
|
|
8
|
+
},
|
|
9
|
+
"author": "Mike Mellor",
|
|
10
|
+
"license": "ISC"
|
|
11
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE policymap [
|
|
3
|
+
<!ELEMENT policymap (policy)*>
|
|
4
|
+
<!ATTLIST policymap xmlns CDATA #FIXED ''>
|
|
5
|
+
<!ELEMENT policy EMPTY>
|
|
6
|
+
<!ATTLIST policy xmlns CDATA #FIXED '' domain NMTOKEN #REQUIRED
|
|
7
|
+
name NMTOKEN #IMPLIED pattern CDATA #IMPLIED rights NMTOKEN #IMPLIED
|
|
8
|
+
stealth NMTOKEN #IMPLIED value CDATA #IMPLIED>
|
|
9
|
+
]>
|
|
10
|
+
<!--
|
|
11
|
+
Configure ImageMagick policies.
|
|
12
|
+
|
|
13
|
+
Domains include system, delegate, coder, filter, path, or resource.
|
|
14
|
+
|
|
15
|
+
Rights include none, read, write, execute and all. Use | to combine them,
|
|
16
|
+
for example: "read | write" to permit read from, or write to, a path.
|
|
17
|
+
|
|
18
|
+
Use a glob expression as a pattern.
|
|
19
|
+
|
|
20
|
+
Suppose we do not want users to process MPEG video images:
|
|
21
|
+
|
|
22
|
+
<policy domain="delegate" rights="none" pattern="mpeg:decode" />
|
|
23
|
+
|
|
24
|
+
Here we do not want users reading images from HTTP:
|
|
25
|
+
|
|
26
|
+
<policy domain="coder" rights="none" pattern="HTTP" />
|
|
27
|
+
|
|
28
|
+
The /repository file system is restricted to read only. We use a glob
|
|
29
|
+
expression to match all paths that start with /repository:
|
|
30
|
+
|
|
31
|
+
<policy domain="path" rights="read" pattern="/repository/*" />
|
|
32
|
+
|
|
33
|
+
Lets prevent users from executing any image filters:
|
|
34
|
+
|
|
35
|
+
<policy domain="filter" rights="none" pattern="*" />
|
|
36
|
+
|
|
37
|
+
Any large image is cached to disk rather than memory:
|
|
38
|
+
|
|
39
|
+
<policy domain="resource" name="area" value="1GP"/>
|
|
40
|
+
|
|
41
|
+
Use the default system font unless overwridden by the application:
|
|
42
|
+
|
|
43
|
+
<policy domain="system" name="font" value="/usr/share/fonts/favorite.ttf"/>
|
|
44
|
+
|
|
45
|
+
Define arguments for the memory, map, area, width, height and disk resources
|
|
46
|
+
with SI prefixes (.e.g 100MB). In addition, resource policies are maximums
|
|
47
|
+
for each instance of ImageMagick (e.g. policy memory limit 1GB, -limit 2GB
|
|
48
|
+
exceeds policy maximum so memory limit is 1GB).
|
|
49
|
+
|
|
50
|
+
Rules are processed in order. Here we want to restrict ImageMagick to only
|
|
51
|
+
read or write a small subset of proven web-safe image types:
|
|
52
|
+
|
|
53
|
+
<policy domain="delegate" rights="none" pattern="*" />
|
|
54
|
+
<policy domain="filter" rights="none" pattern="*" />
|
|
55
|
+
<policy domain="coder" rights="none" pattern="*" />
|
|
56
|
+
<policy domain="coder" rights="read|write" pattern="{GIF,JPEG,PNG,WEBP}" />
|
|
57
|
+
-->
|
|
58
|
+
<policymap>
|
|
59
|
+
<!-- <policy domain="resource" name="temporary-path" value="/tmp"/> -->
|
|
60
|
+
<policy domain="resource" name="memory" value="256MiB"/>
|
|
61
|
+
<policy domain="resource" name="map" value="512MiB"/>
|
|
62
|
+
<policy domain="resource" name="width" value="16KP"/>
|
|
63
|
+
<policy domain="resource" name="height" value="16KP"/>
|
|
64
|
+
<!-- <policy domain="resource" name="list-length" value="128"/> -->
|
|
65
|
+
<policy domain="resource" name="area" value="128MP"/>
|
|
66
|
+
<policy domain="resource" name="disk" value="1GiB"/>
|
|
67
|
+
<!-- <policy domain="resource" name="file" value="768"/> -->
|
|
68
|
+
<!-- <policy domain="resource" name="thread" value="4"/> -->
|
|
69
|
+
<!-- <policy domain="resource" name="throttle" value="0"/> -->
|
|
70
|
+
<!-- <policy domain="resource" name="time" value="3600"/> -->
|
|
71
|
+
<!-- <policy domain="coder" rights="none" pattern="MVG" /> -->
|
|
72
|
+
<!-- <policy domain="module" rights="none" pattern="{PS,PDF,XPS}" /> -->
|
|
73
|
+
<!-- <policy domain="path" rights="none" pattern="@*" /> -->
|
|
74
|
+
<!-- <policy domain="cache" name="memory-map" value="anonymous"/> -->
|
|
75
|
+
<!-- <policy domain="cache" name="synchronize" value="True"/> -->
|
|
76
|
+
<!-- <policy domain="cache" name="shared-secret" value="passphrase" stealth="true"/> -->
|
|
77
|
+
<!-- <policy domain="system" name="max-memory-request" value="256MiB"/> -->
|
|
78
|
+
<!-- <policy domain="system" name="shred" value="2"/> -->
|
|
79
|
+
<!-- <policy domain="system" name="precision" value="6"/> -->
|
|
80
|
+
<!-- <policy domain="system" name="font" value="/path/to/font.ttf"/> -->
|
|
81
|
+
<!-- <policy domain="system" name="pixel-cache-memory" value="anonymous"/> -->
|
|
82
|
+
<!-- <policy domain="system" name="shred" value="2"/> -->
|
|
83
|
+
<!-- <policy domain="system" name="precision" value="6"/> -->
|
|
84
|
+
<!-- not needed due to the need to use explicitly by mvg: -->
|
|
85
|
+
<!-- <policy domain="delegate" rights="none" pattern="MVG" /> -->
|
|
86
|
+
<!-- use curl -->
|
|
87
|
+
<policy domain="delegate" rights="none" pattern="URL" />
|
|
88
|
+
<policy domain="delegate" rights="none" pattern="HTTPS" />
|
|
89
|
+
<policy domain="delegate" rights="none" pattern="HTTP" />
|
|
90
|
+
<!-- in order to avoid to get image with password text -->
|
|
91
|
+
<policy domain="path" rights="none" pattern="@*"/>
|
|
92
|
+
<!-- disable ghostscript format types -->
|
|
93
|
+
<!-- <policy domain="coder" rights="none" pattern="PS" />
|
|
94
|
+
<policy domain="coder" rights="none" pattern="PS2" />
|
|
95
|
+
<policy domain="coder" rights="none" pattern="PS3" />
|
|
96
|
+
<policy domain="coder" rights="none" pattern="EPS" />
|
|
97
|
+
<policy domain="coder" rights="none" pattern="PDF" />
|
|
98
|
+
<policy domain="coder" rights="none" pattern="XPS" /> -->
|
|
99
|
+
</policymap>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
services:
|
|
2
2
|
mysql:
|
|
3
|
-
image: mysql
|
|
3
|
+
image: mysql:${FW_DRUPAL_9_MYSQL_RUNTIME:-8.4}
|
|
4
4
|
networks:
|
|
5
5
|
- default
|
|
6
6
|
environment:
|
|
@@ -16,9 +16,9 @@ services:
|
|
|
16
16
|
- seccomp:unconfined
|
|
17
17
|
apache:
|
|
18
18
|
build:
|
|
19
|
-
context: $
|
|
19
|
+
context: $FW_DRUPAL_9_APACHE_CONTEXT
|
|
20
20
|
target: development
|
|
21
|
-
image:
|
|
21
|
+
image: $FW_DRUPAL_9_APACHE_IMAGE:${FW_DRUPAL_9_APACHE_VERSION:-latest}
|
|
22
22
|
working_dir: /app
|
|
23
23
|
networks:
|
|
24
24
|
- default
|
|
@@ -33,9 +33,11 @@ services:
|
|
|
33
33
|
- "${PORT_WEB:-8000}:8080"
|
|
34
34
|
php:
|
|
35
35
|
build:
|
|
36
|
-
context: $
|
|
36
|
+
context: $FW_DRUPAL_9_PHP_CONTEXT
|
|
37
37
|
target: development
|
|
38
|
-
|
|
38
|
+
args:
|
|
39
|
+
PHP_VERSION: ${FW_DRUPAL_9_PHP_RUNTIME:-8.2}
|
|
40
|
+
image: $FW_DRUPAL_9_PHP_IMAGE:${FW_DRUPAL_9_PHP_VERSION:-latest}
|
|
39
41
|
init: true
|
|
40
42
|
working_dir: /app
|
|
41
43
|
networks:
|
package/drupal/9/php/Dockerfile
CHANGED