Skip to content

add Dockerfile and edit circleci config#95

Merged
teemow merged 1 commit intomainfrom
add-dockerfile
Dec 20, 2025
Merged

add Dockerfile and edit circleci config#95
teemow merged 1 commit intomainfrom
add-dockerfile

Conversation

@QuantumEnigmaa
Copy link
Contributor

What does this PR do?

This PR adds a Dockerfile for allowing muster to be deployed as an app in a cluster thanks to a follow-up PR that will add a Helm chart.

It also updates the circleci config so that muster is pushed to our image registries.

Testing

  • New functionality is covered by unit/integration tests.
  • Existing tests have been updated to reflect changes.
  • For UI changes involving golden files (e.g., in internal/tui/view/testdata/), new files have been generated/updated (e.g., by running go test ./internal/tui/view/... -update) and meticulously verified.

Do the docs need to be updated?

Should this change be mentioned in the release notes?

  • CHANGELOG.md has been updated (if it exists)

@@ -0,0 +1,10 @@
FROM gsoci.azurecr.io/giantswarm/alpine:3.20.3-giantswarm
Copy link
Contributor

Choose a reason for hiding this comment

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

What's the use of those 2 from btw?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's because this is a multi-stage dockerfile.

The first FROM is needed to get the /etc/passwd and /etc/group files and pass it to the second stage which build from scratch and just adds these 2 files and the binary to the image.

Copy link
Contributor

Choose a reason for hiding this comment

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

oh nice

@QuantumEnigmaa
Copy link
Contributor Author

The last commit is an attempt to fix the current issue encountered when trying to run a container from the image generated by the previous version of the Dockerfile:

Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during contain
er init: exec: "sh": executable file not found in $PATH: unknown

Building from scratch is not enough for the muster binary.

But we'll have to update the base image that is currently gcr.io/distroless/base-debian12:nonroot

@teemow
Copy link
Member

teemow commented Jul 30, 2025

@QuantumEnigmaa @QuentinBisson same as in #94

  • Are there still plans to continue?
  • Can you merge with main please?
  • It looks like a lot of changes in here. Can you give an overview of what you did here and what is needed to finish this?

- Add Dockerfile using giantswarm alpine base image (same pattern as mcp-kubernetes)
- Enable push-to-registries in CircleCI workflow
@teemow teemow merged commit 17922c0 into main Dec 20, 2025
4 checks passed
@teemow teemow deleted the add-dockerfile branch December 20, 2025 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants