From cef39561ac21c23d8a58222b66244505826394a0 Mon Sep 17 00:00:00 2001 From: "Michal (inc0) Jastrzebski" Date: Tue, 29 Nov 2016 21:56:35 +0000 Subject: packing and uploading registry Partially-Implements: blueprint pack-registry Co-Authored-By: Jeffrey Zhang Change-Id: I6816c6d3fc2f4224553f8a22e2ebb87e8616db37 --- tools/setup_gate.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tools/setup_gate.sh') diff --git a/tools/setup_gate.sh b/tools/setup_gate.sh index 178f34309..ddb6caa5e 100755 --- a/tools/setup_gate.sh +++ b/tools/setup_gate.sh @@ -44,6 +44,11 @@ EOF # NOTE(Jeffrey4l): use different a docker namespace name in case it pull image from hub.docker.io when deplying sed -i 's|^#namespace.*|namespace = lokolla|' /etc/kolla/kolla-build.conf + if [[ -n "${PACK_REGISTRY}" ]] && [[ $ACTION == "build" ]]; then + sed -i 's|^#registry.*|registry = 127.0.0.1:4000|' /etc/kolla/kolla-build.conf + sed -i 's|^#push.*|push = true|' /etc/kolla/kolla-build.conf + fi + if [[ "${DISTRO}" == "Debian" ]]; then # Infra does not sign their mirrors so we ignore gpg signing in the gate echo "RUN echo 'APT::Get::AllowUnauthenticated \"true\";' > /etc/apt/apt.conf" | sudo tee -a /etc/kolla/header -- cgit v1.2.3