Created
April 11, 2019 10:48
-
-
Save bradyt/8a76991a4d7e238a8b0920a1f1fadfc8 to your computer and use it in GitHub Desktop.
A minimal working build of weechat-matrix
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 | |
RUN apt-get update && apt-get install -y \ | |
cmake \ | |
git \ | |
python-pip \ | |
&& rm -rf /var/lib/apt/lists/* | |
RUN python -m pip install --upgrade pip | |
RUN git clone https://git.matrix.org/git/olm.git | |
RUN git clone https://github.com/poljar/weechat-matrix.git | |
WORKDIR /olm | |
RUN cmake . -Bbuild | |
RUN cmake -build build | |
RUN make install | |
WORKDIR /olm/python | |
RUN make olm-python2 | |
WORKDIR /weechat-matrix | |
RUN python -m pip install -r requirements.txt | |
RUN make install | |
RUN sh -c 'echo "deb https://weechat.org/ubuntu bionic main" >> /etc/apt/sources.list.d/weechat.list' | |
RUN apt-key adv --keyserver 37.191.231.105 --recv-keys 11E9DE8848F2B65222AA75B8D1820DB22A11534E | |
RUN apt-get update && apt-get install -y weechat-devel | |
RUN mkdir -p /root/.weechat/python/autoload | |
RUN make install | |
RUN ln -s /root/.weechat/python/matrix.py /root/.weechat/python/autoload/matrix.py | |
WORKDIR /root/.weechat/python |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment