mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-01-25 22:16:01 -05:00
Install Qt 5.8 inside Docker container
This commit is contained in:
parent
e31638d3dd
commit
f7e9f85668
@ -39,19 +39,27 @@ mkdir -p $APP.AppDir
|
|||||||
wget -q https://github.com/probonopd/AppImages/raw/master/functions.sh -O ./functions.sh
|
wget -q https://github.com/probonopd/AppImages/raw/master/functions.sh -O ./functions.sh
|
||||||
. ./functions.sh
|
. ./functions.sh
|
||||||
|
|
||||||
|
LIB_DIR=./usr/lib
|
||||||
|
if [ -d ./usr/lib/x86_64-linux-gnu ]; then
|
||||||
|
LIB_DIR=./usr/lib/x86_64-linux-gnu
|
||||||
|
fi
|
||||||
|
|
||||||
cd $APP.AppDir
|
cd $APP.AppDir
|
||||||
cp -a ../../bin-release/* .
|
cp -a ../../bin-release/* .
|
||||||
cp -a ./usr/local/* ./usr
|
cp -a ./usr/local/* ./usr
|
||||||
rm -R ./usr/local
|
rm -R ./usr/local
|
||||||
|
rmdir ./opt 2> /dev/null
|
||||||
patch_strings_in_file /usr/local ././
|
patch_strings_in_file /usr/local ././
|
||||||
patch_strings_in_file /usr ./
|
patch_strings_in_file /usr ./
|
||||||
|
|
||||||
# bundle Qt platform plugins and themes
|
# bundle Qt platform plugins and themes
|
||||||
QXCB_PLUGIN="$(find /usr/lib -name 'libqxcb.so' 2> /dev/null)"
|
QXCB_PLUGIN="$(find /usr/lib -name 'libqxcb.so' 2> /dev/null)"
|
||||||
|
if [ "$QXCB_PLUGIN" == "" ]; then
|
||||||
|
QXCB_PLUGIN="$(find /opt/qt*/plugins -name 'libqxcb.so' 2> /dev/null)"
|
||||||
|
fi
|
||||||
QT_PLUGIN_PATH="$(dirname $(dirname $QXCB_PLUGIN))"
|
QT_PLUGIN_PATH="$(dirname $(dirname $QXCB_PLUGIN))"
|
||||||
mkdir -p "./${QT_PLUGIN_PATH}/platforms"
|
mkdir -p ".${QT_PLUGIN_PATH}/platforms"
|
||||||
cp "$QXCB_PLUGIN" "./${QT_PLUGIN_PATH}/platforms/"
|
cp "$QXCB_PLUGIN" ".${QT_PLUGIN_PATH}/platforms/"
|
||||||
cp -a "${QT_PLUGIN_PATH}/platformthemes" "./${QT_PLUGIN_PATH}"
|
|
||||||
|
|
||||||
get_apprun
|
get_apprun
|
||||||
copy_deps
|
copy_deps
|
||||||
@ -66,6 +74,8 @@ get_icon
|
|||||||
cat << EOF > ./usr/bin/keepassxc_env
|
cat << EOF > ./usr/bin/keepassxc_env
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
#export QT_QPA_PLATFORMTHEME=gtk2
|
#export QT_QPA_PLATFORMTHEME=gtk2
|
||||||
|
export LD_LIBRARY_PATH="../opt/qt58/lib:\${LD_LIBRARY_PATH}"
|
||||||
|
export QT_PLUGIN_PATH="..${QT_PLUGIN_PATH}"
|
||||||
exec keepassxc "\$@"
|
exec keepassxc "\$@"
|
||||||
EOF
|
EOF
|
||||||
chmod +x ./usr/bin/keepassxc_env
|
chmod +x ./usr/bin/keepassxc_env
|
||||||
|
22
Dockerfile
22
Dockerfile
@ -16,17 +16,23 @@
|
|||||||
|
|
||||||
FROM ubuntu:14.04
|
FROM ubuntu:14.04
|
||||||
|
|
||||||
|
RUN set -x \
|
||||||
|
&& apt-get update \
|
||||||
|
&& apt-get install --yes software-properties-common
|
||||||
|
|
||||||
|
RUN set -x \
|
||||||
|
&& add-apt-repository --yes ppa:beineri/opt-qt58-trusty
|
||||||
|
|
||||||
RUN set -x \
|
RUN set -x \
|
||||||
&& apt-get update \
|
&& apt-get update \
|
||||||
&& apt-get install --yes \
|
&& apt-get install --yes \
|
||||||
g++ \
|
g++ \
|
||||||
cmake \
|
cmake \
|
||||||
libgcrypt20-dev \
|
libgcrypt20-dev \
|
||||||
qtbase5-dev \
|
qt58base \
|
||||||
qttools5-dev \
|
qt58tools \
|
||||||
qttools5-dev-tools \
|
qt58x11extras \
|
||||||
libmicrohttpd-dev \
|
libmicrohttpd-dev \
|
||||||
libqt5x11extras5-dev \
|
|
||||||
libxi-dev \
|
libxi-dev \
|
||||||
libxtst-dev \
|
libxtst-dev \
|
||||||
zlib1g-dev \
|
zlib1g-dev \
|
||||||
@ -34,7 +40,15 @@ RUN set -x \
|
|||||||
file \
|
file \
|
||||||
fuse \
|
fuse \
|
||||||
python
|
python
|
||||||
|
|
||||||
|
RUN set -x \
|
||||||
|
&& apt-get install --yes mesa-common-dev
|
||||||
|
|
||||||
VOLUME /keepassxc/src
|
VOLUME /keepassxc/src
|
||||||
VOLUME /keepassxc/out
|
VOLUME /keepassxc/out
|
||||||
WORKDIR /keepassxc
|
WORKDIR /keepassxc
|
||||||
|
|
||||||
|
ENV CMAKE_PREFIX_PATH=/opt/qt58/lib/cmake
|
||||||
|
ENV LD_LIBRARY_PATH=/opt/qt58/lib
|
||||||
|
RUN set -x \
|
||||||
|
&& echo /opt/qt58/lib > /etc/ld.so.conf.d/qt58.conf
|
||||||
|
Loading…
x
Reference in New Issue
Block a user