You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Part of the allure of a CLI-based application is the ability to use it with automated scripts and container orchestration. However, the initial step of registering an Iagon storage provider node makes this difficult. Consider the following:
This particular step of setup requires a user to manually type in the answers to those three variables, which are then saved to a configuration file in ~/iagon-node. After this step, it appears that a user can backup that configuration and restore it to keep from having to do setup again (though I'm not sure if this is supported or not).
Part of my own custom Docker container for the Iagon storage node cli contains this in entrypoint.sh:
# Check if configuration existsif [ -d"$CONFIG_DIR" ] && [ "$(ls -A $CONFIG_DIR)" ];thenecho"Configuration found. Starting service..."# Command to start service using existing configuration
./iag-cli-linux start
elseecho"No configuration found. Please initialize the configuration manually using the following command:"echo"docker exec -it iagon-provider-node /bin/bash"echo"No configuration found. Initializing service..."# Command to initialize service, might need to handle input here or modify your service to accept env variables
./iag-cli-linux start <<EOF$IAGON_STORAGE_PATH$IAGON_STORAGE_SIZE$IAGON_SERVER_PORT EOF# Save an extra backup just in case. cp -R /root/iagon-node /mnt/backup/fi
However, this and the many variations of it I have tried don't work due to the interactive steps of setup.
My request is to add some sort of non-interactive setup. Perhaps it could be as simple as iag-cli-linux start --noninteractive where it could read those variables in from environment variables or from a config file.
I imagine something like this isn't a high priority, but many of the commercial or open-source NAS products on the market are designed to run software like this in containers. Adding a feature like this would streamline adoption for that part of the userbase.
The text was updated successfully, but these errors were encountered:
Part of the allure of a CLI-based application is the ability to use it with automated scripts and container orchestration. However, the initial step of registering an Iagon storage provider node makes this difficult. Consider the following:
This particular step of setup requires a user to manually type in the answers to those three variables, which are then saved to a configuration file in
~/iagon-node
. After this step, it appears that a user can backup that configuration and restore it to keep from having to do setup again (though I'm not sure if this is supported or not).Part of my own custom Docker container for the Iagon storage node cli contains this in
entrypoint.sh
:However, this and the many variations of it I have tried don't work due to the interactive steps of setup.
My request is to add some sort of non-interactive setup. Perhaps it could be as simple as
iag-cli-linux start --noninteractive
where it could read those variables in from environment variables or from a config file.I imagine something like this isn't a high priority, but many of the commercial or open-source NAS products on the market are designed to run software like this in containers. Adding a feature like this would streamline adoption for that part of the userbase.
The text was updated successfully, but these errors were encountered: