Add packaging files

This commit is contained in:
Joe 2021-05-19 19:06:42 -05:00
parent 7e27029edc
commit 5bac2198f6
4 changed files with 59 additions and 0 deletions

27
CloudronManifest.json Normal file
View File

@ -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"
}

12
Dockerfile Normal file
View File

@ -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"]

9
build-and-push.sh Executable file
View File

@ -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"

11
start.sh Executable file
View File

@ -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