From 5bac2198f61077a3e3b7c70e599c2e5de9322a01 Mon Sep 17 00:00:00 2001 From: infogulch Date: Wed, 19 May 2021 19:06:42 -0500 Subject: [PATCH] Add packaging files --- CloudronManifest.json | 27 +++++++++++++++++++++++++++ Dockerfile | 12 ++++++++++++ build-and-push.sh | 9 +++++++++ start.sh | 11 +++++++++++ 4 files changed, 59 insertions(+) create mode 100644 CloudronManifest.json create mode 100644 Dockerfile create mode 100755 build-and-push.sh create mode 100755 start.sh diff --git a/CloudronManifest.json b/CloudronManifest.json new file mode 100644 index 0000000..5698d86 --- /dev/null +++ b/CloudronManifest.json @@ -0,0 +1,27 @@ +{ + "id": "xyz.beepb00p.promnesia", + "title": "Promnesia", + "author": "karlicoss", + "description": "Promnesia is a browser extension (Chrome/Firefox/Firefox mobile) that serves as a web surfing copilot by enhancing your browsing history, improving your web exploration experience, and integrating with your knowledge base.", + "tagline": "Server backend for the Promnesia browser extension", + "version": "v1.0.20210415-1", + "healthCheckPath": "/status", + "httpPort": 3000, + "addons": { + "localstorage": {}, + "proxyAuth": {} + }, + "optionalSso": true, + "memoryLimit": 268435456, + "manifestVersion": 2, + "website": "https://beepb00p.xyz/promnesia.html", + "contactEmail": "support@clourdon.io", + "icon": "", + "tags": [ "knowledge base", "browsing history" ], + "mediaLinks": [], + "postInstallMessage": "good luck", + "minBoxVersion": "5.3.0", + "documentationUrl": "https://github.com/karlicoss/promnesia/blob/master/doc/GUIDE.org", + "forumUrl": "https://forum.cloudron.io/", + "changelog": "Build from source" +} diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..f8aade1 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM cloudron/base:3.0.0@sha256:455c70428723e3a823198c57472785437eb6eab082e79b3ff04ea584faf46e92 + +RUN pip3 install promnesia[all] + +COPY start.sh /app/code/ + + +RUN chmod +x /app/code/start.sh + +EXPOSE 3000 +CMD ["/app/code/start.sh"] + diff --git a/build-and-push.sh b/build-and-push.sh new file mode 100755 index 0000000..1a7789a --- /dev/null +++ b/build-and-push.sh @@ -0,0 +1,9 @@ +VERSION="${VERSION:-v1.0.20210415}" +BUILD="${BUILD:-1}" +REPO="${REPO:-infogulch/promnesia-app}" + +TAG="$REPO:$VERSION-$BUILD" + +docker build . -t "$TAG" +docker push "$TAG" + diff --git a/start.sh b/start.sh new file mode 100755 index 0000000..d182086 --- /dev/null +++ b/start.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +set -eu + +chown -R cloudron:cloudron /app/data + +cd /app/data + +export CACHE_DIR=/run +/usr/local/bin/gosu cloudron:cloudron promnesia demo https://github.com/karlicoss/exobrain --port 3000 +