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
{{ message }}
Repository navigation
Prevent failure with duplicate flags in EXTRA_OPTS #549
When someone installs a new version of a package in which they have included EXTRA_OPTS, if this new version comes with any of the flags defined in EXTRA_OPTS there is a duplication that causes the package to stop working.
This is the solution we have thought of in the package side (for each package that includes EXTRA_OPTS):
The docker-compose must include these envs:
1.1. FLAGS => Will include the default flags for that package
1.2. EXTRA_OPTS => Will be empty by default and edited by the user if desired in the package config section
The command execution format in the entrypoint.sh will be the following: ./command check_extra_opts(FLAGS, EXTRA_OPTS)
The package will include the file check_extra_opts.sh that needs to be copied to the image in build time and it wll be called as defined above in the entrypoint.sh
This check_extra_opts.sh file will return a "space separated" string removing the flags presents both in EXTRA_OPTSand FLAGS from FLAGS, giving priority to those introduced by the user (EXTRA_OPTS)
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions!
Activity
stale commentedon May 18, 2023
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions!
stale commentedon Jun 17, 2023
This issue or pull request has been automatically been closed due to inactivity.