Skip to content

feat: add Dockerfile.debug #1716

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Ressetkk
Copy link
Contributor

This Dockerfile contains configuration for remote debugging session for the module.

It's only meant for running locally.
To use the feature

  1. Build using docker build
  2. Load to the cluster using kind load image or k3d image import
  3. Change the image in the containers section to yor debug tag
  4. Remove commands field from manager deployment
  5. kubectl port-forward -n kyma-system {manager pod} 40000:40000 8000:8000

This Dockerfile contains configuration for remote debugging session for the module.

It's only meant for running locally.
To use the feature
1. Build using `docker build`
2. Load to the cluster using `kind load image` or `k3d image import`
3. Change the image in the `containers` section to yor debug tag
4. Remove commands field from manager deployment
5. kubectl port-forward -n kyma-system {manager pod} 40000:40000 8000:8000
@Ressetkk Ressetkk requested a review from a team as a code owner February 18, 2025 09:36
@kyma-bot kyma-bot added cla: yes Indicates the PR's author has signed the CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Feb 18, 2025
@@ -0,0 +1,42 @@
# Build the manager binary
FROM golang:1.23.5-alpine AS builder
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we go already with go 1.24?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Indicates the PR's author has signed the CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants