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

[cli] - Add check for exec on file system #4326

Merged
merged 4 commits into from
Mar 7, 2017
Merged

[cli] - Add check for exec on file system #4326

merged 4 commits into from
Mar 7, 2017

Conversation

TylerJewell
Copy link

@TylerJewell TylerJewell commented Mar 6, 2017

What does this PR do?

This adds a check for the ability to execute a file on the file system mounted to :/data. Also adds in the ability to skip this check if --fast is provided on the command line. We previously checked to see if the file system is writable, but never checked to see if files could execute on the system.

Also adds in --follow option to the start command which will provide blocking following of Che logs to the output screen. This will not let you know when the server has finished booting. The user must provide CTRL-C on the command line to kill this process.

What issues does this PR fix or reference?

codenvy/codenvy#1877 (comment)

Changelog

[cli] Add check to ensure :/data can execute files written to it from a container
[cli] Add --follow parameter to start command to follow logs while booting

Release Notes

In the CLI, as part of the start command, you can now optionally provide the --follow flag which will provide a blocking follow of the logs of the Che server.

Docs PR

eclipse-che/che-docs#164
codenvy/docs#94

Tyler Jewell added 2 commits March 6, 2017 06:17
Signed-off-by: Tyler Jewell <tjewell@codenvy.com>
Signed-off-by: Tyler Jewell <tjewell@codenvy.com>
if ! is_fast; then
check_host_volume_mount
fi
return 2

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like indentation is not alligned

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops - indentation is correct. That return statement should not be there. Removed.

Tyler Jewell added 2 commits March 6, 2017 06:42
Signed-off-by: Tyler Jewell <tjewell@codenvy.com>
@TylerJewell TylerJewell self-assigned this Mar 6, 2017
@TylerJewell TylerJewell added the kind/enhancement A feature request - must adhere to the feature request template. label Mar 6, 2017
@codenvy-ci
Copy link

Build finished.
Build success. $BUILD_URL

@codenvy-ci
Copy link

@@ -16,6 +16,7 @@ help_cmd_start() {
text "Starts ${CHE_MINI_PRODUCT_NAME} and verifies its operation\n"
text "\n"
text "PARAMETERS:\n"
text " --follow Displays server logs to console and blocks until user interrupts\n"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 really useful feature

@TylerJewell TylerJewell merged commit 37275d3 into master Mar 7, 2017
@TylerJewell TylerJewell deleted the cli-fixup branch March 7, 2017 14:11
TylerJewell pushed a commit to eclipse-che/che-docs that referenced this pull request Mar 7, 2017
@TylerJewell TylerJewell added this to the 5.5.0 milestone Mar 7, 2017
@JamesDrummond JamesDrummond mentioned this pull request Mar 17, 2017
9 tasks
JPinkney pushed a commit to JPinkney/che that referenced this pull request Aug 17, 2017
Signed-off-by: Tyler Jewell <tjewell@codenvy.com>
* exec check
* add --follow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement A feature request - must adhere to the feature request template.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants