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

Minikube Installer For Linux #402

Closed
aaron-prindle opened this issue Jul 26, 2016 · 8 comments
Closed

Minikube Installer For Linux #402

aaron-prindle opened this issue Jul 26, 2016 · 8 comments
Assignees
Labels
kind/feature Categorizes issue or PR as related to a new feature.

Comments

@aaron-prindle
Copy link
Contributor

aaron-prindle commented Jul 26, 2016

We are attempting to create a local installer for Minikube on all of our supported platforms and would appreciate any feedback on best practices as to how this should be designed. Right now, we are considering the following approach:
Create a bin directory in ~/.minikube:
~/minikube
--/bin/kubectl
--/bin/minikube
--/bin/drivers

Then link (via symlink, etc.) the above into the path of the user with a method that is OS specific and points to the correct minikube binary (linux os --> minikube-linux-amd64). We will create a .deb, .rpm, .dmg, and .msi to do the above.

Right now our goal is to put the minikube binary on the path of the user in a way that is extensible to multiple binaries/dependencies (kubectl, etc.), easy to maintain for all OSs, and is as fast/simple as possible.

@aaron-prindle
Copy link
Contributor Author

Building on: #12

@jimmidyson
Copy link
Member

Distro packages should not be installed into a user's home directory. Packages are installed as root remember. If we're providing installers then we should follow proper file locations, e.g. /use/bin, /etc, etc

@ramitsurana
Copy link

@aaron-prindle Try using https://github.com/jordansissel/fpm

@r2d4
Copy link
Contributor

r2d4 commented Jul 28, 2016

Looks like someone has already added it to the arch user repository https://aur.archlinux.org/packages/minikube/

@dlorenc dlorenc added the kind/feature Categorizes issue or PR as related to a new feature. label Aug 1, 2016
@aaron-prindle aaron-prindle self-assigned this Aug 1, 2016
@aaron-prindle
Copy link
Contributor Author

aaron-prindle commented Aug 1, 2016

Here is a write-up detailing the steps I used in my first concept for how to a create a .deb installer for minikube:
https://gist.github.com/aaron-prindle/cfd23148460b24c5f49e8ceecd8ec4b0

This installed the minikube binary and added it to my path on my machine (Ubuntu 14.04). I am not sure if additional dependencies should be added to the control file or what best practices would be regarding multiple binaries, directories, etc. Any suggestions on how to improve this or alternative methods would be appreciated.

In another attempt, I tried to use dh-make-golang in conjunction with this guide but was not able to properly build the package getting the error:
aprindle@aprindle:~/dh-make-gopath/go/bin/minikube$ gbp buildpackage --git-pbuilder
Base directory /var/cache/pbuilder/base.cow does not exist
gbp:error: Couldn't run 'git-pbuilder': git-pbuilder returned 1

@aaron-prindle aaron-prindle changed the title Minikube Installer For Linux, OSX, and Windows Minikube Installer For Linux Aug 3, 2016
@dlorenc
Copy link
Contributor

dlorenc commented Aug 5, 2016

cc @stephenmw

@zoidyzoidzoid
Copy link
Contributor

zoidyzoidzoid commented Aug 15, 2016

I think using fpm might make supporting more than Debian-based OSes easier?

@r2d4
Copy link
Contributor

r2d4 commented Jan 12, 2017

Closing, we now have a deb and arch linux AUR package

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature.
Projects
None yet
Development

No branches or pull requests

6 participants