Skip to content
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

Question: how to check version of each component within Mainsail. #74

Closed
GAZ082 opened this issue May 29, 2023 · 3 comments
Closed

Question: how to check version of each component within Mainsail. #74

GAZ082 opened this issue May 29, 2023 · 3 comments

Comments

@GAZ082
Copy link

GAZ082 commented May 29, 2023

Hello! Is there any way? The little icons in Mainsail just show a question mark in the version number.

Thanks!

@mkuf
Copy link
Owner

mkuf commented Jun 1, 2023

Hi There,

Klipper and Moonraker rely on the git history to be present to determine their Versions.
As the git directory is quite large (~300M for klipper) and is not required for operation it is removed from the runtime image to keep its size small. Klipper and Moonraker are therefore not able to determine their version, wich results in the ? being displayed.

I did some testing with sparse cloning the repository but klipper as well as moonraker did not display a valid version number in this case. So there is no workaround for this and versions will probably remain as they are, unless klipper and moonraker offer an external way to set the version at build time.

-Markus

@mkuf mkuf closed this as completed Jun 1, 2023
@mkuf mkuf added the wontfix This will not be worked on label Jun 1, 2023
@mkuf
Copy link
Owner

mkuf commented Jun 1, 2023

What you can do however is checking the version of the docker containers.
The label org.prind.image.version contains the upstream sha that represents the commit of the corresponding repository.

This commands lists the service, image and org.prind.image.version for all prind services.

  for container in $(docker ps -aqf "label=org.prind.service"); do
    echo "$(docker inspect --format '{{ index .Config.Labels "org.prind.service" }}' ${container}): $(docker inspect --format '{{ index .Config.Image }}' ${container}) $(docker inspect --format '{{ index .Config.Labels "org.prind.image.version"}}' ${container})"
  done

Output:

moonraker: mkuf/moonraker:latest v0.8.0
klipper: mkuf/klipper:latest 37315bf3365484c3ba6adef2b7da2b4464980e8a
traefik: traefik:v2.5 
klipperscreen: mkuf/klipperscreen:latest 059f1a8026588090d0ea205b02c0d0a9a8e2b80a
mobileraker_companion: ghcr.io/clon1998/mobileraker_companion:latest 
mainsail: ghcr.io/mainsail-crew/mainsail:edge 
init: busybox:latest 
webcam: mkuf/ustreamer:latest dde2190ac9b96795e58908a6b57b06b2842b1010

@mkuf
Copy link
Owner

mkuf commented Nov 13, 2024

Versions are now correctly displayed with 2472a28 in the latest klipper and moonraker images.

image

@mkuf mkuf removed the wontfix This will not be worked on label Nov 24, 2024
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

No branches or pull requests

2 participants