Comments (8)
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.
@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.
@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.
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.
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.
@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.
@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.
@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)
- Is there anyway to add an aditional binary that can be used at compile time. HOT 3
- Support the new Cloud Native Buildpack (CNB) format.
- Will use cached Elixir version even if Erlang version changes HOT 6
- Doesn't work with Heroku-20 Stack HOT 8
- Crypto.app not found HOT 1
- Too many levels of symbolic links HOT 10
- Error building with Heroku-20 stack HOT 5
- Update Readme With Updated Default Versions
- Buildpack incompatible with building in /app HOT 13
- Build isn't marked as failing if errors occur
- Use OTP builds from hexpm/bob HOT 1
- Cache isn't cleared on stack change which results in shared library errors HOT 3
- Can't deploy on Heroku-20, Erlang 23, Elixir 1.12 HOT 1
- libtinfo.so.5 issue with using buildpack HOT 17
- gzip: stdin: not in gzip format HOT 2
- Can't deploy on Heroku-20, Erlang 21.2.5, Elixir 1.12.2 HOT 2
- Support for Stack Heroku-22 HOT 1
- Issues upgrading to Heroku 22 HOT 4
- mix releases should be required (or suggested) for Elixir 1.15
- Deployment of poncho apps
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from heroku-buildpack-elixir.