-
Notifications
You must be signed in to change notification settings - Fork 41
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
git submodules hook/support ala Heroku #468
Comments
From @abecode on December 30, 2014 2:51 This was also an issue I had. Based on the deis chat on IRC, it seems that the functionality would most likely involve the file builder/image/slugbuildr/build.sh (https://github.com/deis/deis/blob/master/builder/image/slugbuilder/builder/build.sh). |
From @abecode on December 30, 2014 22:0 I managed to build a slug using the deis/slugbuilder using the git-archive-all script, https://github.com/meitar/git-archive-all.sh/blob/master/git-archive-all.sh , but I was unable to get the slug to be deployed. I probably won't have time to get to it this week so I wanted to leave a breadcrumb... |
From @ianblenke on February 28, 2015 0:44 This is duplicated in deis#3160 - closing that in favor of this on @bacongobbler's suggestion. We have a couple of projects that use submodules. The precise SHA1 is important to us. deis-builder uses this in `./builder/image/templates/builder' to generate the tarball that is sent to the docker slugbuilder:
Unfortunately, git archive strips the @bacongobbler mentioned gh1094 as related to this, and rightfully explained that submodules are also an issue on Heroku. To add .git, I've had to modify our deis/builder image to do this instead:
It would be nice to somehow flag an app to selectively include .git, as no doubt others will run into this limitation. Thanks! |
From @paralin on March 5, 2015 3:49 +1 just ran into this issue. |
From @bacongobbler on May 4, 2015 20:32 closed but relevant: deis/deis#3375 |
From @bacongobbler on February 10, 2016 0:18 Just an FYI by bburky on IRC:
So we will need to keep this in mind if someone wants to implement git submodule support. |
From @bburky on February 10, 2016 0:31 Because Deis is not multi-tenant, in practice Deis was unaffected. It might have been possible for code to be run while fetching a buildpack, but at that point the user is privileged and could just run arbitrary code within their app anyways. And slugbuilder is an isolated Docker container, so impact was minimal anyways. But the real lesson here is that please treat |
From @nailgun on November 18, 2016 16:25 Is there some workaround except not using submodules? |
From @bacongobbler on November 18, 2016 16:34 You could deploy your application using a Dockerfile or through |
From @nailgun on November 18, 2016 17:24 Thanks. Didn't know about |
From @bacongobbler on November 18, 2016 17:28
|
From @nailgun on November 18, 2016 17:42 Ah. I thought it is some pull mode for builder, instead of push. Actually Dockerfile approach negates the most beautiful part of Deis... |
From @nailgun on November 22, 2016 15:49 I've ended up with using git subtrees instead of submodules. |
This issue was moved to teamhephy/builder#23 |
From @azurewraith on June 2, 2014 20:18
I attempted to reproduce some Heroku'esque workflow involving a vendored Redmine plugin and found this:
https://devcenter.heroku.com/articles/git-submodules
90% sure it probably wouldn't have worked for me because git submodules are a PITA but it seems like Heroku handles this in their post-receive hook before delegating to the buildpack...
Copied from original issue: deis/deis#1094
The text was updated successfully, but these errors were encountered: