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
The easiest of them all is via the easy install script.
13
+
14
+
- (Optional) Edit the ```configs/.env.dev.example``` to set the environment variables. If not done, default values will be taken.
15
+
16
+
- (Optional) Edit the ```external_ref_fields.example.yaml``` to extend the schema of licenses and obligations with custom fields. If not done, default values will be taken.
17
+
18
+
- Run the easy install script to generate the app binary.
19
+
20
+
```bash
21
+
./easy_install.sh
22
+
```
23
+
24
+
- Run the executable
25
+
26
+
```bash
27
+
./laas
28
+
```
29
+
30
+
Use the command below for more startup options.
31
+
32
+
```bash
33
+
./laas --help
34
+
```
35
+
36
+
## 2. Docker Installation
37
+
38
+
- Build the app image
39
+
40
+
```bash
41
+
docker build -t licensedb/latest
42
+
```
43
+
44
+
- Run the container
45
+
46
+
```bash
47
+
docker compose up
48
+
```
49
+
50
+
51
+
52
+
## 3. Bare metal Installation
53
+
54
+
### 1. Setting up the project
55
+
56
+
- Create the `external_ref_fields.yaml` file in the root directory of the project to extend the schema of licenses and obligations with custom fields.
- You can directly run it by the following command.
128
+
129
+
```bash
130
+
go run ./cmd/laas
131
+
```
132
+
133
+
## Post Install
134
+
135
+
The super admin user can only create new app users and import licenses and obligations.
136
+
137
+
To gain further capabilities, create a new admin user via the swagger docs or via the [LicenseDb UI](https://github.com/fossology/LicenseDb-UI).
datafile=flag.String("datafile", "licenseRef.json", "(optional) path of the file from which licenses are to be imported")
32
32
// auto-update the database
33
-
populatedb=flag.Bool("populatedb", false, "boolean variable to update database")
33
+
populatedb=flag.Bool("populatedb", false, "(optional) boolean variable to populate database with licences, obligation types and classifications on start up")
0 commit comments