-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathgenimages.sh
executable file
·39 lines (33 loc) · 1.1 KB
/
genimages.sh
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
#!/bin/bash
set -x
IMAGES=$(pwd)/images
rm -rf $IMAGES
mkdir -p $IMAGES
# ========================================================================
# Generate Unikraft images
# ========================================================================
function build_for {
CONTAINER=uk-tmp-redis
# kill zombies
docker container stop $CONTAINER
docker rm -f $CONTAINER
sleep 6
docker pull hlefeuvre/unikraft-eurosys21:latest
docker run --rm --privileged --name=$CONTAINER \
-dt hlefeuvre/unikraft-eurosys21
docker exec -it $CONTAINER bash -c \
"cd app-${1} && cp configs/${2}.conf .config"
docker exec -it $CONTAINER bash -c \
"cd app-${1} && make prepare && make -j"
# important for tracepoints -> dbg binaries
docker cp ${CONTAINER}:/root/workspace/apps/app-${1}/build/app-${1}_kvm-x86_64.dbg \
${IMAGES}/unikraft+${2}.kernel
docker container stop $CONTAINER
docker rm -f $CONTAINER
sleep 3
}
build_for nginx-boottime tinyalloc
build_for nginx-boottime mimalloc
build_for nginx-boottime tlsf
build_for nginx-boottime buddy
build_for nginx-boottime region