-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
setup/docker/create_database.sh throws errors #1050
Comments
Maybe the script runs in a new shell and doesn't find the docker-compose Try modifying it to activate the virtualenv. |
It looks like you responded to the initial comment via email... I updated the OP shortly after I posted with more details after I tracked it down further... |
Indeed I have, but my suggestion is still relevant. Just activate the virtualenv as part of this script. |
Fixed in #1530. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Setting up a new Redash instance using Docker compose and redash image 0.11.0.b1807
I'm using docker-compose 1.7.1 installed via pip into a virtualenvironment.
When I run
./setup/docker/create_database.sh
with the docker-compose virtualenv activated, it ends with the following errors:This is because virtualenv prepends
PATH
with the path to the virtualenv that has docker-compose, but this gets reset when you dump/source thePATH
from the postgres container here:https://github.com/getredash/redash/blob/master/setup/docker/create_database.sh#L16
So from that point onward in the script, docker-compose can't be found.
Also, looks like
docker-compose
1.7.0 now supports adocker-compose exec
command, perhaps that should be used here?https://github.com/docker/compose/releases
The text was updated successfully, but these errors were encountered: