Permalink
Browse files

Update rancher agent base with SSL updater

Adds update-rancher-ssl script so that CA certs are added.
Adds Entrypoint so that SSL is automatically configured without
needing to change Dockerfiles of the agents.
  • Loading branch information...
1 parent fa8d879 commit 9636035d9479819c8adbf3b9f90f43f2bab199c0 @cloudnautique cloudnautique committed Dec 22, 2016
Showing with 13 additions and 1 deletion.
  1. +8 −1 agent-base/Dockerfile
  2. +5 −0 agent-base/rancher-entrypoint.sh
@@ -1,4 +1,7 @@
FROM ubuntu:16.04
+
+COPY ./rancher-entrypoint.sh /
+ENV SSL_SCRIPT_COMMIT 98660ada3d800f653fc1f105771b5173f9d1a019
RUN apt-get update && \
apt-get install --no-install-recommends -y \
arptables \
@@ -29,4 +32,8 @@ RUN apt-get update && \
curl -sLf https://get.docker.com/builds/Linux/x86_64/docker-1.10.3 > /usr/bin/docker && \
chmod +x /usr/bin/docker && \
rm /var/run && \
- mkdir /var/run
+ mkdir /var/run && \
+ curl -sLf https://raw.githubusercontent.com/rancher/rancher/${SSL_SCRIPT_COMMIT}/server/bin/update-rancher-ssl > /usr/bin/update-rancher-ssl && \
+ chmod +x /usr/bin/update-rancher-ssl
+
+ENTRYPOINT ["/rancher-entrypoint.sh"]
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+/usr/bin/update-rancher-ssl
+
+exec "$@"

0 comments on commit 9636035

Please sign in to comment.