From 40962fc350228e51c06a3f749c5e51acb62a8183 Mon Sep 17 00:00:00 2001 From: Wayback Archiver <66856220+waybackarchiver@users.noreply.github.com> Date: Mon, 24 Oct 2022 01:47:59 +0000 Subject: [PATCH] Add render.yaml --- build/docker/Dockerfile.render | 27 +++++++++++++++++++++++++++ render.yaml | 19 +++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 build/docker/Dockerfile.render create mode 100644 render.yaml diff --git a/build/docker/Dockerfile.render b/build/docker/Dockerfile.render new file mode 100644 index 000000000..5bfe3f4ac --- /dev/null +++ b/build/docker/Dockerfile.render @@ -0,0 +1,27 @@ +# Copyright 2022 Wayback Archiver. All rights reserved. +# Use of this source code is governed by the GNU GPL v3 +# license that can be found in the LICENSE file. +# +# syntax=docker/dockerfile:1.2 +ARG WAYBACK_IMAGE_TAG=latest-bundle + +FROM ghcr.io/wabarc/wayback:${WAYBACK_IMAGE_TAG} + +ENV BASE_DIR /wayback +ENV WAYBACK_TOR_LOCAL_PORT 80 + +WORKDIR ${BASE_DIR} + +RUN set -ex; \ + chown wayback:nogroup /var/log/tor; \ + chown wayback:nogroup /var/lib/tor; \ + \ + setcap 'cap_net_bind_service=+ep' /usr/local/bin/wayback; \ + \ + sed -i 's/User/#User/g' /etc/tor/torrc + +USER wayback + +EXPOSE 80 + +CMD ["/usr/local/bin/wayback", "-d", "web"] diff --git a/render.yaml b/render.yaml new file mode 100644 index 000000000..8d251f4fd --- /dev/null +++ b/render.yaml @@ -0,0 +1,19 @@ +# Copyright 2022 Wayback Archiver. All rights reserved. +# Use of this source code is governed by the GNU GPL v3 +# license that can be found in the LICENSE file. +# +# More details see https://render.com/docs/blueprint-spec + +services: + - type: web + name: wayback-starter + plan: free + env: docker + autoDeploy: false + healthCheckPath: /healthcheck + dockerfilePath: ./build/docker/Dockerfile.render + envVars: + - key: PORT + value: 80 + - key: WAYBACK_IPFS_APIKEY + sync: false