From e23af1d5a73d7ab3ba16263288ecdcf87a98e909 Mon Sep 17 00:00:00 2001 From: Stefan Schwarz Date: Sun, 5 Dec 2021 16:27:09 +0100 Subject: [PATCH] init --- .drone.yml | 44 ++++++++++++++++++++++++++++++++++++++++++++ Dockerfile | 26 ++++++++++++++++++++++++++ 2 files changed, 70 insertions(+) create mode 100644 .drone.yml create mode 100644 Dockerfile diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..785eff8 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,44 @@ +kind: pipeline +type: docker +name: fallbackswitch + +clone: { disable: yes } + +environment: + DRONE_TAG: 0.7.2 + CUSTOM_REPO: https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git + +steps: + + - name: clone + image: alpine/git + commands: + - echo cloning $CUSTOM_REPO + - git clone $CUSTOM_REPO . + - git checkout $TAG + + - name: build + image: debian:11-slim + commands: + + - apt-get update + - >- + apt-get install -y --no-install-recommends + autoconf + build-essential + ca-certificates + curl + git + gstreamer1.0-gl + gstreamer1.0-plugins-base + gstreamer1.0-tools + libglib2.0-dev + libgstreamer1.0-dev + libgstreamer-plugins-base1.0-dev + - curl https://sh.rustup.rs -sSf | sh -s -- --profile minimal -y + + - cd utils/fallbackswitch + - . $HOME/.cargo/env && cargo build --release + - cd ../.. + - find target -name '*.so' + diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..c5e515c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,26 @@ +FROM debian:11-slim + +RUN apt update +RUN apt install -y --no-install-recommends \ + autoconf \ + build-essential \ + ca-certificates \ + curl \ + git \ + gstreamer1.0-gl \ + gstreamer1.0-plugins-base \ + gstreamer1.0-tools \ + libglib2.0-dev \ + libgstreamer1.0-dev \ + libgstreamer-plugins-base1.0-dev + +RUN curl https://sh.rustup.rs -sSf | sh -s -- --profile minimal -y + +WORKDIR /opt +RUN git clone https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git + +WORKDIR /opt/gst-plugins-rs/utils/fallbackswitch +RUN . $HOME/.cargo/env && cargo build --release + +WORKDIR /opt/gst-plugins-rs +RUN find target/release