<p>we want to create e2e test (integration test ) for our applications on k8s and we want to use
minikube but it seems that there is no proper (maintained or official ) docker file for minikube. at least 
I didn’t find any…In addition I see <a href="https://k3s.io" rel="nofollow noreferrer">k3s</a>  and not sure which is better to run e2e test on k8s ?</p>

<p>I found this docker file but when I build it it fails with errors</p>

<p><a href="https://aspenmesh.io/2018/01/building-istio-with-minikube-in-a-container-and-jenkins/" rel="nofollow noreferrer">https://aspenmesh.io/2018/01/building-istio-with-minikube-in-a-container-and-jenkins/</a> </p>

<p><code>e - –no-install-recommends error</code></p>

<p>any idea ?</p>

Rayn D
<p>Currently there's no official way to run minikube from within a container. Here's a two months old <a href="https://github.com/kubernetes/minikube/issues/3192#issuecomment-496186427" rel="nofollow noreferrer">quote</a> from one of minikube's contributors:</p>

<blockquote>
  <p>It is on the roadmap. For now, it is VM based.</p>
</blockquote>

<p>If you decide to go with using a VM image containing minikube, there are some guides how to do it out there. Here's one called "<a href="https://banzaicloud.com/blog/minikube-ci/" rel="nofollow noreferrer">Using Minikube as part of your CI/CD flow
</a>".</p>

<p>Alternatively, there's a project called <a href="https://microk8s.io/" rel="nofollow noreferrer">MicroK8S</a> backed by Canonical. In a <strong>Kubernetes Podcast <a href="https://kubernetespodcast.com/episode/039-minikube/" rel="nofollow noreferrer">ep. 39</a></strong> from February, <a href="https://github.com/dlorenc" rel="nofollow noreferrer">Dan Lorenc</a> mentions this:</p>

<blockquote>
  <p>MicroK8s is really exciting. That's based on some new features of recent Ubuntu distributions to let you run a Kubernetes environment in an <strong>isolated fashion without using a virtual machine</strong>. So if you happen to be on one of those Ubuntu distributions and can take advantage of those features, then I would definitely recommend MicroK8s.</p>
</blockquote>

<p>I don't think he's referring to running minikube in a container though, but I am not fully sure: I'd enter a Ubuntu container, try to install microk8s as a package, then see what happens.</p>

<p>That said, unless there's a compelling reason you want to run kubernetes from within a container and you are ready to spend the time going the possible rabbit hole – I think these days running minikube, k3s or microk8s from within a VM should be the safest bet if you want to get up and running with a CI/CD pipeline relatively quickly.</p>
