thecartercenter / nemo

NEMO is a mobile data collection and analysis web application.
https://getnemo.org
Apache License 2.0
60 stars 63 forks source link

Docker images / docker-compose script? #865

Open poVoq opened 2 years ago

poVoq commented 2 years ago

Would be nice if there was an easy to use Docker image for testing and deployment.

cooperka commented 2 years ago

Thanks @poVoq, we have been thinking about this ourselves, unfortunately Docker doesn't really improve our workflow very much because we separately manage each machine and installing NEMO is only a small part of the machine provisioning process.

If you want to submit a well-documented pull request with a docker-compose script, I will happily review it!

bananabrann commented 2 years ago

@poVoq have you started any work on this? I was thinking about writing a Dockerfile or at least a shell script.

poVoq commented 2 years ago

Sorry, I am currently testing another system called Form Share.

bananabrann commented 2 years ago

Okay thanks, I might take a look then @poVoq

poVoq commented 1 week ago

I started working on this again. So far I got a container to build correctly, but I need to actually test it.

Any reason Enketo isn't on the latest version from NPM?

The current pinned versions requires Nodejs-16, while the ruby-3.3.3-slim base Debian containers have NodeJS-18 in the repos. The latest enketo-core and enketo-transformer seem to be fine with NodeJS-18 (and so are all the other current dependencies it seems).

Edit: with the delayed job stuff being difficult to do without making an entire different worker container I decided put it on hold again. Didn't realize this was a requirement before.

cooperka commented 1 week ago

yes it's quite a complex system to configure 😓

regarding Enketo and Node, we are currently in the process of upgrading it alongside a series of other dependencies and that should be completed in the coming weeks.