-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
1531: Parameterized Vagrantfile #1532
1531: Parameterized Vagrantfile #1532
Conversation
- Introduce environment variables for all settings in the Vagrantfile - Make the synced user folder configurable via CHE_DATA environment variable - Expose the final Che URL in <user folder>/.che_url Signed-off-by: Carsten Reckord <reckord@yatta.de>
- Introduce separate parameters for the container's port and the binding port on the host - Allow disabling host port binding by setting the host port to -1 Signed-off-by: Carsten Reckord <reckord@yatta.de>
- Setting CHE_IP to "dhcp" configures the machine with a dynamic IP managed by VirtualBox - The chosen IP is resolved in the provisioning script and handed off to docker Signed-off-by: Carsten Reckord <reckord@yatta.de>
- Setting PROVISION_PROGRESS to "extended" outputs full progress from docker and yum to better track overall provisioning progress - Extended progress will additionally install the 'expect' package to fool yum and docker into detecting a TTY for extended progress output; a small overhead (~2MB) for much better progress during the bulk of the provisioning process - Default 'vagrant up' progress stays unchanged (using '#' every 10 seconds) Signed-off-by: Carsten Reckord <reckord@yatta.de>
Can one of the admins verify this patch? |
Nice improvements, especially the use of dhcp. Two things:
|
Should I just leave it this way, or also enable (normal and extended) progress here? |
@creckord - let's go ahead and extend it so that it's consistent with normal / extended progress. |
@TylerJewell I've created ARTIK PR #69 to apply these changes. |
I confirm that I have signed the Eclipse CLA. Not sure if there is an Eclipse URL showing the CLA status, but you can see here my committer status, which implies the CLA: https://projects.eclipse.org/user/362 |
Thanks @creckord for the great contribution. |
* (#1531) Parameterize Vagrantfile - Introduce environment variables for all settings in the Vagrantfile - Make the synced user folder configurable via CHE_DATA environment variable - Expose the final Che URL in <user folder>/.che_url Signed-off-by: Carsten Reckord <reckord@yatta.de> * (#1531) Vagrantfile: Configurable host and container port - Introduce separate parameters for the container's port and the binding port on the host - Allow disabling host port binding by setting the host port to -1 Signed-off-by: Carsten Reckord <reckord@yatta.de> * (#1531) Vagrantfile: Support DHCP instead of fixed IP - Setting CHE_IP to "dhcp" configures the machine with a dynamic IP managed by VirtualBox - The chosen IP is resolved in the provisioning script and handed off to docker Signed-off-by: Carsten Reckord <reckord@yatta.de> * (#1531) Vagrantfile: Verbose progress - Setting PROVISION_PROGRESS to "extended" outputs full progress from docker and yum to better track overall provisioning progress - Extended progress will additionally install the 'expect' package to fool yum and docker into detecting a TTY for extended progress output; a small overhead (~2MB) for much better progress during the bulk of the provisioning process - Default 'vagrant up' progress stays unchanged (using '#' every 10 seconds) Signed-off-by: Carsten Reckord <reckord@yatta.de>
This pull request parameterizes the Che Vagrantfile in order to be able to configure the VM through environment parameters for vagrant up.
All parameters from the Vagrantfile can be set through environment variables. The network setup has been further parameterized to support DHCP network configuration and separate host and guest port configuration. FInally, an option for more verbose progress output has been added.
The behavior of the resulting Vagrantfile is unchanged if none of the environment variables in question have been set, i.e. a plain
vagrant up
will behave exactly as without these changes.