Use gnupg v1 for aptly compatibility

This commit is contained in:
Benjamin Bohard 2018-05-15 08:57:00 +02:00
parent f3782e5035
commit a4bdd2f1dc
3 changed files with 3 additions and 4 deletions

View File

@ -1,7 +1,7 @@
FROM debian:stretch
MAINTAINER Benjamin Bohard
RUN apt update && apt install -y ca-certificates gnupg && apt clean
RUN apt update && apt install -y ca-certificates gnupg1 && apt clean
COPY aptly.sources.list /etc/apt/sources.list.d/aptly.list
RUN apt-key adv --keyserver pool.sks-keyservers.net --recv-keys ED75B5A4483DA07C
RUN apt update && apt install -y aptly && apt clean

View File

@ -15,8 +15,8 @@ cat >keyparms <<EOF
%echo done
EOF
export PINENTRY_USER_DATA="USE_CURSES=1"
gpg --gen-key --batch keyparms
gpg --export --armor > /signing-key/dev.pubkey
gpg1 --gen-key --batch keyparms
gpg1 --export --armor > /signing-key/dev.pubkey
aptly repo create --component="main" --distribution="ubuntu" dev
aptly repo add dev /packages

View File

@ -1,2 +1 @@
use-agent
pinentry-mode loopback