Skip to content

Commit d4700c4

Browse files
committed
Improve documentation for integrations app settings #31
Signed-off-by: tdruez <tdruez@nexb.com>
1 parent a633e2f commit d4700c4

File tree

3 files changed

+92
-43
lines changed

3 files changed

+92
-43
lines changed

docs/application-settings.rst

Lines changed: 61 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -63,34 +63,6 @@ responsible to provide your own validation of the Host header.
6363
6464
ALLOWED_HOSTS=*
6565
66-
.. _dejacode_settings_purldb:
67-
68-
PURLDB
69-
------
70-
71-
Provide the URL and API key of your `PurlDB <https://github.com/nexB/purldb/>`_
72-
instance.
73-
74-
::
75-
76-
PURLDB_URL=https://your-purldb-domain/
77-
PURLDB_API_KEY=apikeyexample
78-
79-
.. _dejacode_settings_vulnerablecode:
80-
81-
VULNERABLECODE
82-
--------------
83-
84-
You can either run your own instance of
85-
`VulnerableCode <https://github.com/nexB/vulnerablecode/>`_
86-
or connect to the public one.
87-
88-
Authentication is provided using an API key that you can obtain by registering at
89-
https://public.vulnerablecode.io/account/request_api_key/ ::
90-
91-
VULNERABLECODE_URL=https://public.vulnerablecode.io/
92-
VULNERABLECODE_API_KEY=apikeyexample
93-
9466
EMAIL
9567
-----
9668

@@ -187,11 +159,11 @@ to provide some progress about pipeline run execution.
187159

188160
Default: ``INFO``
189161

190-
The ``DEBUG`` value can be provided to this setting to see all ScanCode.io debug
162+
The ``DEBUG`` value can be provided to this setting to see all DejaCode debug
191163
messages to help track down configuration issues for example.
192164
This mode can be enabled globally through the ``.env`` file::
193165

194-
SCANCODEIO_LOG_LEVEL=DEBUG
166+
DEJACODE_LOG_LEVEL=DEBUG
195167

196168
.. _clamd-settings:
197169

@@ -222,6 +194,65 @@ default the ``US/Pacific`` time zone is used::
222194
You can view a detailed list of time zones `here.
223195
<https://en.wikipedia.org/wiki/List_of_tz_database_time_zones>`_
224196

197+
.. _dejacode_settings_aboutcode_integrations:
198+
199+
AboutCode integrations
200+
======================
201+
202+
To **integrate DejaCode with other applications within the AboutCode stack**,
203+
you have the flexibility to configure and set up integrations using the following
204+
application settings.
205+
206+
It's important to understand that employing application settings will make these
207+
integrations **globally accessible across all Dataspaces** within your DejaCode
208+
instance.
209+
210+
Alternatively, if you wish to tailor the availability of these features to a specific
211+
Dataspace, you can define and set those values directly within the Dataspace
212+
configuration. This can be done through the Dataspace admin UI, allowing you to scope
213+
the availability of these integrations exclusively to the designated Dataspace.
214+
215+
.. _dejacode_settings_scancodeio:
216+
217+
SCANCODEIO
218+
----------
219+
220+
Provide the URL and API key of your `ScanCode.io <https://github.com/nexB/scancode.io>`_
221+
instance.
222+
223+
.. code-block:: python
224+
225+
SCANCODEIO_URL=https://your_scancodeio.url/
226+
SCANCODEIO_API_KEY=insert_your_api_key_here
227+
228+
.. _dejacode_settings_purldb:
229+
230+
PURLDB
231+
------
232+
233+
Provide the URL and API key of your `PurlDB <https://github.com/nexB/purldb>`_ instance.
234+
235+
.. code-block:: python
236+
237+
PURLDB_URL=https://your-purldb.url/
238+
PURLDB_API_KEY=insert_your_api_key_here
239+
240+
.. _dejacode_settings_vulnerablecode:
241+
242+
VULNERABLECODE
243+
--------------
244+
245+
You can either run your own instance of
246+
`VulnerableCode <https://github.com/nexB/vulnerablecode>`_
247+
or connect to the public one https://public.vulnerablecode.io/.
248+
249+
.. note:: Providing an API key is optional when using the public VulnerableCode instance.
250+
251+
.. code-block:: python
252+
253+
VULNERABLECODE_URL=https://public.vulnerablecode.io/
254+
VULNERABLECODE_API_KEY=insert_your_api_key_here
255+
225256
LDAP Integration
226257
================
227258

