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

Support homebrew installation #12

Closed
FutureSharks opened this issue Jun 25, 2018 · 5 comments
Closed

Support homebrew installation #12

FutureSharks opened this issue Jun 25, 2018 · 5 comments

Comments

@FutureSharks
Copy link

Like kubectl, helm etc

@dokipen
Copy link

dokipen commented Jul 9, 2018

Here's what I'm using.

class Kubesec < Formula
  desc "A tool for encrypting and decrypting k8s secrets with AWS KMS"
  homepage "https://github.com/shyiko/kubesec"
  url "https://github.com/shyiko/kubesec/archive/0.9.0.tar.gz"
  sha256 "d36a81093322fdaaa2041f94a4efb7be978cabd691e2b88372e66f13550b4093"
  head "https://github.com/shyiko/kubesec.git"

  depends_on "go" => :build

  def install
    ENV["GOPATH"] = buildpath
    ENV["PATH"]  = "#{ENV["PATH"]}:#{ENV["GOPATH"]}/bin"
    (buildpath/"src/github.com/shyiko/kubesec").install buildpath.children
    cd "src/github.com/shyiko/kubesec" do
      system "make", "fetch"
      system "make", "build"      
      bin.install "kubesec" => "kubesec"
    end
  end

  test do
    system bin/"kubesec"
  end
end

@philicious
Copy link

I took the chance and quickly created a homebrew tap for it. I took @dokipen formula (thx !) and added a --with-short-name flag that installs it as ksec

@shyiko I can transfer that repo to you if you like

@shyiko
Copy link
Owner

shyiko commented Aug 9, 2018

Sure, let's do this. Thank you!

@philicious
Copy link

@shyiko I initiated the transfer of https://github.com/philicious/homebrew-kubesec to you

@shyiko
Copy link
Owner

shyiko commented Aug 10, 2018

@dokipen @philicious thanks again!

@shyiko shyiko closed this as completed Aug 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants