forked from wardenenv/warden
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deduplicate php-fpm and php-debug container service specs
Summary of side-effects of these changes: * PHP_IDE_CONFIG is specified on both php-fpm and php-debug containers * Laravel environment will now default to PHP 7.3 (version is not currently being locked in .env file) * Magento 1 environment will now run default PHP 7.3 unless locked in .env file (it is and has been dumped to .env file as 7.2 for a while now) The drift in spec resulting from these changes follows: davidalger:09:12 AM:/sites/testenvs$ for type in local laravel magento1 magento2; do echo "==> comparing $type"; (cd $type; diff -u develop.yml <(warden env config)) done ==> comparing local ==> comparing laravel --- develop.yml 2020-05-11 11:57:43.000000000 -0500 +++ /dev/fd/63 2020-05-12 09:36:06.000000000 -0500 @@ -53,7 +53,7 @@ app.config.test: 0.0.0.0 config.test: 0.0.0.0 hostname: config-php-debug - image: quay.io/warden/php-fpm:7.2-debug + image: quay.io/warden/php-fpm:7.3-debug volumes: - /Users/davidalger/.warden/ssl/rootca/certs:/etc/ssl/warden-rootca-cert:ro - /Users/davidalger/.composer:/home/www-data/.composer:delegated @@ -64,6 +64,7 @@ - db environment: NODE_VERSION: '10' + PHP_IDE_CONFIG: serverName=config-docker SSH_AUTH_SOCK: /tmp/ssh-auth.sock TRAEFIK_DOMAIN: config.test TRAEFIK_SUBDOMAIN: app @@ -71,7 +72,7 @@ app.config.test: 0.0.0.0 config.test: 0.0.0.0 hostname: config-php-fpm - image: quay.io/warden/php-fpm:7.2 + image: quay.io/warden/php-fpm:7.3 volumes: - /Users/davidalger/.warden/ssl/rootca/certs:/etc/ssl/warden-rootca-cert:ro - /Users/davidalger/.composer:/home/www-data/.composer:delegated ==> comparing magento1 --- develop.yml 2020-05-11 11:57:59.000000000 -0500 +++ /dev/fd/63 2020-05-12 09:36:07.000000000 -0500 @@ -66,6 +66,7 @@ - db environment: NODE_VERSION: '10' + PHP_IDE_CONFIG: serverName=config-docker SSH_AUTH_SOCK: /tmp/ssh-auth.sock TRAEFIK_DOMAIN: config.test TRAEFIK_SUBDOMAIN: app ==> comparing magento2 --- develop.yml 2020-05-11 11:58:04.000000000 -0500 +++ /dev/fd/63 2020-05-12 09:36:07.000000000 -0500 @@ -84,6 +84,7 @@ - db environment: NODE_VERSION: '10' + PHP_IDE_CONFIG: serverName=config-docker SSH_AUTH_SOCK: /tmp/ssh-auth.sock TRAEFIK_DOMAIN: config.test TRAEFIK_SUBDOMAIN: app
- Loading branch information
1 parent
7a22fd1
commit 5331df4
Showing
13 changed files
with
99 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
{ | ||
"files.exclude": { | ||
"docs/_build": true | ||
} | ||
}, | ||
"cSpell.words": [ | ||
"appdata" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,20 @@ | ||
version: "3.5" | ||
|
||
x-volumes: &volumes | ||
- .${WARDEN_WEB_ROOT:-}/pub/media:/var/www/html/pub/media:delegated | ||
- appdata:/var/www/html | ||
|
||
services: | ||
nginx: | ||
environment: | ||
- XDEBUG_CONNECT_BACK_HOST=${XDEBUG_CONNECT_BACK_HOST:-host.docker.internal} | ||
volumes: | ||
- .${WARDEN_WEB_ROOT:-}/pub/media:/var/www/html/pub/media:delegated | ||
- appdata:/var/www/html | ||
volumes: *volumes | ||
|
||
php-fpm: | ||
volumes: | ||
- ${WARDEN_SSL_DIR}/rootca/certs:/etc/ssl/warden-rootca-cert:ro | ||
- ${WARDEN_COMPOSER_DIR}:/home/www-data/.composer:delegated | ||
- /run/host-services/ssh-auth.sock:/run/host-services/ssh-auth.sock | ||
- .${WARDEN_WEB_ROOT:-}/pub/media:/var/www/html/pub/media:delegated | ||
- appdata:/var/www/html | ||
volumes: *volumes | ||
|
||
php-debug: | ||
volumes: | ||
- ${WARDEN_SSL_DIR}/rootca/certs:/etc/ssl/warden-rootca-cert:ro | ||
- ${WARDEN_COMPOSER_DIR}:/home/www-data/.composer:delegated | ||
- /run/host-services/ssh-auth.sock:/run/host-services/ssh-auth.sock | ||
- .${WARDEN_WEB_ROOT:-}/pub/media:/var/www/html/pub/media:delegated | ||
- appdata:/var/www/html | ||
volumes: *volumes | ||
|
||
volumes: | ||
appdata: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,14 @@ | ||
version: "3.5" | ||
|
||
x-volumes: &volumes | ||
- .${WARDEN_WEB_ROOT:-}/:/var/www/html | ||
|
||
services: | ||
nginx: | ||
volumes: | ||
- .${WARDEN_WEB_ROOT:-}/:/var/www/html | ||
volumes: *volumes | ||
|
||
php-fpm: | ||
volumes: | ||
- ${WARDEN_SSL_DIR}/rootca/certs:/etc/ssl/warden-rootca-cert:ro | ||
- ${WARDEN_COMPOSER_DIR}:/home/www-data/.composer | ||
- ${SSH_AUTH_SOCK:-/dev/null}:/run/host-services/ssh-auth.sock | ||
- .${WARDEN_WEB_ROOT:-}/:/var/www/html | ||
volumes: *volumes | ||
|
||
php-debug: | ||
volumes: | ||
- ${WARDEN_SSL_DIR}/rootca/certs:/etc/ssl/warden-rootca-cert:ro | ||
- ${WARDEN_COMPOSER_DIR}:/home/www-data/.composer | ||
- ${SSH_AUTH_SOCK:-/dev/null}:/run/host-services/ssh-auth.sock | ||
- .${WARDEN_WEB_ROOT:-}/:/var/www/html | ||
volumes: *volumes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
version: "3.5" | ||
|
||
x-defaults: &defaults | ||
environment: | ||
- TRAEFIK_DOMAIN | ||
- TRAEFIK_SUBDOMAIN | ||
- SSH_AUTH_SOCK=/tmp/ssh-auth.sock | ||
- NODE_VERSION=${NODE_VERSION:-10} | ||
- PHP_IDE_CONFIG=serverName=${WARDEN_ENV_NAME}-docker | ||
extra_hosts: | ||
- ${TRAEFIK_DOMAIN}:${TRAEFIK_ADDRESS:-0.0.0.0} | ||
- ${TRAEFIK_SUBDOMAIN:-app}.${TRAEFIK_DOMAIN}:${TRAEFIK_ADDRESS:-0.0.0.0} | ||
volumes: | ||
- ${WARDEN_SSL_DIR}/rootca/certs:/etc/ssl/warden-rootca-cert:ro | ||
- ${WARDEN_COMPOSER_DIR}:/home/www-data/.composer:delegated | ||
|
||
services: | ||
php-fpm: | ||
<<: *defaults | ||
hostname: "${WARDEN_ENV_NAME}-php-fpm" | ||
image: quay.io/warden/php-fpm:${PHP_VERSION:-7.3}${WARDEN_SVC_PHP_VARIANT:-} | ||
depends_on: | ||
- db | ||
|
||
php-debug: | ||
<<: *defaults | ||
hostname: "${WARDEN_ENV_NAME}-php-debug" | ||
image: quay.io/warden/php-fpm:${PHP_VERSION:-7.3}${WARDEN_SVC_PHP_VARIANT:-}-debug | ||
depends_on: | ||
- php-fpm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
version: "3.5" | ||
|
||
x-volumes: &volumes | ||
- /run/host-services/ssh-auth.sock:/run/host-services/ssh-auth.sock | ||
|
||
services: | ||
php-fpm: { volumes: *volumes } | ||
php-debug: { volumes: *volumes } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
version: "3.5" | ||
|
||
x-volumes: &volumes | ||
- ${SSH_AUTH_SOCK:-/dev/null}:/run/host-services/ssh-auth.sock | ||
|
||
services: | ||
php-fpm: { volumes: *volumes } | ||
php-debug: { volumes: *volumes } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters