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

Consider disabling automatic Procfile lookup for deis pull #307

Open
felixbuenemann opened this issue Jun 1, 2017 · 2 comments
Open

Consider disabling automatic Procfile lookup for deis pull #307

felixbuenemann opened this issue Jun 1, 2017 · 2 comments

Comments

@felixbuenemann
Copy link
Contributor

Currently the deis workflow cli looks for a Procfile in the pwd and uses it to declare proc types when doing a deis pull.

This feature is very error prone, because it can happen very easily that one does a deis create foo --no-remote followed by deis pull while in the git worktree of another workflow app "bar", eg. a rails app with buildpack deploy and a Procfile.

If one makes this error, deis will create the new app "foo", but it wil use the bogus Procfile to setup a "web" process type along with wrong labels on the "foo"-service which will cause routing to be broken. The app will also not start because the "web" proc type is scaled to 1 and cmd to 0.

To fix such an app, one has to manually scale up cmd and scale down web, edit the deis database to remove the bogus proctype and edit the "foo"-service selector to point to the "cmd" type.

In short it is a major pain to fix for a feature that is probably very rarely used and it is hard to even know what caused this without in-depth knowledge of deis workflow and kubernetes.

I propose to instead change the behavior of the --procfile switch to accept either a string or a path to a procfile and remove the automatic lookup for a Procfile in the pwd.

@vdice vdice added this to the v2.16 milestone Jun 1, 2017
@felixbuenemann
Copy link
Contributor Author

If this gets changed the docs for Declaring Process Types need to be updated.

@mboersma mboersma removed this from the v2.16 milestone Jul 6, 2017
@Cryptophobia
Copy link

This issue was moved to teamhephy/workflow-cli#5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants