I tried following the docker setup guide on my macbook and almost immediately ran into trouble.
There were a few things going on:
- Docker changed how it works with virtualbox and docker-machine
- macOS prevents even sudo from creating /allura-data
- A recent upgrade of the gunicorn
package to v20.x.x broke the [server:main]
configs in our *.ini files.
I have created a branch which fixes these things and hopes to clarify a few points in the docs.
dw/8399
p.s. the werkzeug package is due for an upgrade, so I'm doing that here and testing that it works on a local deployment.
Diff:
Diff:
Hmm, since this ticket changes the default location of where the allura data lives, this could break existing deployments that choose to upgrade.
It would be nice to address this somehow, but I'm not sure how. These proposed changes are definitely a step above and required for a macos deployment, so we definitely want them, but we don't want to confuse/annoy loyal allura-ites.
Diff:
On an older docker setup where I was using virtualbox and have my home directories shared (and allura is in my home dir) then running with
./allura-data
as a local path now causes this mongo error:I think its because mongodb directories need certain permissions or abilities that don't work with the vbox shared mount. Workaround is to set
LOCAL_SHARED_DATA_ROOT
to an absolute path like it used to be.