Code Monkey home page Code Monkey logo

helm-rb's Introduction

helm-rb

The Helm executable distributed as a Rubygem.

Intro

Helm is billed as "the package manager for Kubernetes."

It's wrapped up as a Rubygem here to make it easy to distribute with Ruby apps, and was originally created for the Kuby project.

Usage

There is only one method that returns the absolute path to the helm executable:

require 'helm-rb'

# /Users/me/.rbenv/versions/2.5.6/lib/ruby/gems/2.5.0/gems/helm-rb-0.1.0-x86_64-darwin/vendor/helm
HelmRb.executable

The version of Helm can be obtained like so:

require 'helm-rb/version'

# "3.1.1"
HelmRb::HELM_VERSION

License

Helm is licensed under the Apache 2 license. The LICENSE file contains a copy.

Authors

helm-rb's People

Contributors

camertron avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

adamtharani

helm-rb's Issues

Unable to find a spec satisfying helm-rb on MacBook with Apple M1 chip

I'm receiving the below error when trying to install kuby-core on my laptop with the Apple M1 chip

Unable to find a spec satisfying helm-rb (~> 0.1) in the set. Perhaps the lockfile is
corrupted? Found helm-rb (0.1.0-x86_64-linux), helm-rb (0.1.0-x86_64-darwin), helm-rb
(0.1.0-s390x-linux), helm-rb (0.1.0-ppc64le-linux), helm-rb (0.1.0-i386-linux), helm-rb
(0.1.0-arm64-linux), helm-rb (0.1.0-arm-linux) that did not match the current platform.

Add support for aarch64-linux-musl platform

Hi @camertron !

I ran into an error while trying to build, I think because helm-rb doesn't support aarch64-linux-musl which is linux running under docker on an M1 mac.

Error running: `bundle exec kuby -e production build`
#15 [stage-1  9/15] RUN bundle install --jobs $(nproc) --retry 3 --gemfile Gemfile
#15 sha256:bbc9f4ae2b23af72083b2050345bff851c93b9017d871e3a29376f8732d796c1
#15 0.375 Resolving dependencies...
#15 0.615 Unable to find a spec satisfying helm-rb (~> 0.1) in the set. Perhaps the
#15 0.615 lockfile is corrupted? Found helm-rb (0.2.0-x86_64-darwin), helm-rb
#15 0.615 (0.2.0-arm64-darwin) that did not match the current platform.
#15 ERROR: executor failed running [/bin/sh -c bundle install --jobs $(nproc) --retry 3 --gemfile Gemfile]: exit code: 7
------
 > [stage-1  9/15] RUN bundle install --jobs $(nproc) --retry 3 --gemfile Gemfile:
------
executor failed running [/bin/sh -c bundle install --jobs $(nproc) --retry 3 --gemfile Gemfile]: exit code: 7
error: build failed: docker command exited with status code 1
Error running: `bundle` & `bundle platform`
bash-5.1$ bundle
Resolving dependencies...
Unable to find a spec satisfying helm-rb (~> 0.1) in the set. Perhaps the lockfile is corrupted? Found helm-rb (0.2.0-x86_64-darwin), helm-rb (0.2.0-arm64-darwin) that did not match
the current platform.
bash-5.1$ bundle platform
Your platform is: aarch64-linux-musl

Your app has gems that work on these platforms:
* aarch64-linux-musl
* arm64-darwin-20
* x86_64-darwin-20

Your Gemfile specifies a Ruby version requirement:
* ruby 3.0.1p64

Your current platform satisfies the Ruby version requirement.

I think the following LOC needs updating (Though I'm not 100% if that's all what is required):

helm-rb/Rakefile

Lines 5 to 15 in 53e2622

DISTRIBUTIONS = [
{ rb_platform: 'x86_64-darwin', filename: 'darwin-amd64.tar.gz' },
{ rb_platform: 'arm64-darwin', filename: 'darwin-arm64.tar.gz'},
{ rb_platform: 'x86_64-linux', filename: 'linux-amd64.tar.gz' },
{ rb_platform: 'arm-linux', filename: 'linux-arm.tar.gz' },
{ rb_platform: 'arm64-linux', filename: 'linux-arm64.tar.gz' },
{ rb_platform: 'x86-linux', filename: 'linux-386.tar.gz' },
{ rb_platform: 'ppc64le-linux', filename: 'linux-ppc64le.tar.gz' },
{ rb_platform: 's390x-linux', filename: 'linux-s390x.tar.gz' },
{ rb_platform: 'x64-mswin64', filename: 'windows-amd64.zip' }
]

https://github.com/MikeRogers0-YouTube/Deploying-With-Kubernetes/pull/1 - This is the sample repo I was deploying with.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.