This commit is contained in:
parent
3ca3f31d8d
commit
feb2f9c1ac
10 changed files with 338 additions and 124 deletions
14
tests/containers/Containerfile.alpine
Normal file
14
tests/containers/Containerfile.alpine
Normal 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"]
|
||||
15
tests/containers/Containerfile.debian
Normal file
15
tests/containers/Containerfile.debian
Normal 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
7
tests/containers/build.sh
Executable 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
7
tests/containers/run.sh
Executable file
|
|
@ -0,0 +1,7 @@
|
|||
#!/usr/bin/env sh
|
||||
|
||||
set -eu
|
||||
|
||||
distro="$1"
|
||||
|
||||
podman run --replace --name "en-$distro" --publish 3008:3008 "en-$distro"
|
||||
Loading…
Add table
Add a link
Reference in a new issue