Skip to content

Commit baaaf59

Browse files
committedApr 4, 2024
[build] add 'init-apt' to make ubuntu init easier
1 parent 6aeb595 commit baaaf59

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed
 

‎Makefile

+4
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ clean-docker-plugin-rootfs:
4444
init:
4545
./misc/init.sh
4646

47+
.PHONY: init-apt
48+
init-apt:
49+
./misc/init-apt.sh
50+
4751
.PHONY: all
4852
all: clean jar-with-lib jlink image docker docker-network-plugin
4953

‎misc/init-apt.sh

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
echo "You might want to run:"
6+
echo " git config --global core.autocrlf false"
7+
echo "---"
8+
9+
echo "installing necessary softwares"
10+
sudo apt install -y git build-essential zip libelf-dev libbpf-dev cmake
11+
echo "---"
12+
13+
echo "'make init' to initiate this project"
14+
make init
15+
16+
echo "'make clean' to ensure the build system works as expected"
17+
make clean
18+
echo "---"
19+
20+
echo "'make fubuki' to download fubuki required libraries"
21+
make fubuki
22+
echo "---"
23+
24+
echo "'make jar-with-lib' to build the project"
25+
make jar-with-lib

0 commit comments

Comments
 (0)