You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2. Deploy a test cluster (including a SLURM simulator, database, and DRMAAtic) using the provided docker compose file:
18
+
19
+
.. code-block:: bash
20
+
18
21
cd testing
19
-
docker-compose up -d
22
+
docker-compose up -d
23
+
24
+
This will start a local SLURM controller, a compute node, a MySQL database, and the DRMAAtic REST API service in containers, creating a self-contained test cluster environment.
25
+
26
+
3. OR deploy with an existing cluster:
27
+
28
+
* Edit configuration files (like ``slurm.conf``, database settings, etc.) in ``/deploy/deploy-example/`` to match your cluster.
29
+
* Start the DRMAAtic container and connect it to your cluster’s SLURM and database:
30
+
31
+
.. code-block:: bash
20
32
21
-
3. OR deploy with an existing cluster using:
22
33
cd ../deploy-example
23
34
docker-compose up -d
24
35
25
-
Post-install, run migrations and create a superuser:
Ensure you have SLURM installed on the host and its DRMAA library available (the drmaa Python package will interface with it).
54
+
55
+
2. Configure the database: By default DRMAAtic uses MySQL/MariaDB. Set up a database and update the Django settings (or ``.env`` files in ``server/settings/``) with the DB credentials. For example, create a MySQL database named drmaatic and update ``server/settings/.env`` accordingly.
56
+
57
+
3. Run database migrations to set up the schema:
58
+
59
+
.. code-block:: bash
60
+
61
+
python manage.py makemigrations
37
62
python manage.py migrate
38
-
python manage.py createsuperuser
63
+
64
+
This will create the necessary tables for tasks, users, etc. in the database.
65
+
66
+
4. Create a superuser account for the Django admin (to manage tasks, etc.):
67
+
68
+
.. code-block:: bash
69
+
70
+
python manage.py createsuperuser
71
+
72
+
Follow the prompts to set up an admin username and password
73
+
74
+
5. Start the DRMAAtic server:
75
+
76
+
.. code-block:: bash
39
77
40
-
3. Run the server:
41
78
python manage.py runserver
79
+
80
+
By default, this will run the development server at ``http://127.0.0.1:8000/``. You should now have the DRMAAtic API available (though without a running SLURM, job submission will not function).
81
+
82
+
.. NOTE:: Accessing the Web API: Once running, the API endpoints can be accessed via ``http://<server>/api/...`` (if using the development server or appropriate host/port for Docker). You can also log into the Django admin UI at ``http://<server>/admin/`` using the superuser credentials, to configure tasks and view job records.
0 commit comments