Demo about Edge Computing in the Retail vertical using Red Hat products
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

1.7 KiB

Multi-architecture Tekton Pipeline

Share RHEL SCA entitlement with Tekton Pipelines

oc create -f - <<EOF
apiVersion: v1
kind: Secret
metadata:
  name: etc-pki-entitlement
type: Opaque
data:
  aarch64.pem: $(base64 -w0 /etc/pki/entitlement/XXX.pem)
  aarch64-key.pem: $(base64 -w0 /etc/pki/entitlement/XXX-key.pem)
  x86_64.pem: $(base64 -w0 /etc/pki/entitlement/YYY.pem)
  x86_64-key.pem: $(base64 -w0 /etc/pki/entitlement/YYY-key.pem)
EOF

Flightctl CLI container image

cd flightctl-image
./build.sh

Tekton configuration

oc patch tektonconfig/config -n openshift-pipelines --type=merge -p '{"spec":{"pipeline":{"coschedule":"disabled","disable-affinity-assistant":true}}}'

Pipeline manifests

oc apply -k common/
oc apply -f pipeline.yaml

Authentication to the registries

export REGISTRY_AUTH_FILE="$PWD/auth.json"
podman login quay.io
podman login registry.redhat.io
oc apply -f - <<EOF
apiVersion: v1
kind: Secret
metadata:
  annotations:
    tekton.dev/docker-0: https://quay.io
    tekton.dev/docker-1: https://registry.redhat.io
  name: quay-authentication
type: kubernetes.io/dockerconfigjson
data:
  .dockerconfigjson: $(base64 -w0 "$PWD/auth.json")
EOF

Authentication to GitHub

cat > gitconfig <<EOF
[credential]
  helper=store
EOF
oc create secret generic github-authentication --from-literal=.git-credentials=https://user:password@github.com --from-file=.gitconfig=gitconfig

Authentication to Flightctl

oc create secret generic flightctl-config --from-file=client.yaml=$HOME/.config/flightctl/client.yaml

Build the base image

oc create -f pipelinerun-base.yaml