Changeset - affd19661280
[Not reviewed]
0 3 0
Florian Kinder - 7 years ago 2018-12-01 11:39:09
florian.kinder@fankserver.com
WIP smaller alpine image
3 files changed with 11 insertions and 6 deletions:
0 comments (0 inline, 0 general)
.gitignore
Show inline comments
 
@@ -12,32 +12,33 @@ CMakeFiles
 
CMakeScripts
 
cmake_install.cmake
 
CPackConfig.cmake
 
CPackSourceConfig.cmake
 
**/*build/**
 
**/Debug/**
 
libtransport.xcodeproj
 
spectrum2
 
transport_config.h
 
Doxyfile
 
moc_*
 
CMakeCache.txt
 
CPackConfig.cmake
 
CPackSourceConfig.cmake
 
*.patch
 
*.orig
 
spectrum2_manager
 
dfrotz
 
spectrum2_frotz_backend
 
spectrum2_libcommuni_backend
 
spectrum2_libpurple_backend
 
spectrum2_skype_backend
 
spectrum2_smstools3_backend
 
spectrum2_swiften_backend
 
spectrum2_template_backend
 
spectrum2_twitter_backend
 
install_manifest.txt
 
slack.cfg
 
*.sqlite
 
localhost.port
 
*.a
 
core.*
 
*.pyc
 

	
CMakeLists.txt
Show inline comments
 
@@ -8,24 +8,26 @@ message(STATUS "Variables to override default places where to find libraries:")
 
message(STATUS "|- cppunit : -DCPPUNIT_INCLUDE_DIR,  -DCPPUNIT_LIBRARY")
 
message(STATUS "|- swiften : -DSWIFTEN_INCLUDE_DIR,  -DSWIFTEN_LIBRARY")
 
message(STATUS "  |- zlib  :                         -DZLIB_LIBRARY")
 
message(STATUS "  |- expat :                         -DEXPAT_LIBRARY")
 
message(STATUS "  |-libidn :                         -DLIBIDN_LIBRARY")
 
message(STATUS "  |-libxml :                         -DLIBXML_LIBRARY")
 
message(STATUS "|- boost   : -DBOOST_INCLUDEDIR,     -DBOOST_LIBRARYDIR")
 
message(STATUS "|- protobuf: -DPROTOBUF_INCLUDE_DIR, -DPROTOBUF_LIBRARY")
 
message(STATUS "           : -DPROTOBUF_PROTOC_EXECUTABLE")
 
message(STATUS "|- log4cxx : -DLOG4CXX_INCLUDE_DIR,  -DLOG4CXX_LIBRARY")
 
message(STATUS "|- purple  : -DPURPLE_INCLUDE_DIR,   -DPURPLE_LIBRARY")
 
message(STATUS "           : -DPURPLE_NOT_RUNTIME - enables compilation with libpurple.lib")
 
message(STATUS "|- pgxx    : -DPQXX_INCLUDE_DIR,     -DPQXX_LIBRARY")
 
message(STATUS "|- irc     : -DIRC_INCLUDE_DIR,      -DIRC_LIBRARY")
 

	
 
option(ENABLE_SQLITE3 "Build with SQLite3 support" ON)
 
option(ENABLE_MYSQL "Build with MySQL support" ON)
 
option(ENABLE_PQXX "Build with Postgres supoort" ON)
 

	
 
option(ENABLE_FROTZ "Build Frotz plugin" ON)
 
option(ENABLE_IRC "Build IRC plugin" ON)
 
option(ENABLE_PURPLE "Build Libpurple plugin" ON)
 
option(ENABLE_SMSTOOLS3 "Build SMSTools3 plugin" ON)
 
option(ENABLE_XMPP "Build XMPP plugin" ON)
 
option(ENABLE_TWITTER "Build Twitter plugin" ON)
 

	
Dockerfile-alpine
Show inline comments
 
@@ -3,62 +3,64 @@ FROM alpine:3.6
 
EXPOSE 5222 5269
 
VOLUME ["/etc/spectrum2/transports", "/var/lib/spectrum2"]
 

	
 
ADD . /usr/src/spectrum2
 

	
 
RUN apk add --no-cache ca-certificates && \
 
	apk add --no-cache --virtual .build-deps cmake make gcc g++ musl-dev boost-dev glib-dev protobuf-dev mariadb-dev sqlite-dev postgresql-dev pidgin-dev libev-dev qt-dev apr-util-dev automake autoconf libtool git popt-dev curl-dev openssl libevent-dev mercurial json-glib-dev py2-pip python2-dev libgcrypt-dev libwebp-dev libgnome-keyring-dev nss-dev && \
 
	cd /usr/src/ && \
 

	
 
	wget https://github.com/communi/libcommuni/archive/v3.5.0.tar.gz -O libcommuni-3.5.0.tar.gz && \
 
	tar xfz libcommuni-*.tar.gz && \
 
	cd libcommuni-* && \
 
	./configure && \
 
	./configure --prefix=/opt/libcommuni && \
 
	make && \
 
	make install && \
 
	cd .. && \
 
	rm -rf libcommuni-* && \
 

	
 
	git clone git://git.apache.org/logging-log4cxx.git && \
 
	cd logging-log4cxx && \
 
	./autogen.sh && \
 
	./configure && \
 
	./configure --prefix=/opt/log4cxx && \
 
	make && \
 
	make install && \
 
	cd .. && \
 
	rm -rf logging-log4cxx && \
 

	
 
	wget http://pqxx.org/download/software/libpqxx/libpqxx-4.0.1.tar.gz && \
 
	tar xfz libpqxx-*.tar.gz && \
 
	cd libpqxx-* && \
 
	./autogen.sh && \
 
	./configure --enable-shared --disable-documentation && \
 
	./configure --enable-shared --disable-documentation --prefix=/opt/libpqxx && \
 
	make && \
 
	make install && \
 
	cd .. && \
 
	rm -rf libpqxx-* && \
 

	
 
	wget https://swift.im/downloads/releases/swift-4.0rc2/swift-4.0rc2.tar.gz && \
 
	tar xfz swift-*.tar.gz && \
 
	cd swift-* && \
 
	./scons Swiften SWIFTEN_INSTALLDIR=/usr/local /usr/local && \
 
	./scons Swiften SWIFTEN_INSTALLDIR=/opt/_swiften /opt/_swiften && \
 
	cd .. && \
 
	rm -rf swift-* && \
 

	
 
	cd spectrum2 && \
 
	cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr . && \
 
	cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DLOG4CXX_INCLUDE_DIR=/opt/log4cxx/include -DLOG4CXX_LIBRARY=/opt/log4cxx/lib -DSWIFTEN_INCLUDE_DIR=/opt/_swiften/include -DSWIFTEN_LIBRARY=/opt/_swiften/lib -DSWIFTEN_CONFIG_EXECUTABLE=/opt/_swiften/bin/swiften-config -DPQXX_INCLUDE_DIR=/opt/libpqxx/include -DPQXX_LIBRARY=/opt/libpqxx/lib -DPQ_LIBRARY=/opt/libpqxx/lib -DIRC_INCLUDE_DIR=/opt/libcommuni/include -DIRC_LIBRARY=/opt/libcommuni/lib -DIRC_MODEL_LIBRARY=/opt/libcommuni/lib && \
 
	make && \
 
	make install && \
 
	cd .. && \
 

	
 
	rm /opt/* -rf && \
 

	
 
	wget https://github.com/dequis/purple-facebook/releases/download/v0.9.4-c9b74a765767/purple-facebook-0.9.4-c9b74a765767.tar.gz && \
 
	tar -xf purple-facebook-0.9.4-c9b74a765767.tar.gz && \
 
	cd purple-facebook-0.9.4-c9b74a765767 && \
 
	./autogen.sh && \
 
	./configure && \
 
	make && \
 
	make install && \
 
	cd .. && \
 
	rm -rf purple-facebook* && \
 

	
 
	git clone git://github.com/EionRobb/skype4pidgin.git && \
 
	cd skype4pidgin/skypeweb && \
0 comments (0 inline, 0 general)