-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathstartup.sh
20 lines (19 loc) · 872 Bytes
/
startup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
apt update
apt -y install ca-certificates curl gnupg lsb-release
mkdir -p /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
chmod a+r /etc/apt/keyrings/docker.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list
apt update
DEBIAN_FRONTEND=noninteractive apt -yq install git docker-ce docker-ce-cli containerd.io docker-compose-plugin docker-compose
yes | DEBIAN_FRONTEND=noninteractive apt -yq upgrade
apt -y autoremove
apt clean all
cd /root/
git clone https://github.com/csalab-id/csaf
cd csaf
docker-compose pull
docker-compose -f generate-indexer-certs.yml run --rm generator
docker-compose up -d
echo "[+] CSAF installation successful"