For now? I'm experimenting on an old concept.
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Mainly fought over permissions

+21 -7
+15 -5
Containerfile
··· 31 31 RUN cd /app/ && gleam export erlang-shipment 32 32 33 33 FROM docker.io/library/erlang:28-alpine 34 - RUN adduser -D lumina 35 - USER lumina 34 + RUN mkdir -p /data && chown 1000 /data 35 + 36 + COPY --from=ghcr.io/amacneil/dbmate:latest /usr/local/bin/dbmate /usr/local/bin/dbmate 37 + COPY ./db/migrations /app/migrations 38 + COPY --from=package-client --chown=1000 /build/dist /app/lumina_server/priv/static 39 + COPY --from=package-server --chown=1000 /app/build/erlang-shipment /app 40 + 36 41 WORKDIR /app 37 - COPY --from=package-server --chown=lumina:lumina /app/build/erlang-shipment /app 38 - COPY --from=package-client --chown=lumina:lumina /build/dist /app/lumina_server/priv/static 42 + 43 + RUN echo '#!/bin/sh' > /app/entrypoint_.sh && \ 44 + echo 'dbmate --url "sqlite:/data/instance.db" --migrations-dir "/app/migrations" up' >> /app/entrypoint_.sh && \ 45 + echo '/app/entrypoint.sh run' >> /app/entrypoint_.sh && \ 46 + chmod +x /app/entrypoint_.sh 47 + 48 + USER 1000 39 49 VOLUME /data 40 - ENTRYPOINT ["/app/entrypoint.sh", "run"] 50 + ENTRYPOINT ["/app/entrypoint_.sh"]
+6 -2
Justfile
··· 51 51 52 52 [group('prepare')] 53 53 create-data-dirs: 54 - mkdir -p ./data 54 + mkdir -p ./data/configvars/ 55 + chmod 777 data 55 56 56 57 [doc("Clean all build artifacts")] 57 58 clean-all: ··· 69 70 dbmate up 70 71 # I don't know if I want to build for the devmode script? 71 72 # May also make the user from the app, if debug mode is detected. 72 - touch data/debug 73 + touch data/configvars/debug 73 74 74 75 [doc("Run the server in development mode")] 75 76 [group("local-devel")] ··· 93 94 @echo "This script needs to be rewritten for the gleam branch you are on." 94 95 @exit 1 95 96 97 + [group("development")] 98 + parrot: 99 + cd server && gleam run -m parrot -- --sqlite ../data/instance.db