{"id":21392204,"url":"https://github.com/sysdiglabs/se-workshop","last_synced_at":"2025-07-13T18:31:06.530Z","repository":{"id":49189524,"uuid":"238660647","full_name":"sysdiglabs/se-workshop","owner":"sysdiglabs","description":"SE workshop","archived":false,"fork":false,"pushed_at":"2021-06-24T10:18:10.000Z","size":26,"stargazers_count":2,"open_issues_count":1,"forks_count":18,"subscribers_count":4,"default_branch":"master","last_synced_at":"2023-03-02T17:22:42.416Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sysdiglabs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-02-06T10:17:30.000Z","updated_at":"2021-04-10T17:29:13.000Z","dependencies_parsed_at":"2022-09-12T00:10:44.428Z","dependency_job_id":null,"html_url":"https://github.com/sysdiglabs/se-workshop","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sysdiglabs%2Fse-workshop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sysdiglabs%2Fse-workshop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sysdiglabs%2Fse-workshop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sysdiglabs%2Fse-workshop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sysdiglabs","download_url":"https://codeload.github.com/sysdiglabs/se-workshop/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225908373,"owners_count":17543475,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-22T13:39:35.618Z","updated_at":"2024-11-22T13:39:36.269Z","avatar_url":"https://github.com/sysdiglabs.png","language":"Python","readme":"# se-workshop\nSE workshop\n\n## Code snippets\n\nYou might need these snippets during the workshop, so they are provided here so you can Copy \u0026 Paste\n\n### Demoenv handling commands\n\n```\nalias demoenv-aws=\"docker run -ti --rm \\\n    -v ~/.ssh/id_rsa:/config/ssh-key.pem:ro \\\n    -v ~/.aws:/config/aws \\\n    -e CLUSTER_NAME=\u003cyour-cluster-name\u003e\\\n    -e BUCKET_PATH=s3://sysdig-partner-demo-env/ \\\n    -e ZONE=us-east-1a \\\n    -e NUM_NODES=1 \\\n    -e VPC_ID=vpc-04bcfe02f0e598f57 \\\n    -e PRIVATE_SUBNET_ID=subnet-0b47480ea22274a71 \\\n    -e PUBLIC_SUBNET_ID=subnet-0d7c808f36dfb0f08 \\\n    845151661675.dkr.ecr.us-east-1.amazonaws.com/demoenv-aws\"\n```\n\n### Helm command for agent installation\n\n```\nkubectl create ns sysdig-agent\n\nhelm install -n sysdig-agent --set sysdig.accessKey=YOUR-KEY-HERE --set sysdig.settings.k8s_cluster_name=foo-bar sysdig-agent stable/sysdig\n```\n\n### Deploying Jenkins\n\n```\n#Linux\n$ curl -sSfL https://github.com/roboll/helmfile/releases/download/v0.98.3/helmfile_linux_amd64 -o /usr/local/bin/helmfile\n\n#Mac\n$ curl -sSfL https://github.com/roboll/helmfile/releases/download/v0.98.3/helmfile_darwin_amd64 -o /usr/local/bin/helmfile\n\n$ chmod +x /usr/local/bin/helmfile\n\n$ helmfile sync --concurrency 1\n\n```\n\nGet Jenkins password\n```\n$ kubectl get secret --namespace jenkins jenkins -o jsonpath=\"{.data.jenkins-admin-password}\" | base64 --decode\n```\n\nExport Jenkins service localhost using port-forward\n\n```\nkubectl -n jenkins port-forward svc/jenkins 8080\n```\n\n### Github action workflow\n\n```\nname: Sysdig - Build, scan and push Docker Image\n\non: [push, repository_dispatch]\n\njobs:\n\n  build:\n\n    runs-on: ubuntu-latest\n\n    steps:\n    - uses: actions/checkout@v1\n\n    - name: Build the Docker image\n      run: docker build . --file Dockerfile --tag sysdigworkshop/\u003cyour-name\u003e:latest\n\n    - name: Scan image\n      uses: sysdiglabs/scan-action@v1\n      with:\n        image-tag: \"sysdigworkshop/\u003cyour-name\u003e\"\n        sysdig-secure-token: ${{ secrets.SYSDIG_SECURE_TOKEN }}\n\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsysdiglabs%2Fse-workshop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsysdiglabs%2Fse-workshop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsysdiglabs%2Fse-workshop/lists"}