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

Updates to support PHP on current dokku #2

Open
wants to merge 33 commits into
base: master
Choose a base branch
from

Conversation

drmikecrowe
Copy link

Does the following:

  1. Creates user dokku as uid/guid 1000 and runs server as this instead of nobody. This supports the very nice dokku-volume plugin, which mounts volumes as user dokku (uid/guid 1000). Otherwise, unable to write to persistent volumes
  2. Creates /root/bin prior to downloading/installing jq
  3. If adding nginx-include parameters, the following error occurs:

nginx: [emerg] could not build the types_hash, you should increase either types_hash_max_size

To resolve, adding types_hash_max_size 2048;

@bobmaerten
Copy link
Owner

Wooaah. Never thought that this repo would be spotted, nor forked and patched!
Thanks to propose your commits, I'll take a serious look at it.

@drmikecrowe
Copy link
Author

Haha, no doubt. Hopefully, mine will escape notice too.

However, I was trying to get a hefty PHP CMS package to run in dokku, and I couldn't get the CHH/heroku-buildpack-php to work either. I think (I was trying any buildpack I could find) yours was the closest to what I hoped to do, if I could get it running.

One of the things that drove me nuts is the cache directory I needed in my container. I couldn't get any script to create a web/tmp directory and make it 0777 permissions. I tried everything, and I don't know what I was missing. I finally had to put it in a persistent volume (which I actually don't really want) to get it to work. That's when I found the volumes all showed uid=1000 instead of root.

From what I could see, no PHP app could run in Dokku at this time, and I don't understand why it hasn't been addressed.

@bobmaerten
Copy link
Owner

I have to admit I quit early on the problems you exposed, and quite amazed
by the tricks you found.
I think everybody end up on the same level of "enlightenment": dokku does
not run PHP well, and try something else, like recent docker langage images.

2014-09-29 13:45 GMT+02:00 drmikecrowe [email protected]:

Haha, no doubt. Hopefully, mine will escape notice too.

However, I was trying to get a hefty PHP CMS package to run in dokku, and
I couldn't get the CHH/heroku-buildpack-php to work either. I think (I was
trying any buildpack I could find) yours was the closest to what I hoped to
do, if I could get it runnning.

One of the things that drove me nuts is the cache directory I needed in my
container. I tried everything, but couldn't get any script to create a
web/tmp directory and make it 0777 permissions. I tried everything, and I
don't know what I was missing. I finally had to put it in a persistent
volume (which I actually don't really want) to get it to work. That's when
I found the volumes all showed uid=1000 instead of root.

From what I could see, no PHP app could run in Dokku at this time, and I
don't understand why it hasn't been addressed.


Reply to this email directly or view it on GitHub
#2 (comment)
.

@drmikecrowe
Copy link
Author

I know, but I somehow keep coming back because it seems to really be the easiest solution for quick, single-instance deployment.

I've been looking for an alternative, but Flynn and Deis seem like overkill (though I may take a serious look a Deis).

Would you mind pointing me to the alternative you use? I'd like to check it out

@bobmaerten
Copy link
Owner

My alternatives are currently :

  • docker containers launched from custom image like docker-wallabag (source code mounted through a volume)
  • dedicated PHP VM updated with any kind of SCM workflow

An acquaintance of mine (ping @tclavier) owns and runs Deliverous maybe you could have a look to their repos, or try their services.

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

Successfully merging this pull request may close these issues.

2 participants