Allow to provide external GPG key for image build

This commit is contained in:
Andrey Volkov 2018-10-22 16:06:16 +00:00
parent 03c7583721
commit 763fec9ddd
3 changed files with 1 additions and 1 deletions

View File

@ -63,6 +63,7 @@ ENV HOSTNAME ${HOSTNAME}
ENV MODE ${MODE}
COPY assets/packages /opt/packages
COPY assets/gpg/* /opt/aptly/
RUN /opt/startup.sh

0
assets/gpg/.empty Normal file
View File

View File

@ -16,7 +16,6 @@ if [[ ! -f /opt/aptly/aptly.sec ]] || [[ ! -f /opt/aptly/aptly.pub ]]; then
echo "Generating new gpg keys"
cp -a /dev/urandom /dev/random
/opt/gpg_batch.sh
mkdir -p /opt/aptly
# If your system doesn't have a lot of entropy this may, take a long time
# Google how-to create "artificial" entropy if this gets stuck
gpg -v --batch --gen-key /opt/gpg_batch