From ebce5287c086f750adf8ad64e4e765a1bbf77f64 Mon Sep 17 00:00:00 2001 From: infogulch Date: Fri, 5 Mar 2021 11:27:22 -0600 Subject: [PATCH] Add athens app build files for cloudron --- CloudronManifest.json | 29 +++++++++++++++++++++++++++++ Dockerfile | 17 +++++++++++++++++ start.sh | 8 ++++++++ 3 files changed, 54 insertions(+) create mode 100644 CloudronManifest.json create mode 100644 Dockerfile create mode 100644 start.sh diff --git a/CloudronManifest.json b/CloudronManifest.json new file mode 100644 index 0000000..593f797 --- /dev/null +++ b/CloudronManifest.json @@ -0,0 +1,29 @@ +{ + "id": "com.athens.cloudronapp", + "title": "Athens", + "author": "Athens Project", + "description": "Outliner note taking app similar to Roam Research", + "tagline": "It's annoying to have to type a tagline for a test project", + "version": "0.0.1", + "healthCheckPath": "/", + "httpPort": 3000, + "addons": { + "localstorage": {}, + "ldap": {}, + "postgresql": {}, + "sendmail": {} + }, + "optionalSso": true, + "memoryLimit": 1610612736, + "manifestVersion": 2, + "website": "https://github.com/athensresearch/athens", + "contactEmail": "support@clourdon.io", + "icon": "", + "tags": [ "notes", "outliner" ], + "mediaLinks": [], + "postInstallMessage": "good luck", + "minBoxVersion": "5.3.0", + "documentationUrl": "https://github.com/athensresearch/athens", + "forumUrl": "https://forum.cloudron.io/", + "changelog": "It's also annoying to require a changelog" +} diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..619be5e --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +FROM cloudron/base:3.0.0@sha256:455c70428723e3a823198c57472785437eb6eab082e79b3ff04ea584faf46e92 + +RUN mkdir -p /app/code +WORKDIR /app/code + +RUN apt-get update -y && apt-get install -y leiningen && rm -rf /var/lib/apt/lists/* + +ARG VERSION=v1.0.0-beta.49 +RUN curl -L https://github.com/athensresearch/athens/archive/${VERSION}.tar.gz | tar -xz --strip-components 1 -f - + +RUN yarn --frozen-lockfile +RUN lein do compile + +COPY start.sh /app/code/start.sh + +CMD /app/code/start.sh + diff --git a/start.sh b/start.sh new file mode 100644 index 0000000..0d21b08 --- /dev/null +++ b/start.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +set -eu + +chown -R cloudron:cloudron /app/data + +exec /usr/local/bin/gosu cloudron:cloudron lein dev +