--
You received this message because you are subscribed to the Google Groups "Camlistore" group.
To unsubscribe from this group and stop receiving emails from it, send an email to camlistore+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi! Long time gopher first time keeper.
I wanted to run Perkeep on my NAS (intel based QNAP), which supports Linux containers. Unfortunately, I found that the official Perkeep Docker builds are focused on integration tests and would be hard to setup as an automated build on hub.docker.com.
Thus, I created a new multi-stage Docker build, plus a bit of bash and Go to create the initial server-config.json and PGP key -- making it easy for people to get started. For those that aren't aware, multi-stage means that perkeep is built inside one container with all the compiler tools, then installed into a much smaller one. The final image is about 44MB.
I'd appreciate it if folks could sanity check both the Dockerfile and the template I'm using for the server-config.json. I'm not clear on if Perkeep benefits from dependencies beyond libjpeg-turbo-utils, please let me know if there is any others I should add.If you'd like to try the image out for yourself without building it, it's available at https://hub.docker.com/r/jhillyerd/perkeep/ Currently both :stable and :latest tags fetch Perkeep 2017-05-05, but I plan to move :latest to a newer version in the future. Github repo: https://github.com/jhillyerd/perkeep-dockerHappy to contribute any/all back to the official project if people find it useful.-james
--
Hi Mathieu, I did play around with misc/docker/server a bit, I remember having some trouble with the build process until I figured out I needed to move perkeep into my GOPATH for dock.go to work.
IMHO, some of the benefits of my Docker build:
- Builds entirely within a Docker container, no local Go or perkeep build environment required
- This makes the build more deterministic and documented
- The build compatible with hub.docker.com automated builds
- Docker hub means anybody can 'docker pull jhillyerd/perkeep', they don't need to build it themselves
- New Perkeep users setting up a NAS may not have access to a docker environment
- Build logs are available along with the Dockerfile that produced them, so you know what you are getting.
- The resulting image is a bit more user friendly, exporting distinct /config and /storage volumes that work out of the box