From fee0363642d3c35e75b6fb4196adda351fe62cf5 Mon Sep 17 00:00:00 2001 From: mo8it <mo8it@proton.me> Date: Sat, 25 Mar 2023 20:55:23 +0100 Subject: [PATCH] Remove old webhook --- containers/webhook/Containerfile | 22 ---------------------- containers/webhook/webhook.fish | 26 -------------------------- 2 files changed, 48 deletions(-) delete mode 100644 containers/webhook/Containerfile delete mode 100755 containers/webhook/webhook.fish diff --git a/containers/webhook/Containerfile b/containers/webhook/Containerfile deleted file mode 100644 index 54c5bcb..0000000 --- a/containers/webhook/Containerfile +++ /dev/null @@ -1,22 +0,0 @@ -FROM docker.io/library/rust:latest AS chef -RUN cargo install cargo-chef -WORKDIR app - -FROM chef AS planner -COPY . . -RUN cargo chef prepare --recipe-path recipe.json - -FROM chef AS builder -RUN apt update && \ - apt install libsqlite3-dev -y -COPY --from=planner /app/recipe.json recipe.json -RUN cargo chef cook --release --recipe-path recipe.json -COPY . . -RUN cargo build --release --bin git-webhook-client - -FROM docker.io/library/debian:stable-slim AS runtime -WORKDIR app -RUN apt update && \ - apt install libsqlite3-dev -y -COPY --from=builder /app/target/release/git-webhook-client /usr/local/bin/git-webhook-client -CMD ["git-webhook-client"] \ No newline at end of file diff --git a/containers/webhook/webhook.fish b/containers/webhook/webhook.fish deleted file mode 100755 index 817bdfc..0000000 --- a/containers/webhook/webhook.fish +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/env fish - -set -l container_name webhook -set -l container_volumes_dir ~/volumes/$container_name -set -l repo_dir ~/code/git-webhook-client - -if systemctl --user is-enabled container-$container_name - systemctl --user disable --now container-$container_name -end - -buildah build --layers -t $container_name:latest - -cd $repo_dir -cargo update -cargo build -r - -podman-default-create \ - $container_name \ - --network traefik \ - -v $repo_dir:/volumes/src:Z \ - -v $container_volumes_dir/db:/volumes/db:Z \ - -v $container_volumes_dir/repos:/volumes/repos:Z \ - -v $container_volumes_dir/logs:/volumes/logs:Z \ - -v ~/volumes/nginx/sites:/volumes/sites:z \ - -e GWC_CONFIG_FILE=/volumes/src/dev_data/config.yaml \ - localhost/$container_name:latest