File: build.md

package info (click to toggle)
lava 2026.02-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 31,436 kB
  • sloc: python: 83,095; javascript: 16,658; sh: 1,364; makefile: 328
file content (46 lines) | stat: -rw-r--r-- 1,246 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Building LAVA

LAVA can be distributed either as [Debian packages](#debian-packages) or [Docker images](#docker-images).

Both formats can be built locally from sources.

!!! tip "Version"
    The version will be computed based on `git describe`.
    Run `./lava_common/version.py` to print this version.

## Debian packages

Run the GitLab CI script to build the Debian packages:

```shell
.gitlab-ci/build/debian/10.sh
```

The packages will be available under `_build/`.

!!! warning "Uncommitted changes"
    The script will refuse to build the packages is you have any uncommitted changes.

## Docker images

Run the GitLab CI script to build either the `lava-dispatcher` or `lava-server` image:

```shell
.gitlab-ci/build/docker.sh dispatcher
.gitlab-ci/build/docker.sh server
```

Images will be tagged with:

```
registry.gitlab.com/lava/lava/amd64/lava-dispatcher:<VERSION>
registry.gitlab.com/lava/lava/amd64/lava-server:<VERSION>
```

!!! tip "Base images"
    The script will create base images for both `lava-dispatcher` and `lava-server`.
    Bases images will be tagged with
    ```
    registry.gitlab.com/lava/lava/amd64/lava-dispatcher-base:<VERSION>
    registry.gitlab.com/lava/lava/amd64/lava-server-base:<VERSION>
    ```