docs/dataspace.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,8 @@ The basic techniques to use in your own Dataspace are:
278278
**Set usage policy from licenses** option in the dropdown list in the lower
279279
right hand corner of the form and follow the prompts to complete that action.
280280

281+
.. _dejacode_dataspace_scancodeio:
282+
281283
Enable package scanning with your ScanCode.io server
282284
====================================================
283285

@@ -344,6 +346,8 @@ You can:
344346
You can now access the **Scans** section from the **Tools** menu and request package
345347
scans from this view.
346348

349+
.. _dejacode_dataspace_purldb:
350+
347351
Enable PurlDB service
348352
=====================
349353

@@ -393,6 +397,8 @@ You can:
393397
You can now access the **PurlDB** section from the **Tools** menu and browse package
394398
from this view.
395399

400+
.. _dejacode_dataspace_vulnerablecode:
401+
396402
Enable VulnerableCodeDB service
397403
===============================
398404

docs/installation.rst

Lines changed: 25 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Refer to Docker's documentation for the best installation path for your system:
3333

3434
<a href="https://docs.docker.com/get-docker/" target="_blank" class="external">Get Docker</a>
3535

36-
2. Build the Image
36+
2. Build the image
3737
------------------
3838

3939
DejaCode comes with the necessary ``Dockerfile`` and ``docker-compose.yml`` files to
@@ -60,7 +60,7 @@ Create an **environment file**, and **build the Docker image** with::
6060
cd dejacode && make envfile
6161
docker compose build
6262

63-
3. Run the App
63+
3. Run the app
6464
--------------
6565

6666
To **run the DejaCode images as containers**, use the following command::
@@ -107,23 +107,35 @@ Use these credentials to access the application.
107107
For example, with Docker configured for 8 CPUs, allocate a minimum of 8 GB of
108108
memory.
109109

110+
5. Setup AboutCode integrations
111+
-------------------------------
112+
113+
You can enable DejaCode integrations with other applications in the AboutCode stack.
114+
115+
- **ScanCode.io**: Enable package scanning.
116+
Refer to :ref:`dejacode_dataspace_scancodeio`.
117+
- **PurlDB**: Access a database of scanned packages.
118+
Refer to :ref:`dejacode_dataspace_purldb`.
119+
- **VulnerableCodeDB**: Access a database of package vulnerabilities.
120+
Refer to :ref:`dejacode_dataspace_vulnerablecode`.
121+
110122
Hardware requirements
111123
=====================
112124

113125
The minimum hardware/system requirements for running DejaCode as an enterprise
114126
server are:
115127

116-
+-----------+----------------------------------------------------------------+
117-
| Item | Minimum |
118-
+===========+================================================================+
119-
| Processor | Modern X86 64 bits Intel Quad Core or better, or equivalent |
120-
+-----------+----------------------------------------------------------------+
121-
| Memory | 64 GB or more (ECC preferred) |
122-
+-----------+----------------------------------------------------------------+
123-
| Disk | 2 * 500GB SDD in RAID mirror setup (enterprise disk preferred) |
124-
+-----------+----------------------------------------------------------------+
125-
| OS | Ubuntu 22.04 LTS 64-bit server clean installation |
126-
+-----------+----------------------------------------------------------------+
128+
+-----------+------------------------------------------------------------------+
129+
| Item | Minimum |
130+
+===========+==================================================================+
131+
| Processor | Modern X86 64 bit Multi Core, with at least **4 physical cores** |
132+
+-----------+------------------------------------------------------------------+
133+
| Memory | **64 GB** or more (ECC preferred) |
134+
+-----------+------------------------------------------------------------------+
135+
| Disk | 2 * 500GB SDD in RAID mirror setup (enterprise disk preferred) |
136+
+-----------+------------------------------------------------------------------+
137+
| OS | **Ubuntu 22.04 LTS 64-bit** server clean installation |
138+
+-----------+------------------------------------------------------------------+
127139

128140
.. _local_development_installation:
129141

0 commit comments

Comments
 (0)