From 010690a9c748fab667baf92eb2f01bae366a0e7a Mon Sep 17 00:00:00 2001 From: Janek Bevendorff Date: Sun, 22 Oct 2017 20:55:05 +0200 Subject: [PATCH] Reduce external dependencies and install YubiKey deps from EPEL --- Dockerfile | 35 ++++++----------------------------- 1 file changed, 6 insertions(+), 29 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6f7ace34c..c8a82844a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,12 +20,9 @@ RUN set -x \ && curl "https://copr.fedorainfracloud.org/coprs/bugzy/keepassxc/repo/epel-7/bugzy-keepassxc-epel-7.repo" \ > /etc/yum.repos.d/bugzy-keepassxc-epel-7.repo -RUN set -x \ - && curl "https://copr.fedorainfracloud.org/coprs/sic/backports/repo/epel-7/sic-backports-epel-7.repo" \ - > /etc/yum.repos.d/sic-backports-epel-7.repo - RUN set -x \ && yum clean -y all \ + && yum install -y epel-release \ && yum upgrade -y # build and runtime dependencies @@ -34,7 +31,7 @@ RUN set -x \ make \ automake \ gcc-c++ \ - cmake \ + cmake3 \ libgcrypt16-devel \ qt5-qtbase-devel \ qt5-linguist \ @@ -43,7 +40,9 @@ RUN set -x \ qt5-qtx11extras \ qt5-qtx11extras-devel \ libXi-devel \ - libXtst-devel + libXtst-devel \ + libyubikey-devel \ + ykpers-devel # AppImage dependencies RUN set -x \ @@ -51,30 +50,8 @@ RUN set -x \ wget \ fuse-libs -# build libyubikey -ENV YUBIKEY_VERSION=1.13 -RUN set -x && yum install -y libusb-devel RUN set -x \ - && wget "https://developers.yubico.com/yubico-c/Releases/libyubikey-${YUBIKEY_VERSION}.tar.gz" \ - && tar xf libyubikey-${YUBIKEY_VERSION}.tar.gz \ - && cd libyubikey-${YUBIKEY_VERSION} \ - && ./configure --prefix=/usr --libdir=/usr/lib64 \ - && make \ - && make install \ - && cd .. \ - && rm -Rf libyubikey-${YUBIKEY_VERSION}* - -# build libykpers-1 -ENV YKPERS_VERSION=1.18.0 -RUN set -x \ - && wget "https://developers.yubico.com/yubikey-personalization/Releases/ykpers-${YKPERS_VERSION}.tar.gz" \ - && tar xf ykpers-${YKPERS_VERSION}.tar.gz \ - && cd ykpers-${YKPERS_VERSION} \ - && ./configure --prefix=/usr --libdir=/usr/lib64 \ - && make \ - && make install \ - && cd .. \ - && rm -Rf ykpers-${YKPERS_VERSION}* + && ln -s /usr/bin/cmake3 /usr/bin/cmake VOLUME /keepassxc/src VOLUME /keepassxc/out