blob: ef95c7903b5df9e0a7e3d159b6092158a9415474 (
plain)
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
|
## Building seastar in Docker container
To build a Docker image:
```
docker build -t seastar-dev -f docker/dev/Dockerfile .
```
Building is done with two commands:
```
$ ./configure.py
$ ninja -C build/release
```
You can run them inside container, e.g. like this
```
$ seabuild() { docker run -v $HOME/seastar/:/seastar -u $(id -u):$(id -g) -w /seastar -t seastar-dev "$@"; }
$ seabuild ./configure.py
$ seabuild ninja -C build/release
```
Alternatively there's a `scripts/build.sh` script with the usage of
```
build.sh <mode> [<compiler>] [<compiler version>] [<c++ dialect>]
```
that will do the above steps itself, e.g. the above example would be like
```
$ scripts/build.sh release
```
|