From efd6abf88d315bd3c99362c414d864c0b8264597 Mon Sep 17 00:00:00 2001 From: Rob Bayliss Date: Mon, 19 Feb 2018 14:19:15 -0500 Subject: [PATCH 1/2] Add COMPOSER_AUTH variable to pass composer tokens into Docker --- docker-compose.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/docker-compose.yml b/docker-compose.yml index 8e2bdd9..4ef3c1e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -50,6 +50,7 @@ services: BLACKFIRE_CLIENT_ID: # Optionally set in .env. BLACKFIRE_CLIENT_TOKEN: # Optionally set in .env. COMPOSER_ALLOW_SUPERUSER: 1 + COMPOSER_AUTH: # Optionally pulled from environment working_dir: /var/www mysql: From c584bfc2bb6281024180ec0851d5a905c86661ce Mon Sep 17 00:00:00 2001 From: Rob Bayliss Date: Mon, 19 Feb 2018 14:25:40 -0500 Subject: [PATCH 2/2] Add environment variable documentation for COMPOSER_AUTH --- .env.example | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.env.example b/.env.example index 8b7e945..30eb1bf 100644 --- a/.env.example +++ b/.env.example @@ -49,6 +49,14 @@ # BLACKFIRE_SERVER_ID= # BLACKFIRE_SERVER_TOKEN= +# Inject Composer authentication information into your Docker containers. +# +# This is a JSON string. Hint: Rather than setting this here, you can also +# add the following line to your .bash_profile to have it set automatically +# for every project: +# export COMPOSER_AUTH=$(cat ~/.composer/auth.json) + +# COMPOSER_AUTH