Skip to content
This repository was archived by the owner on Mar 4, 2023. It is now read-only.

Commit cdc8a1e

Browse files
committed
try next docker
1 parent 63755e4 commit cdc8a1e

File tree

6 files changed

+13
-88
lines changed

6 files changed

+13
-88
lines changed

Dockerfile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
#LABEL maintainer="skycoder42.de@gmx.de"
22
FROM debian:latest
33

4-
COPY tools /tmp/src/tools
5-
COPY src/3rdparty/cryptopp/cryptopp.pri /tmp/src/src/3rdparty/cryptopp/cryptopp.pri
6-
COPY src/messages /tmp/src/src/messages
7-
COPY .qmake.conf /tmp/src/tools/appserver/.qmake.conf
4+
COPY . /tmp/src
85
RUN /tmp/src/tools/appserver/dockerbuild/install.sh
96

107
# create env vars & ready for usage

appveyor.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ matrix:
3535
install:
3636
- git submodule init
3737
- git submodule update
38-
- cd src\3rdparty\cryptopp\src && git apply ../winrt.patch && cd ..\..\..\..
3938
- git clone https://github.com/Skycoder42/QtModules.git .\qtmodules-travis
4039
- .\qtmodules-travis\ci\win\setup.bat
4140

src/3rdparty/cryptopp/winrt.patch

Lines changed: 0 additions & 40 deletions
This file was deleted.

tools/appserver/dockerbuild/install.sh

Lines changed: 12 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@
22
set -ex
33

44
export MAKEFLAGS=-j$(nproc)
5-
#export MAKEFLAGS=-j1
65
export QPMX_CACHE_DIR=/tmp/qpmx-cache
76

87
DS_NAME=qdsappd
98
QT_VERSION_TAG=v5.12.0
10-
CRYPTOPP_VERSION_MAJOR=7
11-
CRYPTOPP_VERSION_MINOR=0
12-
CRYPTOPP_VERSION_PATCH=0
13-
CRYPTOPP_VERSION=${CRYPTOPP_VERSION_MAJOR}_${CRYPTOPP_VERSION_MINOR}_${CRYPTOPP_VERSION_PATCH}
149
MAIN_DEP="libssl1.1 zlib1g libdbus-1-3 libc6 libglib2.0-0 libudev1 libpcre2-16-0 libpq5 libdouble-conversion1 libicu57 libinput10 ca-certificates"
1510
DEV_DEP="openssl libssl-dev zlib1g-dev dbus libdbus-1-dev libc6-dev libglib2.0-dev libudev-dev libdouble-conversion-dev libicu-dev libpcre2-dev libpq-dev libinput-dev make gcc g++ curl python3 git perl gawk"
1611

12+
if [ ! -d "/tmp/src/.git" ]; then
13+
echo "Failed to find .git directory - not supported!"
14+
exit 1
15+
fi
16+
1717
apt-get -qq update
1818
apt-get -qq install --no-install-recommends $MAIN_DEP $DEV_DEP
1919

@@ -24,9 +24,10 @@ install -m 755 ./qpm /usr/local/bin/
2424
mkdir /tmp/sysbuild
2525
cd /tmp/sysbuild
2626

27-
# build qtbase
28-
git clone --depth 1 https://code.qt.io/qt/qtbase.git ./qtbase --branch $QT_VERSION_TAG
29-
cd qtbase
27+
# build qt
28+
git clone --depth 1 https://code.qt.io/qt/qt5.git ./qt5 --branch $QT_VERSION_TAG
29+
cd qt5
30+
./init-repository --module-subset="qtbase,qtwebsockets,qttools"
3031
_qt5_prefix=/usr/lib/qt5
3132
_qt5_datadir=/usr/share/qt5
3233
./configure -confirm-license -opensource \
@@ -54,16 +55,6 @@ make > /dev/null
5455
make install
5556
cd ..
5657

57-
# build qt modules
58-
for repo in qtwebsockets qttools; do
59-
git clone --depth 1 https://code.qt.io/qt/$repo.git ./$repo --branch $QT_VERSION_TAG
60-
cd $repo
61-
qmake
62-
make > /dev/null
63-
make install
64-
cd ..
65-
done
66-
6758
# build json serializer, qpmx, qtservice
6859
for repo in QtJsonSerializer qpmx QtService; do
6960
git clone https://github.com/Skycoder42/$repo.git ./$repo
@@ -92,6 +83,8 @@ cd /tmp/src
9283
git submodule init
9384
git submodule update
9485
echo "SUBDIRS = 3rdparty messages" >> src/src.pro
86+
echo "SUBDIRS = " >> examples/examples.pro
87+
echo "SUBDIRS = " >> tests/tests.pro
9588

9689
qmake
9790
make qmake_all
@@ -101,7 +94,7 @@ make install
10194
#create special symlinks, dirs and move the env script
10295
mkdir -p /etc/$DS_NAME
10396
ln -s $(qmake -query QT_INSTALL_BINS)/$DS_NAME /usr/bin/$DS_NAME || true #allow to fail if already exists
104-
mv dockerbuild/env_start.sh /usr/bin/
97+
mv /tmp/src/tools/appserver/dockerbuild/env_start.sh /usr/bin/
10598

10699
# test if working
107100
/usr/bin/$DS_NAME --version

tools/appserver/dockerbuild/libcrypto++.pc

Lines changed: 0 additions & 12 deletions
This file was deleted.

tools/appserver/dockerbuild/libressl-compat.patch

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)