From 32fd516f14760d4540a5d8fc3d6bda039f420e45 Mon Sep 17 00:00:00 2001 From: ekimia Date: Tue, 11 Jun 2019 10:32:31 +0200 Subject: [PATCH 01/18] Create /opt/bin/ is necessary --- INSTALL_LINUX.md | 1 + 1 file changed, 1 insertion(+) diff --git a/INSTALL_LINUX.md b/INSTALL_LINUX.md index 48affbb..10d8ed4 100644 --- a/INSTALL_LINUX.md +++ b/INSTALL_LINUX.md @@ -93,6 +93,7 @@ mkdir /data/trash &&\ cp /libre.sh/unit-files/* /etc/systemd/system && systemctl daemon-reload &&\ systemctl enable web-net.service &&\ systemctl start web-net.service &&\ +mkdir -p /opt/bin &&\ cp /libre.sh/utils/* /opt/bin/ ``` From d3a94a561c88984621d9dc3b66755be410179748 Mon Sep 17 00:00:00 2001 From: ekimia Date: Mon, 24 Jun 2019 17:35:56 +0200 Subject: [PATCH 02/18] start the installer script for linux --- install.linux.sh | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 install.linux.sh diff --git a/install.linux.sh b/install.linux.sh new file mode 100644 index 0000000..2f6b058 --- /dev/null +++ b/install.linux.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +echo "welcome to libre.sh installer" +echo"WIP" \ No newline at end of file From ade8eb25f8ed88933cdbfc05207aec6feb1e0ee5 Mon Sep 17 00:00:00 2001 From: ekimia Date: Mon, 24 Jun 2019 17:36:12 +0200 Subject: [PATCH 03/18] Update install.linux.sh --- install.linux.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.linux.sh b/install.linux.sh index 2f6b058..454faa8 100644 --- a/install.linux.sh +++ b/install.linux.sh @@ -1,4 +1,4 @@ #!/bin/bash echo "welcome to libre.sh installer" -echo"WIP" \ No newline at end of file +echo "WIP" \ No newline at end of file From 6d787c7d6dc4c9703214ff74ef36abc1550451c5 Mon Sep 17 00:00:00 2001 From: Michel Memeteau Date: Mon, 24 Jun 2019 17:52:02 +0200 Subject: [PATCH 04/18] progress on installer sh for linux --- install.linux.sh | 70 ++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 68 insertions(+), 2 deletions(-) diff --git a/install.linux.sh b/install.linux.sh index 454faa8..a6c0ed8 100644 --- a/install.linux.sh +++ b/install.linux.sh @@ -1,4 +1,70 @@ #!/bin/bash -echo "welcome to libre.sh installer" -echo "WIP" \ No newline at end of file +#Recommendation +- Systemd (debian > 8 , Ubuntu 16.04 , CentOS 7 ...) + +# System env vars + +## domain handling + +### change to your domain vendor ( ovh , online, ) +DOMAIN_SERVER=namecheap + +### Namecheap specific +NAMECHEAP_URL="namecheap.com" +NAMECHEAP_API_USER="pierreo" +NAMECHEAP_API_KEY= + +### ovh specific +OVH_URL="eu.api.ovh.com" +OVH_API_USER="" +OVH_API_KEY= + + +IP="curl -s http://icanhazip.com/" +FirstName="Pierre" +LastName="Ozoux" +Address="" +PostalCode="" +Country="Portugal" +Phone="+351.967184553" +EmailAddress="pierre@ozoux.net" +City="Lisbon" +CountryCode="PT" +## Backup +BACKUP_DESTINATION=root@xxxxx:port +## SMTP +MAIL_USER= +MAIL_PASS= +MAIL_HOST=mail.indie.host +MAIL_PORT=587 + + + +echo "Welcome to libre.sh installer" +echo "WIP" +echo "1- setting up system variables" + + +echo "2- installing libre.sh" + +# install Libre.sh + +git clone https://lab.libreho.st/libre.sh/compose.libre.sh /libre.sh +mkdir -p /{data,system} +mkdir /data/trash +cp /libre.sh/unit-files/* /etc/systemd/system && systemctl daemon-reload +systemctl enable web-net.service +systemctl start web-net.service +mkdir -p /opt/bin +cp /libre.sh/utils/* /opt/bin/ + + +# add /opt/bin path + + +echo "3 - updating PATH" +cat > /etc/profile.d/libre.sh < Date: Thu, 7 Nov 2019 14:47:28 +0100 Subject: [PATCH 05/18] Some Readme cleanup --- README.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 05419c0..483b23f 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ ## Introduction -A ecosystem that is aimed at hosting free software \o/ +An ecosystem to ease free software hosting \o/ We are working on bootstrapping an ecosystem of tools to facilitate the hosting of free software. Think of it as @@ -12,13 +12,17 @@ Think of it as - FLOSS [cpanel](https://www.cpanel.net/products/) - [cloudron](https://cloudron.io/) with email -for [kubernetes](https://kubernetes.io/). -This ecosystem can be deployed on [Raspberries](https://kubecloud.io/setting-up-a-kubernetes-1-11-raspberry-pi-cluster-using-kubeadm-952bbda329c8) or on popular cloud providers and scale globally or anything in between. We can affirm that it scales globally because it is based on kubernetes, a tool developped from the experience of Google hosting containers at scale. + * Libre.sh V1 (Stable) is using docker-compose + * Libre.sh V2 (Alpha) is using [kubernetes](https://kubernetes.io/). + + +This ecosystem can be deployed on [Raspberries](https://kubecloud.io/setting-up-a-kubernetes-1-11-raspberry-pi-cluster-using-kubeadm-952bbda329c8) or on popular cloud providers and scale globally or anything in between. +We can affirm that V2 scales globally because it is based on kubernetes, a tool developped from the experience of Google hosting containers at scale. ## Installation -[![ScreenShot](https://cloud.pierre-o.fr/index.php/apps/files_sharing/ajax/publicpreview.php?x=1364&y=283&a=true&file=preview.png&t=KlxYYFT59GirMJa&scalingup=0)](https://fosdem.org/2017/schedule/event/libre_sh/) +[Video Fosdem](https://fosdem.org/2017/schedule/event/libre_sh/) To install it, follow the video above and instructions in `INSTALL.md`. From 3e7f9537525ce749165dcf624ff37232fbd6443c Mon Sep 17 00:00:00 2001 From: ekimia Date: Fri, 22 Nov 2019 09:12:48 +0100 Subject: [PATCH 06/18] Add link to Yunohost --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 483b23f..80c2370 100644 --- a/README.md +++ b/README.md @@ -148,3 +148,13 @@ Support this project by becoming a sponsor. Your logo will show up here with a l +## Other projects + + +Simplifying web application hosting has always been a goal for a lot of other projects, here is some project that share goals with libre.sh + + + + - Yunohost https://yunohost.org + + From 72f5c4846edcb46ab0e271b3013c434c490ccbb5 Mon Sep 17 00:00:00 2001 From: ekimia Date: Mon, 25 Nov 2019 09:26:44 +0100 Subject: [PATCH 07/18] add standstorm --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 80c2370..6ab2414 100644 --- a/README.md +++ b/README.md @@ -156,5 +156,6 @@ Simplifying web application hosting has always been a goal for a lot of other pr - Yunohost https://yunohost.org + - Sandstorm https://sandstorm.io/ From 6641133456a1fefc966d097262813481e0dd3b0a Mon Sep 17 00:00:00 2001 From: Pa Date: Mon, 25 Nov 2019 19:37:12 +0100 Subject: [PATCH 08/18] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6ab2414..3ef1934 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ Amazing, right? The PaaS is really modular, that's why it contains the strict necessary, then you'll probably want to add `system` modules or `applications`. -It contains 2 [unit-files](https://github.com/indiehosters/LibrePaaS/tree/master/unit-files) to manage system modules and applications, start them at boot, and load the appropriate environment. +It contains 2 [unit-files](https://lab.libreho.st/libre.sh/compose.libre.sh/tree/master/unit-files) to manage system modules and applications, start them at boot, and load the appropriate environment. ### Support From f1a40640b8f4779f96972bee7844790bd2751cd6 Mon Sep 17 00:00:00 2001 From: ekimia Date: Sun, 1 Dec 2019 16:54:49 +0100 Subject: [PATCH 09/18] add cloudron --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 6ab2414..0df8579 100644 --- a/README.md +++ b/README.md @@ -157,5 +157,6 @@ Simplifying web application hosting has always been a goal for a lot of other pr - Yunohost https://yunohost.org - Sandstorm https://sandstorm.io/ + - Cloudron https://git.cloudron.io/cloudron/box From 3aedb598e548441bcab925a3cf9f454a1b67c2fd Mon Sep 17 00:00:00 2001 From: ekimia Date: Thu, 26 Dec 2019 18:00:53 +0100 Subject: [PATCH 10/18] Rename install.md into install.cloud.md --- INSTALL.md => INSTALL.cloud.md | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename INSTALL.md => INSTALL.cloud.md (100%) diff --git a/INSTALL.md b/INSTALL.cloud.md similarity index 100% rename from INSTALL.md rename to INSTALL.cloud.md From 761e33f57f92a505b86cc8e0148acc21e450d1b0 Mon Sep 17 00:00:00 2001 From: ekimia Date: Thu, 26 Dec 2019 18:01:47 +0100 Subject: [PATCH 11/18] Move fosdem video --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0df8579..2e4569e 100644 --- a/README.md +++ b/README.md @@ -22,9 +22,9 @@ We can affirm that V2 scales globally because it is based on kubernetes, a tool ## Installation -[Video Fosdem](https://fosdem.org/2017/schedule/event/libre_sh/) -To install it, follow the video above and instructions in `INSTALL.md`. + +To install it, follow the instructions in `INSTALL_LINUX.md` : https://lab.libreho.st/libre.sh/compose.libre.sh/blob/master/INSTALL_LINUX.md ### What is libre.sh @@ -60,6 +60,8 @@ You can use the following channels to request community support: For paid support, just send an inquiry to support@libre.sh. +You can also watch the Fosdem Video : [Video Fosdem](https://fosdem.org/2017/schedule/event/libre_sh/) + All of this is hosted by libre.sh :) ## System modules From 14e78c6b9b33dbd2a92c330c49b5e3c3df0ec14f Mon Sep 17 00:00:00 2001 From: Michel Memeteau Date: Fri, 10 Jan 2020 14:37:39 +0100 Subject: [PATCH 12/18] Update install.linux.sh --- install.linux.sh | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/install.linux.sh b/install.linux.sh index a6c0ed8..1595de8 100644 --- a/install.linux.sh +++ b/install.linux.sh @@ -43,12 +43,18 @@ MAIL_PORT=587 echo "Welcome to libre.sh installer" echo "WIP" -echo "1- setting up system variables" +echo " setting up system variables" + +# STEP add kernel parameter + +echo " Define environnement + +# STEP "install docker-compose" -echo "2- installing libre.sh" +# STEP " installing libre.sh" -# install Libre.sh +# STEP install Libre.sh git clone https://lab.libreho.st/libre.sh/compose.libre.sh /libre.sh mkdir -p /{data,system} @@ -60,7 +66,7 @@ mkdir -p /opt/bin cp /libre.sh/utils/* /opt/bin/ -# add /opt/bin path +# STEP add /opt/bin path echo "3 - updating PATH" From 5dd0762cc8e6712a03d6707bc2db31e091ca7bec Mon Sep 17 00:00:00 2001 From: Michel Memeteau Date: Sat, 18 Jan 2020 00:16:03 +0100 Subject: [PATCH 13/18] Update install.linux.sh --- install.linux.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/install.linux.sh b/install.linux.sh index 1595de8..6dc46ac 100644 --- a/install.linux.sh +++ b/install.linux.sh @@ -1,7 +1,6 @@ #!/bin/bash -#Recommendation -- Systemd (debian > 8 , Ubuntu 16.04 , CentOS 7 ...) +#Recommendation : Systemd (debian > 8 , Ubuntu 16.04 , CentOS 7 ...) # System env vars @@ -58,7 +57,7 @@ echo " Define environnement git clone https://lab.libreho.st/libre.sh/compose.libre.sh /libre.sh mkdir -p /{data,system} -mkdir /data/trash +mkdir -p /data/trash cp /libre.sh/unit-files/* /etc/systemd/system && systemctl daemon-reload systemctl enable web-net.service systemctl start web-net.service From 48ed6c6d179ea05076dd263592514f6447b289a7 Mon Sep 17 00:00:00 2001 From: Michel Memeteau Date: Thu, 20 Feb 2020 18:00:50 +0100 Subject: [PATCH 14/18] Update install.linux.sh --- install.linux.sh | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/install.linux.sh b/install.linux.sh index 1595de8..a158ff3 100644 --- a/install.linux.sh +++ b/install.linux.sh @@ -1,13 +1,15 @@ #!/bin/bash -#Recommendation -- Systemd (debian > 8 , Ubuntu 16.04 , CentOS 7 ...) # System env vars ## domain handling -### change to your domain vendor ( ovh , online, ) +### TODO : Specify you template repo ROOT + +TEMPLATES_ROOT=lab.libreho.st/libre.sh/compose/ + +### TODO : change to your domain vendor ( ovh , online, ) DOMAIN_SERVER=namecheap ### Namecheap specific @@ -43,19 +45,29 @@ MAIL_PORT=587 echo "Welcome to libre.sh installer" echo "WIP" -echo " setting up system variables" + # STEP add kernel parameter -echo " Define environnement +# STEP Define environnement + +echo " setting up system variables" + # STEP "install docker-compose" +# TODO : Fix a version for docker compose ? + +mkdir -p /opt/bin &&\ +dockerComposeVersion=$(curl -s https://api.github.com/repos/docker/compose/releases/latest|grep tag_name|cut -d'"' -f4) &&\ +curl -L https://github.com/docker/compose/releases/download/$dockerComposeVersion/docker-compose-`uname -s`-`uname -m` > /opt/bin/docker-compose &&\ +chmod +x /opt/bin/docker-compose -# STEP " installing libre.sh" # STEP install Libre.sh +echo " installing libre.sh" + git clone https://lab.libreho.st/libre.sh/compose.libre.sh /libre.sh mkdir -p /{data,system} mkdir /data/trash @@ -73,4 +85,4 @@ echo "3 - updating PATH" cat > /etc/profile.d/libre.sh < Date: Wed, 26 Feb 2020 09:40:36 +0100 Subject: [PATCH 15/18] First beta version of the script --- install.linux.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/install.linux.sh b/install.linux.sh index a158ff3..80f70f3 100644 --- a/install.linux.sh +++ b/install.linux.sh @@ -1,6 +1,7 @@ #!/bin/bash - +#Current version of libre.sh to be installed +LIBRE_VERSION=1.1 # System env vars ## domain handling @@ -81,7 +82,7 @@ cp /libre.sh/utils/* /opt/bin/ # STEP add /opt/bin path -echo "3 - updating PATH" +echo " - updating PATH" cat > /etc/profile.d/libre.sh < Date: Wed, 26 Feb 2020 15:55:14 +0100 Subject: [PATCH 16/18] Add docker install --- install.linux.sh | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) mode change 100644 => 100755 install.linux.sh diff --git a/install.linux.sh b/install.linux.sh old mode 100644 new mode 100755 index 80f70f3..a82575a --- a/install.linux.sh +++ b/install.linux.sh @@ -44,18 +44,29 @@ MAIL_PORT=587 -echo "Welcome to libre.sh installer" -echo "WIP" +echo "-------- Welcome to libre.sh $LIBRE_VERSION installer" # STEP add kernel parameter # STEP Define environnement -echo " setting up system variables" +echo "-------- setting up system variables" + + +# STEP Install Docker + +echo "-------- Install latest docker " +# TODO : Fix a version for docker ? + + +curl -fsSL https://get.docker.com -o get-docker.sh +sh get-docker.sh # STEP "install docker-compose" +echo "-------- Install latest docker-compose " + # TODO : Fix a version for docker compose ? mkdir -p /opt/bin &&\ @@ -67,11 +78,11 @@ chmod +x /opt/bin/docker-compose # STEP install Libre.sh -echo " installing libre.sh" +echo "-------- installing libre.sh" git clone https://lab.libreho.st/libre.sh/compose.libre.sh /libre.sh mkdir -p /{data,system} -mkdir /data/trash +mkdir -p /data/trash cp /libre.sh/unit-files/* /etc/systemd/system && systemctl daemon-reload systemctl enable web-net.service systemctl start web-net.service @@ -82,7 +93,7 @@ cp /libre.sh/utils/* /opt/bin/ # STEP add /opt/bin path -echo " - updating PATH" +echo "-------- updating PATH" cat > /etc/profile.d/libre.sh < Date: Wed, 26 Feb 2020 16:11:36 +0100 Subject: [PATCH 17/18] Update doc --- README.md | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 8c53b67..8972286 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,10 @@ We can affirm that V2 scales globally because it is based on kubernetes, a tool To install it, follow the instructions in `INSTALL_LINUX.md` : https://lab.libreho.st/libre.sh/compose.libre.sh/blob/master/INSTALL_LINUX.md +Or run our installer script + +https://lab.libreho.st/libre.sh/compose.libre.sh/raw/master/install.linux.sh + ### What is libre.sh libre.sh is a little framework to host Docker. It is simple and modular and respect the convention over configuration paradigm. @@ -68,11 +72,10 @@ All of this is hosted by libre.sh :) Here is a list of modules supported: - https proxy: - - [HAProxy](https://github.com/indiehosters/haproxy) - - [Nginx](https://github.com/indiehosters/nginx) - - [monitoring](https://github.com/indiehosters/monitoring) - - [git-puller](https://github.com/indiehosters/git-puller) - - [backups](https://github.com/indiehosters/backups) + - [HAProxy](https://lab.libreho.st/libre.sh/compose/haproxy) + - [Nginx](https://lab.libreho.st/libre.sh/compose/nginx) + - [monitoring](https://lab.libreho.st/libre.sh/compose/monitoring) + - [git-puller](https://lab.libreho.st/libre.sh/compose/git-puller) Go to their respective page for more details. @@ -80,7 +83,7 @@ Go to their respective page for more details. ``` cd /system/ -git clone module +git clone https://lab.libreho.st/libre.sh/compose/[module] cd module libre enable libre start From 722a4921bae71c9a6012cc58241f9fb3b9b735d5 Mon Sep 17 00:00:00 2001 From: Michel Memeteau Date: Wed, 26 Feb 2020 16:29:08 +0100 Subject: [PATCH 18/18] Select version branch when cloning libre.sh --- install.linux.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.linux.sh b/install.linux.sh index a82575a..24cce8a 100755 --- a/install.linux.sh +++ b/install.linux.sh @@ -80,7 +80,7 @@ chmod +x /opt/bin/docker-compose echo "-------- installing libre.sh" -git clone https://lab.libreho.st/libre.sh/compose.libre.sh /libre.sh +git clone https://lab.libreho.st/libre.sh/compose.libre.sh -b $LIBRE_VERSION /libre.sh mkdir -p /{data,system} mkdir -p /data/trash cp /libre.sh/unit-files/* /etc/systemd/system && systemctl daemon-reload