Browse Source

[weechat] Initial commit

drymer 7 months ago
parent
commit
22cc2a88eb
Signed by: drymer <drymer@autistici.org> GPG Key ID: A307D64D5DDFDAAD
2 changed files with 42 additions and 0 deletions
  1. 33
    0
      weechat/Dockerfile
  2. 9
    0
      weechat/README.md

+ 33
- 0
weechat/Dockerfile View File

@@ -0,0 +1,33 @@
1
+FROM debian:stretch-slim as builder
2
+ARG version=v2.3
3
+ENV LANG=es_ES.UTF-8
4
+ENV TERM=screen-256color
5
+RUN apt update && apt install -y git cmake libcurl3 libintl-perl zlib1g-dev \
6
+    libcurl4-gnutls-dev libperl-dev python2.7-dev libncursesw5-dev \
7
+    ca-certificates locales liburi-find-delimited-perl lib32ncursesw5-dev \
8
+    tcl-dev guile-2.0-dev liblua5.1-0-dev libgcrypt20-dev libgnutls28-dev \
9
+    ruby-dev libv8-dev libcpputest-dev asciidoctor python-pip curl locales php7.0 && \
10
+    sed -i "s/^# $LANG/$LANG/" /etc/locale.gen && locale-gen "$LANG" && \
11
+    update-locale LANG="$LANG" && git clone https://github.com/weechat/weechat -b $version \
12
+    /weechat && cd /weechat && cmake . && make install
13
+
14
+FROM debian:stretch-slim as production
15
+ENV LANG=es_ES.UTF-8
16
+ENV TERM=screen-256color
17
+RUN apt update && apt install -y libcurl3 libintl-perl \
18
+    libcurl4-gnutls-dev libperl-dev python2.7 libncursesw5 \
19
+    ca-certificates locales liburi-find-delimited-perl lib32ncursesw5 \
20
+    tcl guile-2.0 liblua5.1-0 libgcrypt20 libgnutls28-dev \
21
+    ruby libv8-3.14.5 python-pip curl locales php7.0 && \
22
+    sed -i "s/^# $LANG/$LANG/" /etc/locale.gen && locale-gen "$LANG" && \
23
+    update-locale LANG="$LANG" && ln -sf /usr/share/zoneinfo/Europe/Madrid \
24
+    /etc/localtime && pip install websocket-client
25
+
26
+COPY --from=builder /usr/local/bin/weechat-curses /usr/local/bin/weechat-curses
27
+COPY --from=builder /usr/local/bin/weechat-headless /usr/local/bin/weechat-headless
28
+COPY --from=builder /usr/local/bin/weechat /usr/local/bin/weechat
29
+COPY --from=builder /usr/local/lib/pkgconfig/weechat.pc /usr/local/lib/pkgconfig/weechat.pc
30
+COPY --from=builder /usr/local/lib/weechat /usr/local/lib/weechat
31
+COPY --from=builder /usr/local/include/weechat /usr/local/include/weechat
32
+
33
+ENTRYPOINT ["weechat", "--dir", "/weechat"]

+ 9
- 0
weechat/README.md View File

@@ -0,0 +1,9 @@
1
+# Weechat
2
+
3
+This image will expect to find your configuration files at `/weechat`. You may
4
+want to use this function:
5
+
6
+``` bash
7
+docker run -ti --name weechat --rm -v ~/.weechat:/weechat --net=host \\
8
+    registry.daemons.it/weechat
9
+```

Loading…
Cancel
Save