Describe the bug as a Story
The directions for setting python interpreter are failing in PyCharm.
Attempting to set PyCharm Python interpreter to /usr/src/app/dev_env/docker/remote_interpreter/python_env.sh; fails with error permission denied even though user is root because the permissions on /usr/src/app/dev_env/docker/remote_interpreter/python_env.share set to-rw-r--r-on the docker image after runningpython run.py dev_env. The file permissions forpython_env.shin the host and repo are-rwxr-xr-x`. So permissions need to be updated on during deployment.
To Reproduce
Steps to reproduce the behavior:
Launch GovReady-Q using dev_env
Exec into container: docker exec -it govready_q_dev /bin/bash
Try to execute python: /usr/src/app/dev_env/docker/remote_interpreter/python_env.sh
See error: bash: /usr/src/app/dev_env/docker/remote_interpreter/python_env.sh: Permission denied
Expected behavior
Running /usr/src/app/dev_env/docker/remote_interpreter/python_env.sh takes you to Python shell prompt.
Screenshots
Developer hints
Please also update documentation to tell people to set IDE to not upload files to HOST.
Acceptance criteria
GIVEN this user starts containers using python run.py dev_env
WHEN I do this I try to run the interpreter.
THEN this python interpreter is used.
Describe the bug as a Story The directions for setting python interpreter are failing in PyCharm.
Attempting to set PyCharm Python interpreter to
/usr/src/app/dev_env/docker/remote_interpreter/python_env.sh; fails with error permission denied even though user is root because the permissions on
/usr/src/app/dev_env/docker/remote_interpreter/python_env.share set to
-rw-r--r-on the docker image after running
python run.py dev_env. The file permissions for
python_env.shin the host and repo are
-rwxr-xr-x`. So permissions need to be updated on during deployment.To Reproduce Steps to reproduce the behavior:
docker exec -it govready_q_dev /bin/bash
/usr/src/app/dev_env/docker/remote_interpreter/python_env.sh
bash: /usr/src/app/dev_env/docker/remote_interpreter/python_env.sh: Permission denied
Expected behavior Running
/usr/src/app/dev_env/docker/remote_interpreter/python_env.sh
takes you to Python shell prompt.Screenshots
Developer hints
Please also update documentation to tell people to set IDE to not upload files to HOST.
Acceptance criteria
GIVEN this user starts containers using
python run.py dev_env
WHEN I do this I try to run the interpreter. THEN this python interpreter is used.