Compare commits

...

2 Commits

Author SHA1 Message Date
657b305eef . 2022-10-05 15:12:15 +01:00
f79da09e97 . 2022-10-05 14:58:29 +01:00
5 changed files with 34 additions and 26 deletions

View File

@@ -2,13 +2,9 @@
## Setup
```bash
cd ~/
git clone https://git.limbosolutions.com/limbosolutions.com/git.limbosolutions.com
cd git.limbosolutions.com
chmod +x /scripts
./scripts/setup-lxc.sh
```
for more information check /documentation/setup.md
## Backup Strategy

View File

@@ -1,32 +1,35 @@
# Setup
## Create LXC Container
## Requirements
Enviroment variables
```bash
LXC_CONTAINER_NAME=?????
LXC_PROFILE=?????
```
## LXC Setup
### Web setup
``` bash
# set vars
containername=gitsrv01
lxc_profile=enxd0374555c1f8_macvlan
curl - "https://git.limbosolutions.com/limbosolutions.com/git.limbosolutions.com/raw/branch/main/scripts/web-setup.sh" | bash
```
## Setup Container
Or you can manual clone the repository and execute
```bash
lxc launch ubuntu $containername -p $lxc_profile
# Setup container for docker
lxc exec $containername -- bash -c "curl https://git.limbosolutions.com/kb/lxc/scripts/ubuntu-fuse-setup.sh | bash"
```
Setup using portainer [docker compose](docker/docker-compose.yaml).
### From Repository
## Fresh Install
### Install Portainer
```bash
lxc exec $containername -- bash -c "curl https://git.limbosolutions.com/kb/portainer/scripts/setup.sh | bash"
lxc exec $containername -- bash -c "docker container list"
``` bash
cd ~/
git clone "https://git.limbosolutions.com/limbosolutions.com/git.limbosolutions.com"
cd git.limbosolutions.com
chmod +x git.limbosolutions.com/scripts/setup.sh
./git.limbosolutions.com/scripts/setup.sh
```
### Setup
## Setup Services
1) Enter portainer (default port 9443)
2) Setup Credentials

View File

@@ -1,3 +1,5 @@
#!/bin/bash
## Create a container
lxc launch ubuntu $LXC_CONTAINER_NAME -p $LXC_PROFILE && \

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