Browse Source

Allow to provide external GPG key for image build

Andrey Volkov 6 months ago
parent
commit
763fec9ddd
3 changed files with 1 additions and 1 deletions
  1. 1
    0
      Dockerfile
  2. 0
    0
      assets/gpg/.empty
  3. 0
    1
      assets/startup.sh

+ 1
- 0
Dockerfile View File

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

+ 0
- 0
assets/gpg/.empty View File


+ 0
- 1
assets/startup.sh View File

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

Loading…
Cancel
Save