Create and use de-identified research databases. Preprocess, extract text, anonymise/de-identify, link, apply natural language processing, query for research, manage consent for contact.
GNU General Public License v3.0
19
stars
7
forks
source link
Installer broken with Docker Compose >= 2.14.1 #110
Since Docker Compose 2.14.1, the installer fails with this output:
e497f00c1145 Extracting [==================================================>] 504B/504B
e497f00c1145 Extracting [==================================================>] 504B/504B
e497f00c1145 Pull complete
crate_workers Pulled
/bin/bash: /crate/venv/bin/activate: No such file or directory
/bin/bash: crate_print_demo_crateweb_config: command not found
Traceback (most recent call last):
File "/home/runner/work/crate/crate/installer/installer.py", line 1231, in <module>
main()
File "/home/runner/work/crate/crate/installer/installer.py", line 1212, in main
installer.install()
File "/home/runner/work/crate/crate/installer/installer.py", line 317, in install
self.create_local_settings()
File "/home/runner/work/crate/crate/installer/installer.py", line 562, in create_local_settings
self.run_crate_command(
File "/home/runner/work/crate/crate/installer/installer.py", line 356, in run_crate_command
self.run_bash_command_inside_docker(
File "/home/runner/work/crate/crate/installer/installer.py", line 1042, in run_bash_command_inside_docker
docker.compose.run(
File "/home/runner/.virtualenvs/crate-installer/lib/python3.8/site-packages/python_on_whales/components/compose/cli_wrapper.py", line 450, in run
result = run(full_cmd, tty=tty)
File "/home/runner/.virtualenvs/crate-installer/lib/python3.8/site-packages/python_on_whales/utils.py", line 177, in run
raise DockerException(
python_on_whales.exceptions.DockerException: The docker command executed was `/usr/bin/docker compose run --rm crate_workers /bin/bash -c source /crate/venv/bin/activate; crate_print_demo_crateweb_config --leave_placeholders > $CRATE_WEB_LOCAL_SETTINGS`.
It returned with code 127
The content of stdout can be found above the stacktrace (it wasn't captured).
The content of stderr can be found above the stacktrace (it wasn't captured).
Error: Process completed with exit code 1.
ie the docker compose run line to create the local settings no longer executes the commands in the crate.Dockerfile to set up the virtual environment before the command is run. Hence the No such file or directory error.
The problem is that since Docker Compose 2.14.1, an attempt will be made to pull any named image before building it from a Dockerfile. Fixed in ab09f07f04206a6acb0235be345bf1db5840c4da
Since Docker Compose 2.14.1, the installer fails with this output:
on earlier versions, the output was:
ie the
docker compose run
line to create the local settings no longer executes the commands in thecrate.Dockerfile
to set up the virtual environment before the command is run. Hence theNo such file or directory
error.