-
Notifications
You must be signed in to change notification settings - Fork 240
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
Harden installation script #2225
Comments
Hi @kvalkhof75, We are currently in the process of preparing the upcoming release of JFrog CLI, which will incorporate these improvements. If you have any suggestions or feedback, we would greatly appreciate hearing from you! |
Thx. You could consider the changes I demonstrated above. :-) |
@kvalkhof75 |
These scripts are almost fully compatible with If you are You can verify this by changing the shebang from |
@kvalkhof75
|
The logs from
Which is not that nice. As logs typically do not allow overwriting previous lines. As such I (and who am I ;-) ) always disable progress bars completely (
|
If the documentation on the internet as far as I can find it is correct then: Meaning that:
will give hard equal results. (Mind the I used |
@kvalkhof75 |
@kvalkhof75 |
Is your feature request related to a problem? Please describe.
The jfrog-cli installation scripts fail our QA checks. This is annoying because we are supposed to run downloaded scripts. And you should always check scripts from the internet before running them.
Additionally, they do not run out of the box, but require a
chmod +x "${FILE_NAME}"
to actually work.As a customer from JFrog I reported this issue as #264465.
I see the merged pull request #2202.
It did not solve the following (minor) issues:
-#
or-s -S
.jfrog
executable cannot be run as non-root. This happens in our base images where installation happens as root, but the images run as non-root. Solvable by changingchmod
fromu+x
to+x
.Describe the solution you'd like to see
I propose you change the script into the following:
Describe alternatives you've considered
I considered re-raising the issue, but this way may just be faster.
I considered creating a pull request, but I have never done such a thing. If you are willing to guide me through the process, then I will do the work.
Additional context
The text was updated successfully, but these errors were encountered: