forked from SpectrumIM/spectrum2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
74 lines (71 loc) · 3.17 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
FROM fedora:23
EXPOSE 5222
VOLUME ["/etc/spectrum2/transports", "/var/lib/spectrum2"]
ARG commit=unknown
RUN echo $commit
# Spectrum 2
RUN dnf install protobuf protobuf swiften gcc gcc-c++ make libpqxx-devel libpurple-devel protobuf-devel swiften-devel rpm-build avahi-devel boost-devel cmake cppunit-devel expat-devel libcommuni-devel libidn-devel libsqlite3x-devel log4cxx-devel gettext libgcrypt-devel libwebp-devel libpurple-devel zlib-devel json-glib-devel python-pip zlib-devel libjpeg-devel python-devel mysql-devel popt-devel git libevent-devel qt-devel dbus-glib-devel libcurl-devel vim less mlocate wget -y && \
echo "---> Installing Spectrum 2" && \
git clone git://github.com/hanzz/spectrum2.git && \
cd spectrum2 && \
./packaging/fedora/build_rpm.sh && \
rpm -U /root/rpmbuild/RPMS/x86_64/*.rpm && \
cp ./packaging/docker/run.sh /run.sh && \
cd .. && \
# rm -rf spectrum2 && \
# rm -rf ~/rpmbuild && \
echo "---> Installing purple-facebook" && \
wget https://github.com/jgeboski/purple-facebook/releases/download/6a0a79182ebc/purple-facebook-6a0a79182ebc.tar.gz && \
tar -xf purple-facebook-6a0a79182ebc.tar.gz && cd purple-facebook-6a0a79182ebc && \
./configure && \
make && \
make install && \
cd .. && \
rm -rf purple-facebook* && \
echo "---> Installing skype4pidgin" && \
git clone git://github.com/EionRobb/skype4pidgin.git && \
cd skype4pidgin/skypeweb && \
make CFLAGS=-DFEDORA=1 && \
make install && \
cd ../.. && \
# rm -rf skype4pidgin && \
echo "---> Installing transwhat" && \
pip install --pre e4u protobuf python-dateutil yowsup2 Pillow==2.9.0 &&\
git clone git://github.com/stv0g/transwhat.git &&\
git clone git://github.com/tgalal/yowsup.git &&\
cd transwhat &&\
git worktree add /opt/transwhat &&\
cd .. &&\
cd yowsup &&\
cp -R yowsup /opt/transwhat/yowsup &&\
cd .. &&\
rm -r transwhat &&\
rm -r yowsup &&\
rm -rf /opt/transwhat/.git &&\
rm -rf /opt/transwhat/.gitignore &&\
echo "---> Installing Telegram" && \
git clone --recursive https://github.com/majn/telegram-purple && \
cd telegram-purple && \
./configure && \
make && \
make install && \
rm -rf telegram-purple && \
echo "---> cleanup" && \
rm -rf /usr/share/locale/* && \
rm -rf /usr/share/doc/* && \
rm -rf /usr/share/icons/* && \
rm -rf /usr/share/cracklib* && \
rm -rf /usr/share/hwdata* && \
rm -rf /usr/lib64/libQtGui* && \
rm -rf /usr/lib64/libQtSvg* && \
rm -rf /usr/lib64/libQtDeclarative* && \
rm -rf /usr/lib64/libQtOpenGL* && \
rm -rf /usr/lib64/libQtScriptTools* && \
rm -rf /usr/lib64/libQtMultimedia* && \
rm -rf /usr/lib64/libQtHelp* && \
rm -rf /usr/lib64/libQtDesigner* && \
rm -rf /usr/lib64/libQt3* && \
dnf remove protobuf-devel swiften-devel gcc gcc-c++ libpqxx-devel libevent-devel qt-devel dbus-glib-devel libpurple-devel make rpm-build avahi-devel boost-devel cmake cppunit-devel expat-devel libcommuni-devel libidn-devel libsqlite3x-devel libgcrypt-devel libwebp-devel libpurple-devel zlib-devel json-glib-devel zlib-devel libjpeg-devel python-devel log4cxx-devel mysql-devel popt-devel libcurl-devel spectrum2-debuginfo yum perl wget -y && \
dnf clean all -y && \
rm -rf /var/lib/rpm/*
CMD "/run.sh"