[download-web/mirrorbits] Initial commit of twemproxy image
- From: Bartłomiej Piotrowski <bpiotrowski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [download-web/mirrorbits] Initial commit of twemproxy image
- Date: Mon, 12 Apr 2021 08:50:12 +0000 (UTC)
commit 5a2d4f803aa38195fd733e3639924b7ec970dc9d
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..1fda125
--- /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"
+
+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]