charts/tools/gate/jarvis/650-temporary-setup.sh
Stacey Fletcher 1bb4af812b (feat) Create namespace, service_account, role and rolebinding
This patchset dynamically creates a namespace with the changeset and
patchset number that is triggered via gerrit.

Change-Id: Id257fcb6a12711ae1a6341337cf6e1b0bec8c7e5
2021-02-19 15:14:00 +00:00

13 lines
916 B
Bash
Executable File

#!/bin/bash
set -ex
#TODO(staceyF) Put this into appropriate jarvis-system tasks
kubectl create ns development-pipeline || true
kubectl create secret generic harbor-ca --from-file=harbor-ca=/etc/jarvis/certs/ca/ca.pem -n development-pipeline || true
kubectl create secret generic kubeconfig-secret --from-file=kubeconfig=$HOME/.kube/config -n development-pipeline || true
#NOTE Will not be required once Harbor is backed by LDAP
kubectl create secret generic harbor-basic-auth --from-literal=username='admin' --from-literal=password='Harbor12345' -n development-pipeline || true
kubectl create secret docker-registry harbor-docker-auth --docker-username=admin --docker-password=Harbor12345 --docker-email=example@gmail.com --docker-server=harbor-core.jarvis.local -n development-pipeline || true
cd ./tools/images/standard-container
sudo docker build --build-arg BASE_IMAGE=ubuntu:focal -t standard-container:1.0 .