The above instruction of “docker-compose run web init” differs from the documentation which states “docker-compose run --rm web /root/init.sh”
Also, using either after a “docker compose build” using the docker-compose-local-dev.yml results in the below error:
$ docker compose run web init
[+] Running 5/5
Network docker_default Created 0.1s
Volume “docker_ralph_dbdata” Created 0.0s
Container docker-redis-1 Created 0.1s
Container docker-db-1 Created 0.1s
Container docker-nginx-1 Created 0.1s
[+] Running 3/3
Container docker-db-1 Started 1.7s
Container docker-nginx-1 Started 1.5s
Container docker-redis-1 Started 1.6s
Obtaining file:///var/local/ralph (from -r /var/local/ralph/requirements/test.txt (line 1))
Complete output from command python setup.py egg_info:
fatal: detected dubious ownership in repository at ‘/var/local/ralph’
To add an exception for this directory, call:
git config --global --add safe.directory /var/local/ralph
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/var/local/ralph/setup.py", line 25, in <module>
version=get_version(),
File "/var/local/ralph/setup.py", line 19, in get_version
ver = subprocess.check_output([script], shell=True)
File "/usr/lib/python3.6/subprocess.py", line 356, in check_output
**kwargs).stdout
File "/usr/lib/python3.6/subprocess.py", line 438, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['/var/local/ralph/get_version.sh']' returned non-zero exit status 128.
----------------------------------------
Command “python setup.py egg_info” failed with error code 1 in /var/local/ralph/
Any advice/updates on getting this to build/run in a docker environment/container?