You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attempting to get basic auth working with the satispress plugin I am running into some issues.
As part of my build process I do composer update and then, docker build . --file Dockerfile --tag image:tag and it works well, but when I attempt to add packages using satispress with composer and an accompanying auth.json that sits next to composer.json for basic-auth I get the following error.
[Composer\Downloader\TransportException]
The 'https://mydomain.com/satispress/affiliate-wp/2.6.3' URL required authentication.
You must be using the interactive console to authenticate
install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--] [<packages>]...
The command '/bin/bash -o pipefail -c composer install --no-dev --no-interaction --no-progress --no-ansi --no-scripts' returned a non-zero code: 255
I can't figure out why it isn't working, my guess is that the auth.json file is never picked up as part of the build. It looks like there is a way to set up the auth with the COMPOSER_AUTH environment variable as part of the build but don't know if there is a way to inject this into the Docker build.
I can't seem to find the base Dockerfile, so I can't think of a way to inject the additional config into the base image?
Maybe there is an easy way to accomplish this? Or am I looking in the wrong place?
The text was updated successfully, but these errors were encountered:
When attempting to get basic auth working with the satispress plugin I am running into some issues.
As part of my build process I do
composer update
and then,docker build . --file Dockerfile --tag image:tag
and it works well, but when I attempt to add packages using satispress with composer and an accompanyingauth.json
that sits next tocomposer.json
for basic-auth I get the following error.I can't figure out why it isn't working, my guess is that the auth.json file is never picked up as part of the build. It looks like there is a way to set up the auth with the
COMPOSER_AUTH
environment variable as part of the build but don't know if there is a way to inject this into the Docker build.I can't seem to find the base Dockerfile, so I can't think of a way to inject the additional config into the base image?
Maybe there is an easy way to accomplish this? Or am I looking in the wrong place?
The text was updated successfully, but these errors were encountered: