From f79da09e97b9924ebd5c5a68cbba3e708dda0801 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rcio=20Fernandes?= Date: Wed, 5 Oct 2022 14:58:29 +0100 Subject: [PATCH] . --- README.md | 10 +++------- documentation/setup.md | 24 +++++++++++++++++++----- scripts/setup.sh | 0 scripts/web-setup.sh | 4 ++++ 4 files changed, 26 insertions(+), 12 deletions(-) create mode 100644 scripts/setup.sh create mode 100644 scripts/web-setup.sh diff --git a/README.md b/README.md index 930bba2..d301e2f 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/documentation/setup.md b/documentation/setup.md index de424dd..2b40aba 100644 --- a/documentation/setup.md +++ b/documentation/setup.md @@ -1,5 +1,22 @@ # Setup +Web setup + +``` bash +curl - "https://git.limbosolutions.com/limbosolutions.com/git.limbosolutions.com/raw/branch/main/scripts/web-setup.sh" | bash +``` + +Or you can manual clone the repository and execute + +``` 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 +``` + + ## Create LXC Container ``` bash @@ -8,14 +25,11 @@ containername=gitsrv01 lxc_profile=enxd0374555c1f8_macvlan ``` -## Setup Container +## Setup LXC Container ```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" +scripts/setup-lxc.sh ``` -Setup using portainer [docker compose](docker/docker-compose.yaml). ## Fresh Install diff --git a/scripts/setup.sh b/scripts/setup.sh new file mode 100644 index 0000000..e69de29 diff --git a/scripts/web-setup.sh b/scripts/web-setup.sh new file mode 100644 index 0000000..7c414d9 --- /dev/null +++ b/scripts/web-setup.sh @@ -0,0 +1,4 @@ +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 \ No newline at end of file