From 1a3d29953fbf85ff70216535653c0d128bc92873 Mon Sep 17 00:00:00 2001 From: thorstenspille Date: Fri, 12 Jul 2024 22:49:06 +0200 Subject: [PATCH] add cloudpanel container --- src/cloudpanel/constants-service.conf | 31 +++++++++++++++++++++++++++ src/cloudpanel/install-service.sh | 14 ++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 src/cloudpanel/constants-service.conf create mode 100644 src/cloudpanel/install-service.sh diff --git a/src/cloudpanel/constants-service.conf b/src/cloudpanel/constants-service.conf new file mode 100644 index 0000000..d207969 --- /dev/null +++ b/src/cloudpanel/constants-service.conf @@ -0,0 +1,31 @@ +#!/bin/bash + +# Authors: +# (C) 2024 Thorsten Spille + +# This file contains the project constants on service level + +# Debian Version, which will be installed +LXC_TEMPLATE_VERSION="debian-12-standard" + +# Create sharefs mountpoint +LXC_MP=1 +# Defines the mountpoint of the filesystem shared by Zamba inside your LXC container (default: tank) +LXC_SHAREFS_MOUNTPOINT="home" +# Defines the recordsize of mp0 +LXC_MP_RECORDSIZE="16K" + +# Create unprivileged container +LXC_UNPRIVILEGED="1" + +# enable nesting feature +LXC_NESTING="1" + +# enable keyctl feature +LXC_KEYCTL="0" + +# Sets the minimum amount of RAM the service needs for operation +LXC_MEM_MIN=2048 + +# service dependent meta tags +SERVICE_TAGS="php-fpm,nginx,mariadb" \ No newline at end of file diff --git a/src/cloudpanel/install-service.sh b/src/cloudpanel/install-service.sh new file mode 100644 index 0000000..9bce99b --- /dev/null +++ b/src/cloudpanel/install-service.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +# Author: +# (C) 2024 Thorsten Spille + +set -euo pipefail + +source zamba.conf + +wget -O - https://apt.bashclub.org/gpg/bashclub.pub | gpg --dearmor > /usr/share/keyrings/bashclub-keyring.gpg + +curl -sS https://installer.cloudpanel.io/ce/v2/install.sh -o install.sh +echo "2aefee646f988877a31198e0d84ed30e2ef7a454857b606608a1f0b8eb6ec6b6 install.sh" | sha256sum -c +DB_ENGINE=MARIADB_10.11 SWAP=false bash install.sh