{"id":2008,"date":"2015-02-05T17:11:40","date_gmt":"2015-02-05T15:11:40","guid":{"rendered":"http:\/\/hasselba.ch\/blog\/?p=2008"},"modified":"2015-02-05T17:13:16","modified_gmt":"2015-02-05T15:13:16","slug":"ibm-bluemix-creating-buildpacks","status":"publish","type":"post","link":"https:\/\/hasselba.ch\/blog\/?p=2008","title":{"rendered":"IBM Bluemix: Filemode-Problems with GitHub"},"content":{"rendered":"<p>When creating your own build pack for <a title=\"bluemix.net\" href=\"http:\/\/bluemix.net\" target=\"_blank\">IBM Bluemix<\/a> applications (or other <a title=\"cloudfoundry.org\" href=\"http:\/\/www.cloudfoundry.org\" target=\"_blank\">Cloud Foundry <\/a>based solutions), it is required to set the correct file mode for the executables before initially pushing them to <a title=\"github.com\" href=\"https:\/\/github.com\" target=\"_blank\">GitHub<\/a>. Otherwise the compilation will fail, and it seems to be a known bug for GitHub based repositories that the mode cannot be changed later.<\/p>\n<p>The command for this is<\/p>\n<pre><code>git update-index --chmod=+x &lt;path-to-file&gt;<\/code><\/pre>\n<p>You can see the result when you commit the files to your respository:<\/p>\n<pre><code>&gt; git commit -m \"first commit\"\r\n\r\n[master (root-commit) 680979a] first commit\r\n\u00a04 files changed, 34 insertions(+)\r\n\u00a0create mode 100644 README.md\r\n\u00a0create mode 100755 bin\/compile\r\n\u00a0create mode 100755 bin\/detect\r\n\u00a0create mode 100755 bin\/release<\/code><\/pre>\n<p>[The three files in the folder &#8222;<em>\/bin<\/em>&#8220; have the correct mode 755 instead 644]<\/p>\n<p>You can find an example build pack here <a title=\"github.com: Basic Buildpack\" href=\"https:\/\/github.com\/hasselbach\/cf-buildpack-basic.git\" target=\"_blank\">https:\/\/github.com\/hasselbach\/cf-buildpack-basic.git<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When creating your own build pack for IBM Bluemix applications (or other Cloud Foundry based solutions), it is required to set the correct file mode for the executables before initially pushing them to GitHub. Otherwise the compilation will fail, and &hellip; <a href=\"https:\/\/hasselba.ch\/blog\/?p=2008\">Weiterlesen <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[69],"tags":[67,71,70],"class_list":["post-2008","post","type-post","status-publish","format-standard","hentry","category-ibm-bluemix","tag-cloud","tag-cloud-foundry","tag-ibm-bluemix"],"_links":{"self":[{"href":"https:\/\/hasselba.ch\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2008","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hasselba.ch\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hasselba.ch\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hasselba.ch\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hasselba.ch\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2008"}],"version-history":[{"count":7,"href":"https:\/\/hasselba.ch\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2008\/revisions"}],"predecessor-version":[{"id":2015,"href":"https:\/\/hasselba.ch\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2008\/revisions\/2015"}],"wp:attachment":[{"href":"https:\/\/hasselba.ch\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2008"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hasselba.ch\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2008"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hasselba.ch\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2008"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}