From a39d01c5ad32409e5a950d4580a2a47ce88ff7ac Mon Sep 17 00:00:00 2001 From: Phill Kelley Date: Sun, 12 Jan 2020 17:03:47 +1100 Subject: [PATCH 1/2] Adds a Gitea container to IOTstack Gitea is a lightweight implementation of a Git server. Makers who are already running a local IOTstack server may prefer to commit their work to a local repository running on their Raspberry Pi, rather than GitHub/GitLab/etc. Implementing Gitea under the IOTStack umbrella inherits the existing IOTstack backup mechanisms for free. Candidate page for the wiki at https://www.dropbox.com/s/onqndgyamo2h74i/Gitea.md.zip?dl=1 --- .templates/gitea/gitea.env | 1 + .templates/gitea/service.yml | 14 ++++++++++++++ menu.sh | 3 ++- 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 .templates/gitea/gitea.env create mode 100644 .templates/gitea/service.yml diff --git a/.templates/gitea/gitea.env b/.templates/gitea/gitea.env new file mode 100644 index 00000000..27f76ca3 --- /dev/null +++ b/.templates/gitea/gitea.env @@ -0,0 +1 @@ +# initially empty diff --git a/.templates/gitea/service.yml b/.templates/gitea/service.yml new file mode 100644 index 00000000..fb7685a6 --- /dev/null +++ b/.templates/gitea/service.yml @@ -0,0 +1,14 @@ + gitea: + container_name: gitea + image: kapdap/gitea-rpi + restart: unless-stopped + user: "0" + ports: + - "7920:3000/tcp" + - "2222:22/tcp" + env_file: + - ./services/gitea/gitea.env + volumes: + - ./volumes/gitea/data:/data + - /etc/timezone:/etc/timezone:ro + - /etc/localtime:/etc/localtime:ro diff --git a/menu.sh b/menu.sh index 6c11d62f..ce27097b 100755 --- a/menu.sh +++ b/menu.sh @@ -28,11 +28,12 @@ declare -A cont_array=( [diyhue]="diyHue" [homebridge]="Homebridge" [python]="Python 3" + [gitea]="Gitea" ) declare -a armhf_keys=("portainer" "nodered" "influxdb" "grafana" "mosquitto" "telegraf" "mariadb" "postgres" "adminer" "openhab" "zigbee2mqtt" "pihole" "plex" "tasmoadmin" "rtl_433" "espruinohub" - "motioneye" "webthings_gateway" "blynk_server" "nextcloud" "diyhue" "homebridge" "python") + "motioneye" "webthings_gateway" "blynk_server" "nextcloud" "diyhue" "homebridge" "python" "gitea") sys_arch=$(uname -m) From 5d0c85ab87c131e2634e4ab6ea915ba3de6704e8 Mon Sep 17 00:00:00 2001 From: Slyke Date: Sun, 19 Apr 2020 16:45:50 -0700 Subject: [PATCH 2/2] Changed each menu item to be on a separate line to make merges easier. --- menu.sh | 29 ++++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/menu.sh b/menu.sh index db259a6a..9d9536ff 100755 --- a/menu.sh +++ b/menu.sh @@ -28,11 +28,34 @@ declare -A cont_array=( [diyhue]="diyHue" [homebridge]="Homebridge" [python]="Python 3" +) +declare -a armhf_keys=( + "portainer" + "nodered" + "influxdb" + "grafana" + "mosquitto" + "telegraf" + "mariadb" + "postgres" + "adminer" + "openhab" + "zigbee2mqtt" + "pihole" + "plex" + "tasmoadmin" + "rtl_433" + "espruinohub" + "motioneye" + "webthings_gateway" + "blynk_server" + "nextcloud" + "diyhue" + "homebridge" + "python" + # add yours here ) -declare -a armhf_keys=("portainer" "nodered" "influxdb" "grafana" "mosquitto" "telegraf" "mariadb" "postgres" - "adminer" "openhab" "zigbee2mqtt" "pihole" "plex" "tasmoadmin" "rtl_433" "espruinohub" - "motioneye" "webthings_gateway" "blynk_server" "nextcloud" "diyhue" "homebridge" "python") sys_arch=$(uname -m)