summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlookshe <github@lookshe.org>2021-03-25 23:23:09 +0100
committerlookshe <github@lookshe.org>2021-03-25 23:23:09 +0100
commit739a832d0a4f5d577fc0baf7790f76ee1ca37c45 (patch)
tree9fc37baff35504c925823f941c4919d4a10895ff
parent2f96bcbf9e5d1450a1d9cc20aeca458aaaa4bb36 (diff)
add mydumper
-rw-r--r--mydumper/Dockerfile33
-rw-r--r--mydumper/out/mydumper_0.10.3-1.wheezy_amd64.debbin0 -> 140830 bytes
2 files changed, 33 insertions, 0 deletions
diff --git a/mydumper/Dockerfile b/mydumper/Dockerfile
new file mode 100644
index 0000000..a559670
--- /dev/null
+++ b/mydumper/Dockerfile
@@ -0,0 +1,33 @@
+ARG MYDUMPER_VERSION=0.10.3
+
+FROM debian/eol:wheezy AS build-stage
+
+ARG MYDUMPER_VERSION
+
+RUN apt-get update \
+ && apt-get install -y \
+ build-essential \
+ cmake \
+ libglib2.0-dev \
+ libmysqlclient15-dev \
+ zlib1g-dev \
+ libpcre3-dev \
+ wget
+RUN wget --no-check-certificate https://github.com/maxbube/mydumper/archive/refs/tags/v$MYDUMPER_VERSION.tar.gz
+RUN tar xzf v$MYDUMPER_VERSION.tar.gz
+RUN cd mydumper-$MYDUMPER_VERSION \
+ && sed -ie "s/^set(VERSION .*)$/set(VERSION $MYDUMPER_VERSION)/" CMakeLists.txt \
+ && cmake -DWITH_SSL=OFF . \
+ && make \
+ && cd package \
+ && sed -ie "s/^SOURCE=\/opt\/src\/mydumper$/SOURCE=\/mydumper-$MYDUMPER_VERSION/" build.sh \
+ && sed -E -ie '/^build_deb \"wheezy\"/! s/^build_(deb|rpm) \".*$//' build.sh \
+ && sed -E -ie 's/^build_deb \"wheezy\" \"wheezy\"$/build_deb \"\" \"wheezy\"/' build.sh \
+ && ./build.sh $MYDUMPER_VERSION 1
+
+FROM scratch
+
+ARG MYDUMPER_VERSION
+
+COPY --from=build-stage /opt/PKGS/mydumper_$MYDUMPER_VERSION-1.wheezy_amd64.deb .
+
diff --git a/mydumper/out/mydumper_0.10.3-1.wheezy_amd64.deb b/mydumper/out/mydumper_0.10.3-1.wheezy_amd64.deb
new file mode 100644
index 0000000..6323d48
--- /dev/null
+++ b/mydumper/out/mydumper_0.10.3-1.wheezy_amd64.deb
Binary files differ