Bläddra i källkod

Added flatnotes app (#103)

Spandan A 2 år sedan
förälder
incheckning
2321f4c017

+ 2 - 1
docs/AppList.md

@@ -4,7 +4,7 @@ List of all apps included in this project with info related to it.
 
 |**Arm32:**          |**Arm64:**|**Amd64:**|**Total:**|
 |:-------------------|:--------:|:--------:|:--------:|
-| 178 apps | 195 apps | 193 apps | 195 apps |
+| 178 apps | 196 apps | 194 apps | 196 apps |
 
 ---
 
@@ -55,6 +55,7 @@ List of all apps included in this project with info related to it.
 |[FileBrowser S6](https://filebrowser.org/)|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:|Container| [![](../build/images/blue_doc_icon.png)](https://filebrowser.org/installation#docker) |  |  | [![Installing JDownloader and File Browser On The Pi Docker Server](../build/images/yt-badge-novaspirit.png "Installing JDownloader and File Browser On The Pi Docker Server")](https://www.youtube.com/watch?v=30MYRgCObu8&list=PL846hFPMqg3jwkxcScD1xw2bKXrJVvarc&index=4) |
 |[Flame](https://github.com/pawelmalak/flame)|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:|Container| [![](../build/images/blue_doc_icon.png)](https://github.com/pawelmalak/flame#with-docker-recommended) |  |  |  |
 |FlareSolverr|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:|Container| [![](../build/images/blue_doc_icon.png)](https://github.com/FlareSolverr/FlareSolverr#installation) |  |  |  |
+|[flatnotes](https://github.com/Dullage/flatnotes)|:x:|:heavy_check_mark:|:heavy_check_mark:|Container| [![](../build/images/blue_doc_icon.png)](https://hub.docker.com/r/dullage/flatnotes) |  | [![](../build/images/script_icon.png)](../tools/install_flatnotes.sh) |  |
 |[FoundryVTT Server](https://foundryvtt.com/)|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:|Container| [![](../build/images/blue_doc_icon.png)](https://hub.docker.com/r/felddy/foundryvtt) |  |  |  |
 |[FreshRSS](https://www.freshrss.org/)|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:|Container| [![](../build/images/blue_doc_icon.png)](https://github.com/FreshRSS/FreshRSS/tree/edge/Docker) |  |  |  |
 |[Gazee](https://github.com/hubbcaps/gazee)|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:|Container| [![](../build/images/blue_doc_icon.png)](https://hub.docker.com/r/linuxserver/gazee) |  |  |  |

BIN
images/flatnotes.png


+ 49 - 0
template/apps/flatnotes.json

@@ -0,0 +1,49 @@
+{
+	"categories": [
+		"Other",
+		"Tools"
+	],
+	"description": "A distraction-free, database-less note taking app that puts your content first.",
+	"env": [
+		{
+			"default": "password",
+			"label": "FLATNOTES_AUTH_TYPE",
+			"name": "FLATNOTES_AUTH_TYPE"
+		},
+		{
+			"default": "admin",
+			"label": "FLATNOTES_USERNAME",
+			"name": "FLATNOTES_USERNAME"
+		},
+		{
+			"default": "changeme",
+			"label": "FLATNOTES_PASSWORD",
+			"name": "FLATNOTES_PASSWORD"
+		},
+		{
+			"default": "aLongRandomSeriesOfCharacters",
+			"label": "FLATNOTES_SECRET_KEY",
+			"name": "FLATNOTES_SECRET_KEY"
+		}
+	],
+	"image_arm64": "dullage/flatnotes:latest",
+	"image_amd64": "dullage/flatnotes:latest",
+	"logo": "https://raw.githubusercontent.com/spandan13/pi-hosted/master/images/flatnotes.png",
+	"name": "flatnotes",
+	"officialDoc": "https://hub.docker.com/r/dullage/flatnotes",
+	"platform": "linux",
+	"preInstallScript": "install_flatnotes.sh",
+	"ports": [
+		"8715:80/tcp"
+	],
+	"restart_policy": "unless-stopped",
+	"title": "flatnotes",
+	"type": 1,
+        "volumes": [
+                {
+                        "bind": "/portainer/Files/AppData/Config/flatnotes/data",
+                        "container": "/app/data"
+                }
+	],
+	"webpage": "https://github.com/Dullage/flatnotes"
+}

+ 46 - 0
template/portainer-v2-amd64.json

@@ -1906,6 +1906,52 @@
 			"type": 1,
 			"note": "<h3>Template created by Pi-Hosted Series</h3><b>Check our Github page: <a href=\"https://github.com/pi-hosted/pi-hosted\" target=\"_blank\">https://github.com/pi-hosted/pi-hosted</a></b><br><br><b>Official Docker Documentation: </b><a href=\"https://github.com/FlareSolverr/FlareSolverr#installation\" target=\"_blank\">https://github.com/FlareSolverr/FlareSolverr#installation</a><br><br><br>"
 		},
+		{
+			"categories": [
+				"Other",
+				"Tools"
+			],
+			"description": "A distraction-free, database-less note taking app that puts your content first.",
+			"env": [
+				{
+					"default": "password",
+					"label": "FLATNOTES_AUTH_TYPE",
+					"name": "FLATNOTES_AUTH_TYPE"
+				},
+				{
+					"default": "admin",
+					"label": "FLATNOTES_USERNAME",
+					"name": "FLATNOTES_USERNAME"
+				},
+				{
+					"default": "changeme",
+					"label": "FLATNOTES_PASSWORD",
+					"name": "FLATNOTES_PASSWORD"
+				},
+				{
+					"default": "aLongRandomSeriesOfCharacters",
+					"label": "FLATNOTES_SECRET_KEY",
+					"name": "FLATNOTES_SECRET_KEY"
+				}
+			],
+			"image": "dullage/flatnotes:latest",
+			"logo": "https://raw.githubusercontent.com/spandan13/pi-hosted/master/images/flatnotes.png",
+			"name": "flatnotes",
+			"platform": "linux",
+			"ports": [
+				"8715:80/tcp"
+			],
+			"restart_policy": "unless-stopped",
+			"title": "flatnotes",
+			"type": 1,
+			"volumes": [
+				{
+					"bind": "/portainer/Files/AppData/Config/flatnotes/data",
+					"container": "/app/data"
+				}
+			],
+			"note": "<h3>Template created by Pi-Hosted Series</h3><b>Check our Github page: <a href=\"https://github.com/pi-hosted/pi-hosted\" target=\"_blank\">https://github.com/pi-hosted/pi-hosted</a></b><br><br><b>Official Webpage: </b><a href=\"https://github.com/Dullage/flatnotes\" target=\"_blank\">https://github.com/Dullage/flatnotes</a><br><b>Official Docker Documentation: </b><a href=\"https://hub.docker.com/r/dullage/flatnotes\" target=\"_blank\">https://hub.docker.com/r/dullage/flatnotes</a><br><br><b><a href=\"https://github.com/pi-hosted/pi-hosted/blob/master/tools/install_flatnotes.sh\" target=\"_blank\">Pre-installation script</a> must be RAN before you install: </b>wget -qO- https://raw.githubusercontent.com/pi-hosted/pi-hosted/master/tools/install_flatnotes.sh | bash<br><br>"
+		},
 		{
 			"categories": [
 				"Other",

+ 46 - 0
template/portainer-v2-arm64.json

@@ -1906,6 +1906,52 @@
 			"type": 1,
 			"note": "<h3>Template created by Pi-Hosted Series</h3><b>Check our Github page: <a href=\"https://github.com/pi-hosted/pi-hosted\" target=\"_blank\">https://github.com/pi-hosted/pi-hosted</a></b><br><br><b>Official Docker Documentation: </b><a href=\"https://github.com/FlareSolverr/FlareSolverr#installation\" target=\"_blank\">https://github.com/FlareSolverr/FlareSolverr#installation</a><br><br><br>"
 		},
+		{
+			"categories": [
+				"Other",
+				"Tools"
+			],
+			"description": "A distraction-free, database-less note taking app that puts your content first.",
+			"env": [
+				{
+					"default": "password",
+					"label": "FLATNOTES_AUTH_TYPE",
+					"name": "FLATNOTES_AUTH_TYPE"
+				},
+				{
+					"default": "admin",
+					"label": "FLATNOTES_USERNAME",
+					"name": "FLATNOTES_USERNAME"
+				},
+				{
+					"default": "changeme",
+					"label": "FLATNOTES_PASSWORD",
+					"name": "FLATNOTES_PASSWORD"
+				},
+				{
+					"default": "aLongRandomSeriesOfCharacters",
+					"label": "FLATNOTES_SECRET_KEY",
+					"name": "FLATNOTES_SECRET_KEY"
+				}
+			],
+			"image": "dullage/flatnotes:latest",
+			"logo": "https://raw.githubusercontent.com/spandan13/pi-hosted/master/images/flatnotes.png",
+			"name": "flatnotes",
+			"platform": "linux",
+			"ports": [
+				"8715:80/tcp"
+			],
+			"restart_policy": "unless-stopped",
+			"title": "flatnotes",
+			"type": 1,
+			"volumes": [
+				{
+					"bind": "/portainer/Files/AppData/Config/flatnotes/data",
+					"container": "/app/data"
+				}
+			],
+			"note": "<h3>Template created by Pi-Hosted Series</h3><b>Check our Github page: <a href=\"https://github.com/pi-hosted/pi-hosted\" target=\"_blank\">https://github.com/pi-hosted/pi-hosted</a></b><br><br><b>Official Webpage: </b><a href=\"https://github.com/Dullage/flatnotes\" target=\"_blank\">https://github.com/Dullage/flatnotes</a><br><b>Official Docker Documentation: </b><a href=\"https://hub.docker.com/r/dullage/flatnotes\" target=\"_blank\">https://hub.docker.com/r/dullage/flatnotes</a><br><br><b><a href=\"https://github.com/pi-hosted/pi-hosted/blob/master/tools/install_flatnotes.sh\" target=\"_blank\">Pre-installation script</a> must be RAN before you install: </b>wget -qO- https://raw.githubusercontent.com/pi-hosted/pi-hosted/master/tools/install_flatnotes.sh | bash<br><br>"
+		},
 		{
 			"categories": [
 				"Other",

+ 12 - 0
tools/install_flatnotes.sh

@@ -0,0 +1,12 @@
+#!/bin/bash
+
+function error {
+    echo -e "\\e[91m$1\\e[39m"
+    exit 1
+}
+
+echo "Creating directory..."
+sudo mkdir -p /portainer/Files/AppData/Config/flatnotes || error "Failed to create folder!"
+sudo mkdir -p /portainer/Files/AppData/Config/flatnotes/data || error "Failed to create folder!"
+sudo chown -R 1000.1000 /portainer/Files/AppData/Config/flatnotes || error "Failed to create folder!"
+echo "Setup complete. You can now install Flatnotes using the App Template."