Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass through all container arguments exactly as specified #166

Closed
wants to merge 1 commit into from

Conversation

optiz0r
Copy link

@optiz0r optiz0r commented Jun 14, 2021

Previously the entrypoint wrapper took exactly two arguments, and passed them along
unquoted, to harvest meaning any spaces made the given arguments split into additional
passed arguments. This is confusing, because there's no way to know without reading
the entrypoint code why that's happening, and it's unlike any other software out
there. Any additional arguments given to the entrypoint were silently ignored.

This commit changes the entrypoint to pass all arguments through unmodified.
This is more intuitive and consistent with other applications, including the
harvest application itself.

Compatibility break

Where users have previously customised container arguments as:

'start' '--config /opt/harvest.yml ...'

These instead need to be passed as:

'start' '--config' '/opt/harvest.yml' ...

Fixes #163

Previously the entrypoint wrapper took exactly two arguments, and passed them along
unquoted, to harvest meaning any spaces made the given arguments split into additional
passed arguments. This is confusing, because there's no way to know without reading
the entrypoint code why that's happening, and it's unlike any other software out
there. Any additional arguments given to the entrypoint were _silently_ ignored.

This commit changes the entrypoint to pass _all_ arguments through unmodified.
This is more intuitive and consistent with other applications, including the
harvest application itself.

*Compatibility break*

Where users have previously customised container arguments as:

```
'start' '--config /opt/harvest.yml ...'
```

These instead need to be passed as:

```
'start' '--config' '/opt/harvest.yml' ...
```

Fixes NetApp#163
@cla-bot
Copy link

cla-bot bot commented Jun 14, 2021

Thank you for your interest in contributing to the Harvest project! We require contributors to sign our Corporate contributor license agreement (CCLA), and we don"t have the user(s) @optiz0r on file. In order for us to review and merge your code, please follow the instructions in step 6 of creating a pull request.
After signing the CCLA, you can ask us to recheck this PR by posting @cla-bot check as a comment to the PR.

@rahulguptajss
Copy link
Contributor

done as part of #234

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Docker container handles arguments strangely
2 participants