canonical / kubeflow-rocks

Rocks for Kubeflow components
Apache License 2.0
0 stars 11 forks source link

fix: refactor the command to match upstream's #83

Closed DnPlas closed 7 months ago

DnPlas commented 7 months ago

The command was incorrectly formatted, resulting in an error: Error: No application module specified. This commit ensures the command actually runs as it is expected from the upstream image.

Testing instructions

Prerequisites:

  1. Build the rock rockcraft pack -v
  2. Save the rock as an OCI image in docker's local registry skopeo --insecure-policy copy oci-archive:<rock name>.rock docker-daemon:jwa:0.1
  3. Run a container with the image and replace the entrypoint with a shell docker run --rm -ti jwa:0.1
  4. Ensure the service gets started correctly. NOTE: Because the container image needs kubeconfig and proper expose of a the serving port, the output of the command could have the following errors:
kubernetes.config.config_exception.ConfigException: Service host/port is not set.
kubernetes.config.config_exception.ConfigException: Invalid kube-config file. No configuration found.