Add prebuilt binaries tooling and docs
Some checks failed
/ verify (push) Has been cancelled

This commit is contained in:
Juno Takano 2026-02-18 01:45:11 -03:00
commit feb2f9c1ac
10 changed files with 338 additions and 124 deletions

View file

@ -0,0 +1,14 @@
FROM alpine:latest
MAINTAINER Juno Takano juno@jutty.dev
USER root
# Setup tooling
RUN apk add curl clang
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
# Install
RUN echo "root_node = 'test'" > /root/graph.toml
RUN $HOME/.cargo/bin/cargo install --git https://codeberg.org/jutty/en
# Launch
CMD ["/root/.cargo/bin/en", "-p", "3008", "-g", "/root/graph.toml"]

View file

@ -0,0 +1,15 @@
FROM debian:stable-slim
MAINTAINER Juno Takano juno@jutty.dev
USER root
# Setup tooling
RUN apt-get -y --update install --no-install-recommends \
curl ca-certificates gcc libc6-dev
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
# Install
RUN echo "root_node = 'test'" > /root/graph.toml
RUN $HOME/.cargo/bin/cargo install --git https://codeberg.org/jutty/en
# Launch
CMD ["/root/.cargo/bin/en", "-p", "3008", "-g", "/root/graph.toml"]

7
tests/containers/build.sh Executable file
View file

@ -0,0 +1,7 @@
#!/usr/bin/env sh
set -eu
distro="$1"
podman build --tag "en-$distro" -f "Containerfile.$distro"

7
tests/containers/run.sh Executable file
View file

@ -0,0 +1,7 @@
#!/usr/bin/env sh
set -eu
distro="$1"
podman run --replace --name "en-$distro" --publish 3008:3008 "en-$distro"