Giter Club home page Giter Club logo

Comments (8)

ericmj avatar ericmj commented on August 23, 2024

It seems like Bluemix doesn't set the STACK environment variable, see https://devcenter.heroku.com/articles/buildpack-api#stacks. The buildpack is built for Heroku and other providers using buildpacks should probably match the environment Heroku buildpacks run in.

I suggest you raise this issue with Bluemix, please let us know their response, keeping this issue open.

from heroku-buildpack-elixir.

HashNuke avatar HashNuke commented on August 23, 2024

@ericmj You are right about the STACK var. I read this issue in bed and forgot to reply. Ideally some Heroku buildpacks work on alternative platforms (like CloudFoundry in this case). But I wrote this buildback intending to work on Heroku only (only after noticing the tiny diff that each env seemed to have), but did have supporting other platforms in mind IF possible in the future.

Right now I think it might be tough for you to build/maintain multiple versions of Erlang. It might depend which distro/version of Linux the container runs (assuming knowing the ubuntu version is how you build Erlang pkgs stored on s3). If cloudfoundry, openstack, heroku etc all require diff Erlang pkgs for a particular version, I'll leave it upto you to decide if you want to support them.

P.S: I'll get back with some OS-version numbers that these platforms use in some time.

from heroku-buildpack-elixir.

ericmj avatar ericmj commented on August 23, 2024

@HashNuke You are making a good point, unless the other platforms use the exact ubuntu versions (and updates) as Heroku does the Erlang builds are not going to work.

I don't have time to maintain Erlang builds for all possible linux containers on every platform. If someone wants to maintain builds for their specific platform we can of course try to support that in the buildpacl

from heroku-buildpack-elixir.

HashNuke avatar HashNuke commented on August 23, 2024

If someone wants to maintain builds for their specific platform we can of course try to support that in the buildpack

@ericmj 👍

from heroku-buildpack-elixir.

optikfluffel avatar optikfluffel commented on August 23, 2024

Ok, the cf stacks command tells me there is only one available stack on Bluemix right now, it's called lucid64 and is running Ubuntu 10.04 on x86-64. Isn't that the same as cedar on Heroku?

from heroku-buildpack-elixir.

HashNuke avatar HashNuke commented on August 23, 2024

@optikfluffel As far as I can remember yes. In that case, you can set the STACK env var manually to "cedar" and the buildpack might work. This is assuming that CloudFoundry itself doesn't set any env var called "STACK".

from heroku-buildpack-elixir.

optikfluffel avatar optikfluffel commented on August 23, 2024

@HashNuke tried it out, now I'm getting ERR /tmp/buildpacks/heroku-buildpack-elixir/lib/elixir_funcs.sh: line 28: jar: command not found. I already saw #18 but there the problem was the newer cedar-14 stack.

from heroku-buildpack-elixir.

HashNuke avatar HashNuke commented on August 23, 2024

@optikfluffel jar command was the only way to unzip files on the older cedar stack. cedar14 doesn't have jar but has unzip. So we check for stack name and use unzip/jar depending on the stack https://github.com/HashNuke/heroku-buildpack-elixir/blob/master/lib/elixir_funcs.sh#L25-L29

My suggestion would be to actually check which command exists using a cross-shell way like "command -v foo" instead of the stack var. Then use that command. Try making the change in a fork and deploy using that fork (PR welcome if it works ~!).

If you've got Erlang installed without errors then there's a high probability that you will get a proper deploy with this fix.

from heroku-buildpack-elixir.

Related Issues (20)

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.