mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2025-02-06 20:19:16 +01:00
add ca certs
Signed-off-by: Jess Frazelle <jess@mesosphere.com>
This commit is contained in:
parent
834fcab5a8
commit
47b6bbe44d
|
@ -12,6 +12,7 @@ FROM scratch
|
|||
ENV container=docker
|
||||
|
||||
ADD coreos-766.5.0.tar.xz /
|
||||
COPY ./certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
|
||||
|
||||
RUN ( \
|
||||
cd /lib/systemd/system/sysinit.target.wants/; \
|
||||
|
|
4542
coreos/certs/ca-certificates.crt
Normal file
4542
coreos/certs/ca-certificates.crt
Normal file
File diff suppressed because it is too large
Load Diff
22
coreos/certs/update.sh
Executable file
22
coreos/certs/update.sh
Executable file
|
@ -0,0 +1,22 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
CERT_IMAGE="debian:latest"
|
||||
|
||||
# cd to the current directory so the script can be run from anywhere.
|
||||
cd `dirname $0`
|
||||
|
||||
# Update the cert image.
|
||||
docker pull $CERT_IMAGE
|
||||
|
||||
# Fetch the latest certificates.
|
||||
ID=$(docker run -d $CERT_IMAGE bash -c "apt-get update && apt-get install -y --no-install-recommends ca-certificates")
|
||||
docker logs -f $ID
|
||||
docker wait $ID
|
||||
|
||||
# Update the local certificates.
|
||||
docker cp $ID:/etc/ssl/certs/ca-certificates.crt .
|
||||
|
||||
# Cleanup.
|
||||
docker rm -f $ID
|
Loading…
Reference in New Issue
Block a user