Allow to provide external GPG key for image build
This commit is contained in:
parent
03c7583721
commit
763fec9ddd
@ -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
0
assets/gpg/.empty
Normal 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
|
||||
|
Loading…
x
Reference in New Issue
Block a user