Last active
May 7, 2020 18:39
-
-
Save lambdafu/03c784123d017ee44b7711cc0d04ca3e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu | |
RUN apt-get update && apt-get install -y build-essential git wget \ | |
libldap2-dev zlib1g-dev libbz2-dev libsqlite3-dev libreadline-dev \ | |
pcscd file ca-certificates bzip2 texinfo bison xfig imagemagick \ | |
autogen autoconf gettext pinentry-tty && apt-get clean | |
RUN git clone git://git.gnupg.org/gnupg.git | |
RUN git clone git://git.gnupg.org/libgpg-error.git | |
RUN git clone git://git.gnupg.org/libgcrypt.git | |
RUN git clone git://git.gnupg.org/libksba.git | |
RUN git clone git://git.gnupg.org/npth.git | |
RUN git clone git://git.gnupg.org/gpgme.git | |
RUN git clone git://git.gnupg.org/libassuan.git | |
# https://dev.gnupg.org/T4280 | |
RUN rm /etc/ImageMagick-6/policy.xml | |
# Optionally pass some flags to gnupg configure by adding: speedo_pkg_gnupg_configure= | |
RUN (cd gnupg; ./autogen.sh && make -f build-aux/speedo.mk git-native gitrep=/) | |
# This would be for release build. | |
#RUN wget -c https://gnupg.org/ftp/gcrypt/gnupg/gnupg-2.2.11.tar.bz2 && tar xjf gnupg-2.2.11.tar.bz2 | |
#RUN (cd gnupg-2.2.11; ./autogen.sh && make -f build-aux/speedo.mk native gitrep=git://git.gnupg.org) | |
ENV PATH="/gnupg/PLAY/inst/bin:${PATH}" | |
ENV LD_LIBRARY_PATH="/gnupg/PLAY/inst/lib" | |
# Example for AEAD | |
RUN gpg --batch --passphrase "" --quick-generate-key aeadtest | |
RUN echo hallo | gpg -r aeadtest -eav | gpg -d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment