Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

satispress with basic-auth not working #3

Closed
jmreicha opened this issue Dec 27, 2020 · 1 comment
Closed

satispress with basic-auth not working #3

jmreicha opened this issue Dec 27, 2020 · 1 comment

Comments

@jmreicha
Copy link

jmreicha commented Dec 27, 2020

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?

@jmreicha
Copy link
Author

jmreicha commented Jan 6, 2021

Closing this one in favor of https://github.com/presslabs/stack-runtimes/issues/44.

@jmreicha jmreicha closed this as completed Jan 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant