feat: #8 - converted to a lxc hosting

This commit is contained in:
2022-10-09 18:48:15 +01:00
parent fb360ec5e7
commit 16543559a9
11 changed files with 307 additions and 87 deletions

23
scripts/setup-lxc.sh Normal file
View 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
View File

@@ -0,0 +1,3 @@
#!/bin/bash
chmod +x ./setup-lxc.sh
./setup-lxc.sh

4
scripts/web-setup.sh Normal file
View 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