This commit updates the rockcraft project to match the new requirements from the latest rockcraft version. It also refactors the security requirement to match the latest format in other rock repositories.
Bash is now removed from the image as it is not required and not recommended in production environments, and the build dependency on apt is also removed as it was not used at all. Adding sanity tests in this rock's repository and its corresponding tox file.
Fixes #71
Testing instructions
Prerequisites:
skopeo
docker
Build the rock rockcraft pack -v
Save the rock as an OCI image in docker's local registry skopeo --insecure-policy copy oci-archive:kubeflow-central-dashboard_1.7_amd64.rock docker-daemon:cdash:0.1
Run a container with the image and replace the entrypoint with a shell docker run --rm -ti --entrypoint=/bin/sh cdash:0.1
Ensure that:
The /app directory exists
The permissions of the /app directory are drwxr-xr-x 11 _daemon_ _daemon_ 4.0K Feb 4 00:08 app
You can run the command /usr/bin/npm start --prefix /app and it outputs the following message:
Using Profiles service at http://localhost:8081/kfam
Server listening on port http://localhost:8082 (in development mode)
This commit updates the rockcraft project to match the new requirements from the latest rockcraft version. It also refactors the security requirement to match the latest format in other rock repositories. Bash is now removed from the image as it is not required and not recommended in production environments, and the build dependency on apt is also removed as it was not used at all. Adding sanity tests in this rock's repository and its corresponding tox file.
Fixes #71
Testing instructions
Prerequisites:
rockcraft pack -v
skopeo --insecure-policy copy oci-archive:kubeflow-central-dashboard_1.7_amd64.rock docker-daemon:cdash:0.1
docker run --rm -ti --entrypoint=/bin/sh cdash:0.1
/app
directory exists/app
directory aredrwxr-xr-x 11 _daemon_ _daemon_ 4.0K Feb 4 00:08 app
/usr/bin/npm start --prefix /app
and it outputs the following message: