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
Copy file name to clipboardExpand all lines: doc/sphinx-guides/source/container/running/demo.rst
+16-4Lines changed: 16 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,6 +29,8 @@ To stop the containers hit ``Ctrl-c`` (hold down the ``Ctrl`` key and then hit t
29
29
30
30
To start the containers, run ``docker compose up``.
31
31
32
+
.. _starting-over:
33
+
32
34
Deleting Data and Starting Over
33
35
-------------------------------
34
36
@@ -142,15 +144,25 @@ One you make this change it should be visible in the copyright in the bottom lef
142
144
Root Collection Customization (Alias, Name, etc.)
143
145
+++++++++++++++++++++++++++++++++++++++++++++++++
144
146
145
-
Before running ``docker compose up`` for the first time, you can customize the root collection by editing the ``init.sh`` script above.
147
+
Before running ``docker compose up`` for the first time, you can customize the root collection by placing a JSON file in the right place.
148
+
149
+
First, in the "demo" directory you created (see :ref:`demo-persona`), create a subdirectory called "config":
150
+
151
+
``mkdir demo/config``
146
152
147
-
First, uncomment the section that say "Updating root collection". Note that it references the file ``/scripts/bootstrap/demo/dataverse-complete.json``.
153
+
Next, download :download:`dataverse-complete.json <../../_static/api/dataverse-complete.json>` and put it in the "config" directory you just created. The contents of your "demo" directory should look something like this:
154
+
155
+
.. code-block:: bash
148
156
149
-
Next, download :download:`dataverse-complete.json <../../_static/api/dataverse-complete.json>` and put it in the "demo" directory you created (see :ref:`demo-persona`). That directory should how have two files: ``init.sh`` and ``dataverse-complete.json``.
157
+
% find demo
158
+
demo
159
+
demo/config
160
+
demo/config/dataverse-complete.json
161
+
demo/init.sh
150
162
151
163
Edit ``dataverse-complete.json`` to have the values you want. You'll want to refer to :ref:`update-dataverse-api` in the API Guide to understand the format. In that documentation you can find optional parameters as well.
152
164
153
-
To test your JSON file, run ``docker compose up``. Again, this only works when you are running ``docker compose up`` for the first time.
165
+
To test your JSON file, run ``docker compose up``. Again, this only works when you are running ``docker compose up`` for the first time. (You can always start over. See :ref:`starting-over`.)
0 commit comments