[Container-tools] CDK issue with different home_directory

Charles Moulliard cmoullia at redhat.com
Mon Apr 24 17:13:31 UTC 2017


On Mon, Apr 24, 2017 at 11:56 AM, Hardy Ferentschik <hferents at redhat.com>
wrote:

> Hi,
>
> > > I was not aware that you could specify a different directory. That
> must be
> > > a new feature of RC2?
>
> No, that has been there all the time.
>
> > This we did for our integration test purpose to run it in a CI env.
>
> This is not only for integration testing. It works actually quite well.
> So, per default Minishift installs and uses ~/.minishift. Using the
> --minishift-home forces the setup to install into the specified directory.
> This is, however, only one part of the equation. Once you have done this,
> you need to make sure that at runtime (when you are executing minishift
> commands),
> Minishift uses this custom home directory. You do this by exporting
> MINISHIFT_HOME.
> See also https://docs.openshift.org/latest/minishift/using/
> managing-minishift.html#environment-variables


>> When I setup the MINISHIFT_HOME env var to point to a different home
directory, cdk can't start as it can't find the minishift-rhel7.iso whichi
is well packaged

export MINISHIFT_HOME=/Users/chmoulli/Temp/_minishift/minishift-cdk
./minishift version
Minishift version: 1.0.0-rc.2
CDK Version: 3.0.0-20042017

./minishift start
Starting local OpenShift cluster using 'xhyve' hypervisor...
E0424 19:08:48.486322    3339 start.go:172] Error starting the VM: Error
creating the VM. Error creating machine: Error in driver during machine
creation: open /cache/iso/minishift-rhel7.iso: no such file or directory.

ls -la
/Users/chmoulli/Temp/_minishift/minishift-cdk/cache/iso/minishift-rhel7.iso
-rw-r--r--  1 chmoulli  staff  350224384 Apr 23 12:23
/Users/chmoulli/Temp/_minishift/minishift-cdk/cache/iso/minishift-rhel7.iso

>
>
> Bottom line, you can use Minishift community as well as the CDK with a
> home directory different to ~/.minishift.
>
> Regarding having multiple instances, that's possible with some caveats.
> I can explain more if you want to.
>
> --Hardy
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/container-tools/attachments/20170424/faf52cb3/attachment.htm>


More information about the Container-tools mailing list