diff --git a/.dockerignore b/.dockerignore index c7688ce..c9e3ea1 100644 --- a/.dockerignore +++ b/.dockerignore @@ -2,4 +2,5 @@ .gitignore .dockerignore node_modules +screenshots diff --git a/CHANGELOG b/CHANGELOG new file mode 100644 index 0000000..8a10eb6 --- /dev/null +++ b/CHANGELOG @@ -0,0 +1,3 @@ +[0.1.0] +* Initial version + diff --git a/CloudronManifest.json b/CloudronManifest.json index f642bb3..c9898cd 100644 --- a/CloudronManifest.json +++ b/CloudronManifest.json @@ -1,6 +1,13 @@ { "version": "0.1.0", "id": "org.joinpeertube.cloudronapp", + "title": "PeerTube", + "author": "PeerTube developers", + "description": "file://DESCRIPTION.md", + "website": "https://joinpeertube.org/", + "contactEmail": "support@cloudron.io", + "tagline": "Take back control of your videos", + "logo": "file://logo.png", "healthCheckPath": "/", "httpPort": 9000, "addons": { @@ -9,5 +16,15 @@ "redis": {}, "sendmail": {} }, + "tags": [ "video", "youtube", "vimeo", "blog", "instagram" ], + "mediaLinks": [ + "https://s3.amazonaws.com/cloudron-app-screenshots/org.joinpeertube.cloudronapp/b78cbb7269d54406ab179f287c130eac1db9f46a/1.png", + "https://s3.amazonaws.com/cloudron-app-screenshots/org.joinpeertube.cloudronapp/b78cbb7269d54406ab179f287c130eac1db9f46a/2.png", + "https://s3.amazonaws.com/cloudron-app-screenshots/org.joinpeertube.cloudronapp/b78cbb7269d54406ab179f287c130eac1db9f46a/3.jpg" + ], + "changelog": "file://CHANGELOG", + "postInstallMessage": "file://POSTINSTALL.md", + "documentationUrl": "https://cloudron.io/documentation/apps/peertube/", "manifestVersion": 2 } + diff --git a/DESCRIPTION.md b/DESCRIPTION.md new file mode 100644 index 0000000..60210ff --- /dev/null +++ b/DESCRIPTION.md @@ -0,0 +1,18 @@ +This app packages PeerTube 2.2.0 + +## About + +PeerTube is a free, decentralized and federated video platform developed as an alternative to other platforms that centralize our data and attention, such as YouTube, Dailymotion or Vimeo. + +But one organization hosting PeerTube alone may not have enough money to pay for bandwidth and video storage of its servers, all servers of PeerTube are interoperable as a federated network, and non-PeerTube servers can be part of the larger Vidiverse (federated video network) by talking our implementation of ActivityPub. Video load is reduced thanks to P2P in the web browser using WebTorrent or p2p-media-loader. + +## Features + +* Video streaming - Just upload your videos, and be sure they will stream anywhere. Add a description, some tags and your video will be discoverable by the entire video fediverse, not just your instance. You can even embed a player on your favorite website! + +* Keep in touch with video creators - Follow your favorite channels from PeerTube or really any other place. No need to have an account on the instance you watched a video to follow its author, you can do all of that from the Fediverse (Mastodon, Pleroma, and plenty others), or just with good ol' RSS. + +* An interface to call home - Be it as a user or an instance administrator, you can decide what your experience will be like. Don't like the colors? They are easy to change. Don't want to list videos of an instance but let your users subscribe to them? Don't like the regular web client? All of that can be changed, and much more. No UX dark pattern, no mining your data, no video recommendation bullshitâ„¢. + +* Communities that help each other - In addition to visitors using WebTorrent to share the load among them, instances can help each other by caching one another's videos. This way even small instances have a way to show content to a wider audience, as they will be shouldered by friend instances (more about that in our redundancy guide). Content creators can get help from their viewers in the simplest way possible: a support button showing a message linking to their donation accounts or really anything else. No more pay-per-view and advertisements that hurt visitors and incentivize alter creativity (more about that in our FAQ). + diff --git a/Dockerfile b/Dockerfile index 97c1c3b..eb735ff 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,16 +9,21 @@ RUN apt-get -y update && apt -y install ffmpeg && rm -rf /var/cache/apt /var/lib RUN curl -sL https://github.com/mikefarah/yq/releases/download/3.2.1/yq_linux_amd64 -o /usr/bin/yq && \ chmod +x /usr/bin/yq -# ARG VERSION=2.2.0 +ARG VERSION=2.2.0 # install peertube -# RUN curl -sL https://github.com/Chocobozzz/PeerTube/releases/download/v${VERSION}/peertube-v${VERSION}.tar.xz | tar --strip-components 1 -Jxvf - +RUN curl -sL https://github.com/Chocobozzz/PeerTube/releases/download/v${VERSION}/peertube-v${VERSION}.tar.xz | tar --strip-components 1 -Jxvf - +RUN yarn install --production --pure-lockfile + +# remove the peertube suffix of dbname (see https://github.com/Chocobozzz/PeerTube/pull/2898) +RUN sed -e "s/DBNAME: 'peertube' +/DBNAME: /g" -i dist/server/initializers/config.js # dbname branch -ARG VERSION=d6a0360a15163ef6f074cb8f649b47efdaf12299 -RUN curl -L https://github.com/cloudron-io/PeerTube/archive/${VERSION}.tar.gz | tar -zxvf - --strip-components=1 +# ARG VERSION=e7fe135b5a5666147256efa11d15474d761c37d4 +# RUN curl -L https://github.com/cloudron-io/PeerTube/archive/${VERSION}.tar.gz | tar -zxvf - --strip-components=1 +# +# RUN yarn install && npm run build -RUN yarn install --production --pure-lockfile RUN ln -sf /app/data/production.yaml /app/code/config/local-production.yaml COPY production.yaml.example start.sh /app/pkg/ diff --git a/POSTINSTALL.md b/POSTINSTALL.md new file mode 100644 index 0000000..6b48152 --- /dev/null +++ b/POSTINSTALL.md @@ -0,0 +1,6 @@ +PeerTube does not support webserver host change + +Change the admin email + root + changeme + diff --git a/logo.png b/logo.png new file mode 100644 index 0000000..f759814 Binary files /dev/null and b/logo.png differ diff --git a/screenshots/home.png b/screenshots/home.png new file mode 100644 index 0000000..bf28c9a Binary files /dev/null and b/screenshots/home.png differ diff --git a/screenshots/peertube-federation-multiplicity.jpg b/screenshots/peertube-federation-multiplicity.jpg new file mode 100644 index 0000000..4415462 Binary files /dev/null and b/screenshots/peertube-federation-multiplicity.jpg differ diff --git a/screenshots/peertube-screenshot.jpg b/screenshots/peertube-screenshot.jpg new file mode 100644 index 0000000..d2a1a6e Binary files /dev/null and b/screenshots/peertube-screenshot.jpg differ diff --git a/screenshots/subscribe.png b/screenshots/subscribe.png new file mode 100644 index 0000000..c9d8020 Binary files /dev/null and b/screenshots/subscribe.png differ diff --git a/start.sh b/start.sh index 95a5c0a..b0f0021 100755 --- a/start.sh +++ b/start.sh @@ -21,7 +21,7 @@ if [[ ! -f "/app/data/production.yaml" ]]; then # this is sed because there are too many paths sed -e 's,/var/www/peertube/storage,/app/data/storage,g' -i /app/data/production.yaml - reset_root_pasword & + reset_root_password & fi echo "==> Updating configs"