Skip to content

Commit

Permalink
Fixed missing SSH agent forwarding and extra_hosts entries on php-bla…
Browse files Browse the repository at this point in the history
…ckfire container

Related to wardenenv#145
  • Loading branch information
davidalger committed May 13, 2020
1 parent c776ce3 commit 7a22fd1
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
* Updated `php-fpm` images to use `fpm-loaders` variant of base image to include IonCube & SourceGuardian from upstream images
* Updated `php-fpm` images fix for directory ownership of mounted volume paths for future flexibility by moving it to the `docker-entrypoint` script with an env var `CHOWN_DIR_LIST` to specify what directories to chown on container startup

**Bug Fixes:**

* Fixed missing SSH agent forwarding in `php-blackfire` container
* Fixed lack of `extra_hosts` in `php-blackfire` and `blackfire-agent` containers (issue [#145](https://github.com/davidalger/warden/issues/145))

## Version [0.4.3](https://github.com/davidalger/warden/tree/0.4.3) (2020-05-02)
[All Commits](https://github.com/davidalger/warden/compare/0.4.2..0.4.3)

Expand Down
11 changes: 11 additions & 0 deletions environments/magento2/magento2.blackfire.base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@ services:
php-blackfire:
hostname: "${WARDEN_ENV_NAME}-php-blackfire"
image: quay.io/warden/php-fpm:${PHP_VERSION:-7.3}-magento2-blackfire
environment:
- TRAEFIK_DOMAIN
- TRAEFIK_SUBDOMAIN
- SSH_AUTH_SOCK=/tmp/ssh-auth.sock
- NODE_VERSION=${NODE_VERSION:-10}
extra_hosts:
- ${TRAEFIK_DOMAIN}:${TRAEFIK_ADDRESS:-0.0.0.0}
- ${TRAEFIK_SUBDOMAIN:-app}.${TRAEFIK_DOMAIN}:${TRAEFIK_ADDRESS:-0.0.0.0}
depends_on:
- php-fpm

Expand All @@ -14,3 +22,6 @@ services:
- BLACKFIRE_CLIENT_TOKEN=${BLACKFIRE_CLIENT_TOKEN}
- BLACKFIRE_SERVER_ID=${BLACKFIRE_SERVER_ID}
- BLACKFIRE_SERVER_TOKEN=${BLACKFIRE_SERVER_TOKEN}
extra_hosts:
- ${TRAEFIK_DOMAIN}:${TRAEFIK_ADDRESS:-0.0.0.0}
- ${TRAEFIK_SUBDOMAIN:-app}.${TRAEFIK_DOMAIN}:${TRAEFIK_ADDRESS:-0.0.0.0}
1 change: 1 addition & 0 deletions environments/magento2/magento2.blackfire.darwin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ services:
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

Expand Down
1 change: 1 addition & 0 deletions environments/magento2/magento2.blackfire.linux-gnu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ services:
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

0 comments on commit 7a22fd1

Please sign in to comment.