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

environment variables not respected #42

Open
predmond opened this issue Jan 23, 2019 · 0 comments
Open

environment variables not respected #42

predmond opened this issue Jan 23, 2019 · 0 comments

Comments

@predmond
Copy link

I have a docker-compose file using this docker file and

  protractor:
    ...
    environment:
      - PGHOST=db

When I run the protractor container the PGHOST variable is not set. I believe this is because of the use of sudo in
sudo -u protractor xvfb-run --server-args="-screen 0 ${SCREEN_RES}" -a protractor $@

This should probably be sudo -E -u protractor ... to preserve the environment.

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