Clone the repository
git clone https://code.oak-tree.tech/oak-tree/medical-imaging/imaging-development-env.git cd imaging-development-env/
Local environment data is stored in the
local/ folder. Make sure it exists:
Create the environment through the
docker-compose YAML files. If you're looking to utilize GPU acceleration for Jupyter, please see this page. If using
pacs-secure.yaml what to do?
echo "Creating Sonador Environment..." docker-compose -f compose/core.yaml up -d docker-compose -f compose/pacs.yaml up -d docker-compose -f compose/sonador.yaml up -d docker-compose -f compose/message-broker.yaml up -d docker-compose -f compose/airflow-etl.yaml up -d docker-compose -f compose/web-proxy.yaml up -d docker-compose -f compose/analytics.yaml up -d
Add a line to your
Give the system a few moments to initialize, then
exec into the Sonador container.
docker exec -it compose_imaging_1 bash
Once inside the container, execute the following commands to create a superuser.
cd /srv/www/sonador/sonador/ python3 manage.py createsuperuser
Complete the superuser creation operation, then press
ctrl + d to escape the container shell.
Now, open a browser tab and navigate to the following URL: http://127.0.0.1:8070/admin/
Use the superuser credentials created in the previous step to sign in.
Fill in the following values:
- Check Default Server
Internal Control Scheme:
Save this value, as it is used to initialize a Python Client connection.
Under the User label, select your superuser then click Save and continue editing. Copy & save the Access Token value, as it is also necessary to initialize a Python Client connection.
Switch back to the terminal and execute the following command.
docker-compose -f compose/analytics.yaml logs
At the end of the logs, a visual similar to this should appear:
... jupyter_1 | To access the notebook, open this file in a browser: jupyter_1 | file:///home/jovyan/.local/share/jupyter/runtime/nbserver-13-open.html jupyter_1 | Or copy and paste one of these URLs: jupyter_1 | http://47f1f21c3a62:8888/?token=... jupyter_1 | or http://127.0.0.1:8888/?token=... ...
Copy the url that begins with
http://127.0.0.1:8888/?token= and paste that into the browser.
Congratulations, you now have a working Sonador Development Environment.