Last active
November 29, 2016 19:49
-
-
Save stevemcquaid/3339de53d6827b23d588d51167050257 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM ubuntu:16.04 | |
| MAINTAINER Fabian Stäber, [email protected] | |
| ENV LAST_UPDATE=2016-09-03 | |
| RUN apt-get update && \ | |
| apt-get upgrade -y | |
| # Set the timezone | |
| RUN echo "US/Pacific-New" | tee /etc/timezone && \ | |
| ln -fs /usr/share/zoneinfo/US/Pacific-New /etc/localtime && \ | |
| dpkg-reconfigure -f noninteractive tzdata | |
| # Set the locale for UTF-8 support | |
| RUN echo en_US.UTF-8 UTF-8 >> /etc/locale.gen && \ | |
| locale-gen && \ | |
| update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 | |
| ENV LANG en_US.UTF-8 | |
| ENV LANGUAGE en_US:en | |
| ENV LC_ALL en_US.UTF-8 | |
| RUN apt-get -y install \ | |
| python-potr \ | |
| weechat \ | |
| weechat-scripts \ | |
| bitlbee | |
| # # Bitlbee config | |
| # ADD bitlbee.conf /home/guest/.weechat/bitlebee.conf | |
| # RUN /etc/init.d/bitlbee restart -c /home/guest/.weechat/bitlbee/bitlbee.conf | |
| RUN echo "bitlbee -c /home/guest/.weechat/bitlbee/bitlbee.conf &" >> /etc/bash.bashrc | |
| # RUN echo "export TZ=US/Pacific" >> /etc/bash.bashrc | |
| RUN echo "weechat" >> /etc/bash.bashrc | |
| RUN apt-get -y install git dh-autoreconf autoconf automake libtool bitlbee-dev libglib2.0-dev libjson-glib-dev zlib1g-dev | |
| RUN git clone https://github.com/jgeboski/bitlbee-facebook.git | |
| RUN cd bitlbee-facebook && ./autogen.sh | |
| RUN cd bitlbee-facebook && make | |
| RUN cd bitlbee-facebook && make install | |
| # Install tor | |
| RUN apt-get -y install tor | |
| RUN service tor start | |
| RUN adduser --disabled-login --gecos '' guest | |
| USER guest | |
| WORKDIR /home/guest | |
| RUN \ | |
| # enable otr \ | |
| \ | |
| echo /python load /usr/share/weechat/python/otr.py >> config.txt && \ | |
| echo /set weechat.bar.status.items "\"[time],[buffer_last_number],[buffer_plugin],[otr],buffer_number+:+buffer_name+(buffer_modes)+{buffer_nicklist_count}+buffer_zoom+buffer_filter,[lag],[hotlist],completion,scroll\"" >> config.txt && \ | |
| \ | |
| # Connect with SSL \ | |
| \ | |
| echo /server add freenode chat.freenode.net >> config.txt && \ | |
| echo /set irc.server.freenode.addresses \"chat.freenode.net/7000\" >> config.txt && \ | |
| echo /set irc.server.freenode.ssl on >> config.txt && \ | |
| echo | |
| # Use config.txt only if no weechat configuration exists. | |
| # If there is already a configuration in /home/guest/.weechat, ignore config.txt | |
| ENTRYPOINT ["/bin/bash"] | |
| # To run: | |
| # docker build docker-weechat-otr -t weechat | |
| # You need .weechat directory in current directory that will store configs, logs, and keys for persistance | |
| # docker run -v `pwd`/.weechat:/home/guest/.weechat -it weechat:latest |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment