.
This commit is contained in:
@@ -1,6 +1,17 @@
|
|||||||
# Setup
|
# Setup
|
||||||
|
|
||||||
Web setup
|
## Requirements
|
||||||
|
|
||||||
|
Enviroment variables
|
||||||
|
|
||||||
|
```bash
|
||||||
|
LXC_CONTAINER_NAME=?????
|
||||||
|
LXC_PROFILE=?????
|
||||||
|
```
|
||||||
|
|
||||||
|
## LXC Setup
|
||||||
|
|
||||||
|
### Web setup
|
||||||
|
|
||||||
``` bash
|
``` bash
|
||||||
curl - "https://git.limbosolutions.com/limbosolutions.com/git.limbosolutions.com/raw/branch/main/scripts/web-setup.sh" | bash
|
curl - "https://git.limbosolutions.com/limbosolutions.com/git.limbosolutions.com/raw/branch/main/scripts/web-setup.sh" | bash
|
||||||
@@ -8,6 +19,8 @@ curl - "https://git.limbosolutions.com/limbosolutions.com/git.limbosolutions.com
|
|||||||
|
|
||||||
Or you can manual clone the repository and execute
|
Or you can manual clone the repository and execute
|
||||||
|
|
||||||
|
### From Repository
|
||||||
|
|
||||||
``` bash
|
``` bash
|
||||||
cd ~/
|
cd ~/
|
||||||
git clone "https://git.limbosolutions.com/limbosolutions.com/git.limbosolutions.com"
|
git clone "https://git.limbosolutions.com/limbosolutions.com/git.limbosolutions.com"
|
||||||
@@ -16,31 +29,7 @@ chmod +x git.limbosolutions.com/scripts/setup.sh
|
|||||||
./git.limbosolutions.com/scripts/setup.sh
|
./git.limbosolutions.com/scripts/setup.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Setup Services
|
||||||
## Create LXC Container
|
|
||||||
|
|
||||||
``` bash
|
|
||||||
# set vars
|
|
||||||
containername=gitsrv01
|
|
||||||
lxc_profile=enxd0374555c1f8_macvlan
|
|
||||||
```
|
|
||||||
|
|
||||||
## Setup LXC Container
|
|
||||||
|
|
||||||
```bash
|
|
||||||
scripts/setup-lxc.sh
|
|
||||||
```
|
|
||||||
|
|
||||||
## 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"
|
|
||||||
```
|
|
||||||
|
|
||||||
### Setup
|
|
||||||
|
|
||||||
1) Enter portainer (default port 9443)
|
1) Enter portainer (default port 9443)
|
||||||
2) Setup Credentials
|
2) Setup Credentials
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
## Create a container
|
## Create a container
|
||||||
lxc launch ubuntu $LXC_CONTAINER_NAME -p $LXC_PROFILE && \
|
lxc launch ubuntu $LXC_CONTAINER_NAME -p $LXC_PROFILE && \
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
chmod +x ./setup-lxc.sh
|
||||||
|
./setup-lxc.sh
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
|
#!/bin/bash
|
||||||
git clone https://git.limbosolutions.com/limbosolutions.com/git.limbosolutions.com
|
git clone https://git.limbosolutions.com/limbosolutions.com/git.limbosolutions.com
|
||||||
cd git.limbosolutions.com
|
chmod +x ./git.limbosolutions.com/scripts/setup.sh
|
||||||
chmod +x git.limbosolutions.com/scripts/setup.sh
|
./git.limbosolutions.com/scripts/setup.sh
|
||||||
git.limbosolutions.com/scripts/setup.sh
|
|
||||||
Reference in New Issue
Block a user