diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..eb5a316 --- /dev/null +++ b/.dockerignore @@ -0,0 +1 @@ +target diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100755 index 0000000..73f68e5 --- /dev/null +++ b/.woodpecker.yml @@ -0,0 +1,7 @@ +pipeline: + build-plugin: + image: docker + commands: + - docker build -t historian-plugin . + volumes: + - /var/run/docker.sock:/var/run/docker.sock diff --git a/Dockerfile b/Dockerfile new file mode 100755 index 0000000..95fa200 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +FROM rust:1-bookworm + +WORKDIR /usr/src/historian +COPY . . + +RUN cargo install --path . + +ENV INPUT=. +ENV OUTPUT=output +CMD historian $INPUT --render-to $OUTPUT