add ca certs

Signed-off-by: Jess Frazelle <jess@mesosphere.com>
This commit is contained in:
Jess Frazelle 2016-04-12 21:02:37 -07:00
parent 834fcab5a8
commit 47b6bbe44d
No known key found for this signature in database
GPG Key ID: 18F3685C0022BFF3
3 changed files with 4565 additions and 0 deletions

View File

@ -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/; \

File diff suppressed because it is too large Load Diff

22
coreos/certs/update.sh Executable file
View 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