feat: #8 - converted to a lxc hosting
This commit is contained in:
23
scripts/setup-lxc.sh
Normal file
23
scripts/setup-lxc.sh
Normal file
@@ -0,0 +1,23 @@
|
||||
#!/bin/bash
|
||||
|
||||
## Create a container
|
||||
lxc launch ubuntu $LXC_CONTAINER_NAME -p $LXC_PROFILE && \
|
||||
|
||||
## Setup container for docker
|
||||
curl - "https://git.limbosolutions.com/kb/lxc/raw/branch/main/scripts/lxc-config-docker-requirements.sh" | bash $LXC_CONTAINER_NAME
|
||||
|
||||
|
||||
## update container
|
||||
lxc exec $LXC_CONTAINER_NAME bash -c "apt update -y && apt upgrade -y"
|
||||
|
||||
## Install docker on lxc container
|
||||
lxc exec $LXC_CONTAINER_NAME bash -c "curl -s \"https://git.limbosolutions.com/kb/docker/raw/branch/main/scripts/ubuntu-fuse-setup.sh\" | bash "
|
||||
|
||||
#install Portainer
|
||||
lxc exec $LXC_CONTAINER_NAME bash -c "curl -s \"https://git.limbosolutions.com/kb/portainer/raw/branch/main/scripts/setup.sh\" | bash "
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
3
scripts/setup.sh
Normal file
3
scripts/setup.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
chmod +x ./setup-lxc.sh
|
||||
./setup-lxc.sh
|
||||
4
scripts/web-setup.sh
Normal file
4
scripts/web-setup.sh
Normal file
@@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
git clone https://git.limbosolutions.com/limbosolutions.com/git.limbosolutions.com
|
||||
chmod +x ./git.limbosolutions.com/scripts/setup.sh
|
||||
./git.limbosolutions.com/scripts/setup.sh
|
||||
Reference in New Issue
Block a user