-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
30 lines (27 loc) · 1.24 KB
/
Makefile
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
restart_agent: stop_agent, start_agent
install_top:
dnf install epel-release -y
dnf update -y
dnf install vim htop atop mc -y
install_kernel:
dnf install -y https://www.elrepo.org/elrepo-release-8.el8.elrepo.noarch.rpm
dnf --enablerepo=elrepo-kernel install kernel-ml kernel-ml-devel kernel-ml-headers -y
grub2-mkconfig -o /boot/grub2/grub.cfg
install_docker:
yum install -y yum-utils
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
yum install -y docker-ce docker-ce-cli containerd.io
systemctl enable --now docker
start_agent:
docker run --network="host" --restart=on-failure:10 \
--cap-add=NET_ADMIN \
--cap-add=SYS_MODULE \
-v /var/run/docker.sock:/var/run/docker.sock:ro \
-v /run:/run \
--device /dev/net/tun:/dev/net/tun --name=syntropy-agent \
-e SYNTROPY_NETWORK_API='docker' \
-e SYNTROPY_CONTROLLER_URL=controller-sandbox-platform-agents.syntropystack.com \
-e SYNTROPY_AGENT_TOKEN=repleace_me -d syntropynet/agent:beta
stop_agent:
docker stop syntropy-agent
docker rm syntropy-agent