TT#62000 Add script to copy puppet.gpg key

This script copies puppet.gpg file to '/root' dir of Grml-sipwise
image in building process.

Create 'scripts/PUPPETLABS' so '10-gpgkey' is copied there in runtime.

Change-Id: I836fa35e3f64f40cb4ee4a298fc18676f7689b54
changes/58/31158/5
Mykola Malkov 6 years ago
parent 3ea8662956
commit 9c5343a071

@ -0,0 +1,5 @@
#!/bin/bash
set -e
fcopy -v /root/puppet.gpg

@ -5,7 +5,7 @@ FROM docker.mgm.sipwise.com/sipwise-buster:latest
# is updated with the current date. It will force refresh of all
# of the base images and things like `apt-get update` won't be using
# old cached versions when the Dockerfile is built.
ENV REFRESHED_AT 2019-07-01
ENV REFRESHED_AT 2019-07-03
RUN apt-get update && apt-get install --assume-yes \
bc \
@ -42,7 +42,8 @@ WORKDIR /code/grml-live
RUN mkdir -p /code/grml-live/etc/grml/fai/config/files/etc/apt/sources.list.d/sipwise.list/ \
/code/grml-live/etc/grml/fai/config/files/etc/apt/trusted.gpg.d/sipwise-keyring.gpg/ \
/code/grml-live/etc/grml/fai/config/files/root/puppet.gpg/
/code/grml-live/etc/grml/fai/config/files/root/puppet.gpg/ \
/code/grml-live/etc/grml/fai/config/scripts/PUPPETLABS/
### Usage instructions #############################################################################
## Build docker image:

Loading…
Cancel
Save