Skip to content

Instantly share code, notes, and snippets.

View karthikjeeyar's full-sized avatar

Karthik Jeeyar karthikjeeyar

  • Red Hat
  • Bangalore
View GitHub Profile
@karthikjeeyar
karthikjeeyar / nexus-installation.md
Created June 19, 2024 08:06
Install nexus in openshift

Install Nexus repository on openshift cluster.

  1. Create a new namespace 'nexus' in your cluster.
oc new-project nexus
@karthikjeeyar
karthikjeeyar / roxctl_scan_pipeline.md
Last active June 19, 2024 08:05
Roxctl Scan pipeline example

Roxctl scan pipeline example

  1. Create a secret in the namespace with ROXCTL endpoint and apitoken
cat <<EOF | kubectl apply -f -
apiVersion: v1
kind: Secret
metadata:
---
apiVersion: tekton.dev/v1
kind: Task
metadata:
name: invalid-acs-image-check-task
labels:
"backstage.io/kubernetes-id": quarkus-app
annotations:
task.results.format: application/json
task.results.type: roxctl-image-check
apiVersion: tekton.dev/v1
kind: Task
metadata:
name: sbom-task
annotations:
task.output.location: results
task.results.format: application/text
task.results.key: LINK_TO_SBOM
spec:
results:
@karthikjeeyar
karthikjeeyar / sbom_task_format.yaml
Last active November 8, 2023 08:17
Sample SBOM task format
apiVersion: tekton.dev/v1
kind: Task
metadata:
name: sbom-task
annotations:
task.output.location: results
task.results.format: application/text
task.results.key: LINK_TO_SBOM
spec:
results:
@karthikjeeyar
karthikjeeyar / cve_scan_output_format.yaml
Last active November 7, 2023 14:12
Sample CVE task result format
apiVersion: tekton.dev/v1
kind: Task
metadata:
name: scan-task
annotations:
task.output.location: results
task.results.format: application/json
task.results.key: SCAN_OUTPUT
spec:
results:
apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
annotations:
'backstage.io/kubernetes-id': developer-portal
name: developer-portal
description: An example of a Backstage application.
# Example for optional annotations
# annotations:
# github.com/project-slug: backstage/backstage
{
"apiVersion": "appstudio.redhat.com/v1alpha1",
"kind": "Component",
"metadata": {
"annotations": {
"appstudio.openshift.io/component-initial-build": "processed",
"skip-initial-checks": "true"
},
"resourceVersion": "1766689922",
"name": "python-ex-cjby",
@karthikjeeyar
karthikjeeyar / 00README.md
Created November 10, 2022 09:04 — forked from natefoo/00README.md
Linux Distribution Detection

Distribution Detection

I am working on adding support for building and distributing (via PyPI) Python Wheels with C Extensions to the Python wheel and pip packages. The discussion on Distutils-SIG continues, but I believe it is fairly certain that some effort to correctly identify Linux distributions will need to be made. I've begun efforts to add this support to wheel.

How you can help

If you have a Linux distribution or version of a listed distribution not in this gist, or one of the ones I have not directly verified, I could use the following:

  • The contents of /etc/os-release, if it exists