Better run.sh for Docker image
This commit is contained in:
parent
ab8a950661
commit
88f46fbe90
2 changed files with 8 additions and 6 deletions
|
@ -4,13 +4,13 @@ EXPOSE 5222
|
|||
VOLUME ["/etc/spectrum2/transports", "/var/lib/spectrum2"]
|
||||
|
||||
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 mysql-devel popt-devel git libevent-devel qt-devel dbus-glib-devel libcurl-devel -y && \
|
||||
git clone git://github.com/hanzz/libtransport.git && \
|
||||
cd libtransport && \
|
||||
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 libtransport && \
|
||||
rm -rf spectrum2 && \
|
||||
rm -rf ~/rpmbuild && \
|
||||
rm -rf /usr/share/locale/* && \
|
||||
rm -rf /usr/share/doc/* && \
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
#!/bin/bash
|
||||
|
||||
spectrum2_manager start
|
||||
|
||||
while :
|
||||
do
|
||||
echo "Trying to start Spectrum 2 instances."
|
||||
echo "You should mount the directory with configuration files to /etc/spectrum2/transports/."
|
||||
echo "Check the http://spectrum.im/documentation for more information."
|
||||
spectrum2_manager start
|
||||
tail -f /var/log/spectrum2/*/* 2>/dev/null
|
||||
sleep 2
|
||||
tail -f /var/log/spectrum2/*/* /var/log/spectrum2/*/*/*
|
||||
done
|
||||
|
|
Loading…
Add table
Reference in a new issue