I'm Felix, a developer from Berlin interested in user interfaces, music and microcontrollers.
🌱 More on my website.
📮 Say hello.
🔖 Run linkding on fly.io. Backup the bookmark DB to cloud storage with litestream.
License: MIT License
I'm Felix, a developer from Berlin interested in user interfaces, music and microcontrollers.
🌱 More on my website.
📮 Say hello.
starting with v1.15.0
, sissbruecker/linkding#323 allows us to automatically create a superuser via env variables.
Test this and update documentation.
Hi, followed the guide exactly. After I deploy to fly.io and go to live logs i see that;
2024-03-27T14:54:52.830 app[3287965c063418] ... [info] ERROR Error: failed to spawn command: /scripts/run.sh: No such file or directory (os error 2)
I tried to use fly, but it is asking me to add card details even for 256MB machine,
so I am trying to imitate the same steps on fl0 - https://www.fl0.com
by setting the same environment variables in the fl0 machine on website, and using Dockerfile
but for some reason, it finishes the build but fails to deploy with Status Reason: CrashLoopBackoff
Could you please help? I have not used Dockerfile before so I am not sure why it is crashing
Thank you
ARG APP_NAME=linkding
ARG ALPINE_IMAGE_TAG=3.14
ARG LINKDING_IMAGE_TAG=latest
FROM docker.io/alpine:$ALPINE_IMAGE_TAG as builder
ARG APP_NAME
ENV APP_NAME=$APP_NAME
ARG LITESTREAM_VERSION=v0.3.11
# Download the static build of Litestream directly into the path & make it executable.
# This is done in the builder and copied as the chmod doubles the size.
ADD https://github.com/benbjohnson/litestream/releases/download/$LITESTREAM_VERSION/litestream-$LITESTREAM_VERSION-linux-amd64.tar.gz /tmp/litestream.tar.gz
RUN tar -C /usr/local/bin -xzf /tmp/litestream.tar.gz
# Pull linkding docker image.
FROM docker.io/sissbruecker/linkding:$LINKDING_IMAGE_TAG
ARG APP_NAME
ENV APP_NAME=$APP_NAME
VOLUME /etc/linkding
VOLUME /etc/linkding/data
ENV DB_PATH="/etc/linkding/data/db.sqlite3"
ENV LD_SERVER_PORT="9090"
ENV LITESTREAM_REPLICA_PATH="linkding_replica.sqlite3"
ENV LITESTREAM_REPLICA_BUCKET="somename"
ENV LITESTREAM_REPLICA_ENDPOINT="someurl.backblazeb2.com"
# Copy Litestream from builder.
COPY --from=builder /usr/local/bin/litestream /usr/local/bin/litestream
# Copy Litestream configuration file.
COPY etc/litestream.yml /etc/litestream.yml
# Copy custom uwsgi. This allows to run with 256MB RAM.
COPY uwsgi.ini /etc/linkding/uwsgi.ini
# Copy startup script and make it executable.
COPY scripts/run.sh /scripts/run.sh
RUN chmod +x /scripts/run.sh
# Litestream spawns linkding's webserver as subprocess.
CMD ["/scripts/run.sh"]
With 256MB RAM, there are frequent Out Of Memory (OOM) crashes. The idle RAM is about 220 MB.
Without further configuration, import via html file is okay as long as 300 bookmarks per file. More than that and it crashed with OOM.
For the mass import, I run the linkding in local docker and do the import. Then backup sqlite file (according to the documentation) and replace the sqlite file on fly.io. I have to restart the fly.io. The existing user and user from local import both works.
I followed the fly.io documentation to enable swap and it reduced idle RAM to 180MB.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.