Skip to content

Instantly share code, notes, and snippets.

@jgraglia
Created March 24, 2016 09:28
Show Gist options
  • Save jgraglia/2b2b2016d98fecbca6af to your computer and use it in GitHub Desktop.
Save jgraglia/2b2b2016d98fecbca6af to your computer and use it in GitHub Desktop.
Keepassx build
from ubuntu
RUN apt-get update && apt-get install -y wget build-essential cmake libqt4-dev libgcrypt11-dev zlib1g-dev
ENV VERSION 2.0.2
RUN wget https://www.keepassx.org/releases/$VERSION/keepassx-$VERSION.tar.gz
RUN wget https://www.keepassx.org/releases/$VERSION/keepassx-$VERSION.tar.gz.sig
RUN gpg --keyserver pgpkeys.mit.edu --recv-key 83135D45
RUN gpg --verify keepassx-$VERSION.tar.gz.sig keepassx-$VERSION.tar.gz
RUN tar xzf keepassx-$VERSION.tar.gz
RUN mkdir keepassx-$VERSION/build
RUN cd keepassx-$VERSION/build ; cmake .. ; make
VOLUME /tmp/output
CMD cp keepassx-$VERSION/build/src/keepassx /tmp/output/ && \
echo "Ubuntu 16.04 need libgcrypt version 11, but only v20 is available" > /tmp/output/README.txt && \
echo "wget https://launchpad.net/ubuntu/+archive/primary/+files/libgcrypt11_1.5.3-2ubuntu4.2_amd64.deb" >> /tmp/output/README.txt && \
echo "sudo dpkg -i libgcrypt11_1.5.3-2ubuntu4.2_amd64.deb" >> /tmp/output/README.txt && \
cat /tmp/output/README.txt
#HOW TO
# docker build -t keepassx:2.0.2 .
# docker run -v /tmp/output:/tmp/output -t keepassx:2.0.2
# copy the keepassx binary and, on Ubuntu, install libgcrypt11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment