-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathubuntu-18.04-minimal-install.sh
38 lines (29 loc) · 1.24 KB
/
ubuntu-18.04-minimal-install.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
#!/bin/bash
if [ ! -d /home/f5admin ]; then
/usr/sbin/useradd --create-home --shell $(which bash) --groups sudo f5admin
echo "f5admin:f5admin" | /usr/sbin/chpasswd
fi
apt update
apt install -y apt-transport-https ca-certificates curl software-properties-common openssh-server openssh-client net-tools
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable"
apt update
apt install -y docker-ce docker-compose
docker pull v2tec/watchtower
docker pull jgruber/as3validatortool:latest
docker pull jgruber/f5-appsvcs-demo-web:latest
docker pull jgruber/f5-appsvcs-demo:latest
docker pull mongo:latest
docker pull f5devcentral/f5-as3-container:latest
docker pull f5devcentral/f5-api-services-gateway:latest
usermod -g docker f5admin
cd /home/f5admin
wget https://raw.githubusercontent.com/jgruber/f5-appsvcs-demo/master/docker-compose.yml
cd /
wget https://github.com/jgruber/f5-container-demonstration-virtual-device/raw/master/install-init.tar.gz
tar xvzf install-init.tar.gz
systemctl daemon-reload
systemctl enable docker.as3validator.service
systemctl enable docker.f5-appsvcs-demo-web.service
systemctl enable docker.watchtower.service
reboot