canonical / pipelines-rocks

ROCKs for Kubeflow Pipelines
Apache License 2.0
1 stars 8 forks source link

Upgrade visualisation server ROCK to 2.3.0 #141

Closed misohu closed 1 week ago

misohu commented 1 week ago

Closes: https://github.com/canonical/pipelines-rocks/issues/140

No changes in code the Docker image did not change https://github.com/kubeflow/pipelines/blob/2.2.0/backend/Dockerfile.visualization https://github.com/kubeflow/pipelines/blob/2.3.0/backend/Dockerfile.visualization

I have bumped the tags.

Steps for local comparison test

# build the ROCK
rockcraft clean && rockcraft pack --verbosity=trace
sudo rockcraft.skopeo --insecure-policy copy oci-archive:visualization-server_2.3.0_amd64.rock docker-daemon:visualization-server:2.3.0

# Upstream image 
docker run gcr.io/ml-pipeline/visualization-server:2.3.0

########################################################

# Rock 
docker run visualization-server:2.3.0

# Output
2024-11-14T09:50:45.048Z [pebble] Started daemon.
2024-11-14T09:50:45.082Z [pebble] POST /v1/services 16.662624ms 202
2024-11-14T09:50:45.100Z [pebble] Service "controller" starting: bash -c '/bin/controller --logtostderr=true --max_num_viewers=${MAX_NUM_VIEWERS} --namespace=${NAMESPACE}'
2024-11-14T09:50:45.159Z [pebble] Change 1 task (Start service "controller") failed: cannot start service: exited quickly with code 1
2024-11-14T09:50:45.175Z [pebble] GET /v1/changes/1/wait 91.71935ms 200
2024-11-14T09:50:45.175Z [pebble] Started default services with change 1.

# Output for service is hidden you need to get the id of running docker container 
docker ps
# bash into the container 
docker exec -ti <your_id> bash
# execute the service command manually
$ /bin/controller