rlister / chef-dokku-simple

Chef cookbook for installing dokku using the default bootstrap script.
3 stars 7 forks source link

Dokku installation fails #2

Closed jimeh closed 9 years ago

jimeh commented 9 years ago

During first run when the bootstrap.sh script runs, it just ends up dying with printing apt-get install output. I believe it's caused by the interactive wizard that the dokku deb package pops up asking about web/console setup.

For the time being I just ran the bootstrap.sh script manually, after which the cookbook works fine to managing SSH keys, plugins etc.

I'm not sure how to solve this myself, as the bootstrap.sh script already passes in -qq to apt-get and sets DEBIAN_FRONTEND to noninteractive.

jimeh commented 9 years ago

I should probably point out that I'm using v0.3.22, which uses a debian package to install itself (since v0.3.13) rather than being installed from source.

jimeh commented 9 years ago

I just did a bit of digging and came across info about unattended installation in the dokku docs. When I have some time I'll take a stab at making the necessary changes to get the installation working via the package method :)

rlister commented 9 years ago

@jimeh that would be awesome

jimeh commented 9 years ago

Tonight I got a first attempt/hack of it seemingly working. I just need to clean up the code a bit, and test it a bit further. So I should have a PR ready for you within a couple of days if real life doesn't get in the way too much... lol

rlister commented 9 years ago

Real life ... prevents so much good coding!

jimeh commented 9 years ago

Cleaned up the code a bit, but I'm having issues with upgrading dokku. It's looking like it's related to dokku rather this cookbook though, specifically it's post-install script seems to fail when reading debconf settings.

I've reported the issue at progrium/dokku#1387 and gonna dig deeper in the coming days. My current changes are here if you're curious.

rlister commented 9 years ago

@jimeh Thanks for looking into this, changes look good so far. I've made you a collaborator on the project, so feel free to push fixes :-)

jimeh commented 9 years ago

@rlister Oh, sweet, thanks :)

jimeh commented 9 years ago

Ok, the upgrading issue actually boils down to plugins with a install hook which calls apt-get. Since the plugin management part is important, I'm planning to have the cookbook remove all plugins that are configured before performing an upgrade to dokku, and then letting them be reinstalled the usual way again.

jimeh commented 9 years ago

Fixed by #4.