From 7f53188686514e9cd83884034a18c8107f5dde88 Mon Sep 17 00:00:00 2001 From: Patryk Wojtyczek Date: Fri, 8 Sep 2023 14:40:21 +0200 Subject: [PATCH 1/2] alpine based dockerfile for thrift 0.19.0 --- 0.19/Dockerfile | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 0.19/Dockerfile diff --git a/0.19/Dockerfile b/0.19/Dockerfile new file mode 100644 index 0000000..c788a90 --- /dev/null +++ b/0.19/Dockerfile @@ -0,0 +1,34 @@ +FROM alpine:3.16 + +ENV THRIFT_VERSION v0.19.0 + +RUN buildDeps=" \ + automake \ + bison \ + curl \ + flex \ + g++ \ + boost-dev \ + libressl-dev \ + libevent-dev \ + libtool \ + make \ + pkgconf \ + autoconf \ + "; \ + apk update && apk add --no-cache $buildDeps \ + && curl -k -sSL "https://github.com/apache/thrift/archive/${THRIFT_VERSION}.tar.gz" -o thrift.tar.gz \ + && mkdir -p /usr/src/thrift \ + && tar zxf thrift.tar.gz -C /usr/src/thrift --strip-components=1 \ + && rm thrift.tar.gz \ + && cd /usr/src/thrift \ + && ./bootstrap.sh \ + && ./configure --disable-libs \ + && make \ + && make install \ + && cd / \ + && rm -rf /usr/src/thrift \ + && apk del --purge $buildDeps \ + && apk add --no-cache libstdc++ + +CMD [ "thrift" ] \ No newline at end of file From dcb29a38fef279d05bf0ecbaba83f967c1d2d30e Mon Sep 17 00:00:00 2001 From: Patryk Wojtyczek Date: Fri, 8 Sep 2023 14:45:47 +0200 Subject: [PATCH 2/2] add newline --- 0.19/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/0.19/Dockerfile b/0.19/Dockerfile index c788a90..8ebde5b 100644 --- a/0.19/Dockerfile +++ b/0.19/Dockerfile @@ -31,4 +31,4 @@ RUN buildDeps=" \ && apk del --purge $buildDeps \ && apk add --no-cache libstdc++ -CMD [ "thrift" ] \ No newline at end of file +CMD [ "thrift" ]