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

Certain umask settings will cause build pack build script to produce a broken build pack bundle #304

Closed
dmikusa opened this issue Jun 20, 2016 · 2 comments
Labels
Milestone

Comments

@dmikusa
Copy link
Contributor

dmikusa commented Jun 20, 2016

Steps to recreate:

  1. Set umask to 0027
  2. Run git clone https://github.com/cloudfoundry/java-buildpack
  3. Run bundle exec rake package OFFLINE=true version=v3.8
  4. Run cf create-buildpack java_buildpack_test build/java-buildpack-offline-7a37ff3.zip 9 --enable
  5. Run cf push spring-music -b java_buildpack_test.

Output:

Downloading java_buildpack_test...
Downloaded java_buildpack_test (264.1M)
Creating container
Successfully created container
Downloading app package...
Downloaded app package (21.1M)
Staging...
Failed to compile droplet
Exit status 223
Staging failed: Exited with status 223

Seems like a permissions issue on the bin/* scripts. Can the build pack build scripts force permissions to 755 for those scripts?

@nebhale
Copy link
Contributor

nebhale commented Jul 5, 2016

Grumble, grumble. Yeah, we can do it. Not a huge priority, as I think it's a reasonable expectation that you clone the repository with the permissions checked into source control, but I'll add it to the backlog.

@nebhale
Copy link
Contributor

nebhale commented Jul 5, 2016

@nebhale nebhale added this to the v3.13 milestone Jan 23, 2017
@nebhale nebhale added the build label Jan 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants