Docker config issues

Issue #1227 resolved
Marcus Hellsten created an issue

I’m trying to get Piler up and running with Docker for home purposes. The startup script seems to have some issues:

  • It doesn’t copy the default config into /etc/piler. I copied the contents manually from the etc folder into the mounted volume, and that fixed some of the issues.
  • There’s no nginx config file, so I copied that from the contrib folder and renamed with “.dist” extension
  • There’s no sphinx.conf file. I renamed sphinx.conf.in to sphinx.conf.
  • LOCALSTATEDIR isn’t set in sphinx.conf. I set it to /var and created /var/piler/sphinx on the volume.
  • After all that, Piler starts up without errors, but when I go to the site, I get a 404: GET / HTTP/1.1" 404. It seems like /etc/nginx hasn’t been set up.

Am I close or should I give up and stand up a dedicated VM for this?

BTW, I’m running this in Kubernetes with the data directory hosted on a NAS and mounted via NFS. That makes all the chown/chmod magic impractical. I commented that out of the startup script and rebuilt the image.

Comments (3)

  1. Janos SUTO repo owner

    I’m not sure what you did, but when you actually install piler, then all required files and directories are made.

  2. Marcus Hellsten reporter

    You’re right. This is a difference Docker volumes and Kubernetes volumes. Mounting volumes at /etc/piler and /var/piler in Kubernetes hides the existing content. Copying the files over from a plain Docker container fixed the problem. For Kubernetes users, it’d be easier if the container copied the default config onto the volumes as part of startup, if it’s not already there. Thank you!

  3. Log in to comment