Compare commits

...

3 Commits

Author SHA1 Message Date
0dbb1ed83f . 2022-12-12 23:47:51 +00:00
6b93bc4400 testing 2022-12-12 23:28:57 +00:00
6a2e10ea7b testing 2022-12-12 23:28:22 +00:00

View File

@@ -1,15 +1,16 @@
#!/bin/bash
#start container
lxc launch ubuntu $1 -p $2
echo "$1"
echo "$2"
#lxc launch ubuntu $1 -p $2
#set docker requirements
curl -s "https://git.limbosolutions.com/kb/lxc/raw/branch/main/scripts/lxc-config-docker-requirements.sh" | bash -s $1
lxc restart $1
lxc exec $1 -s "apt update -y && apt upgrade -y"
lxc restart $1
lxc exec $1 -- bash -c "apt update -y && apt upgrade -y"
#setup docker
lxc exec $1 bash -s "curl -s \"https://git.limbosolutions.com/kb/docker/raw/branch/main/scripts/ubuntu-fuse-setup.sh\" | bash"
lxc exec $1 -- bash -c "curl -s \"https://git.limbosolutions.com/kb/docker/raw/branch/main/scripts/ubuntu-fuse-setup.sh\" | bash"
#portainer
lxc exec $1 bash -s "curl -s \"https://git.limbosolutions.com/kb/portainer/raw/branch/main/scripts/setup.sh\" | bash"
lxc exec $1 -- bash -c "curl -s \"https://git.limbosolutions.com/kb/portainer/raw/branch/main/scripts/setup.sh\" | bash"