[download-web/mirrorbits] Initial commit of twemproxy image




commit 30eb07f2ffaf90ab08c1fba6b59c53654ec258df
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date:   Mon Apr 12 10:46:20 2021 +0200

    Initial commit of twemproxy image

 twemproxy/Dockerfile | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
---
diff --git a/twemproxy/Dockerfile b/twemproxy/Dockerfile
new file mode 100644
index 0000000..db88cfc
--- /dev/null
+++ b/twemproxy/Dockerfile
@@ -0,0 +1,17 @@
+FROM debian:bullseye-slim as builder
+
+ENV LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now"
+ENV CFLAGS="-march=x86-64-v3 -mtune=generic -O3 -flto -pipe -Wp,-D_FORTIFY_SOURCE=2 
-Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -fasynchronous-unwind-tables 
-fstack-clash-protection -fcf-protection -fno-strict-aliasing"
+
+RUN apt-get update && apt-get install -y build-essential automake libtool git
+RUN git clone https://github.com/twitter/twemproxy && \
+    cd twemproxy && git checkout 6885783e34c5ecc83c2e6762802eb4159cdec4ac
+RUN cd twemproxy && autoreconf -fi && ./configure && make
+
+FROM debian:bullseye-slim
+
+COPY --from=builder /twemproxy/src/nutcracker /usr/local/bin/nutcracker
+COPY --from=builder /twemproxy/conf/nutcracker.yml /etc/nutcracker.yml
+
+EXPOSE 16379
+ENTRYPOINT ["/usr/local/bin/nutcracker", "-c", "/etc/nutcracker.yml"]


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]