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 +