apache / gravitino-playground

A playground to experience Gravitino
Apache License 2.0
31 stars 31 forks source link

[Improvement] Suggestions for Playground Startup Script Improvements #102

Open orenccl opened 2 weeks ago

orenccl commented 2 weeks ago

Mainly suggested by @xunliu

1. Update Usage Prompt

Change the usage prompt in the startup script from:

echo "Usage: $0 [start | status | stop]"

to:

echo "Usage: $0 [start|stop|status]"

2. Optimize Port Status Output

Update the current port status output to display on a single line. For example:

3. Optimize Port In-Use Warning

Similarly, consolidate the port in-use warnings to a single line:

4. Remove Unnecessary Confirmation Prompt

Remove the following confirmation prompt to streamline the user experience:

Confirm the requirement is available in your OS [Y/n]:Y

5. Specify Tag for hello-world Image

Currently, the script includes the following command:

docker run --pull always hello-world >/dev/null 2>&1

To avoid unnecessary image downloads due to changes in the latest tag, specify a tag explicitly (e.g., 3.2.1).

6. Check Docker Resource Availability

The script includes a resource requirement message:

The playground requires 2 CPU cores, 8 GB of RAM, and 25 GB of disk storage to operate efficiently.

Currently, this is a text-based prompt. Consider using Docker commands to verify actual resource availability, especially ensuring that available disk space meets the 25GB requirement, to help ensure the Playground can operate smoothly.

orenccl commented 2 weeks ago

I would like to work on this.