macports-webapp icon indicating copy to clipboard operation
macports-webapp copied to clipboard

Create a standalone Docker container with fully functional app and some synthetic data

Open mojca opened this issue 4 years ago • 2 comments

I'm putting this idea up for discussion / brainstorming / thoughts.

If someone with little experience or little time would like to make some simple contributions to the application, it's currently somewhat non-trivial to set up and populate the database to get a demo app up and running quickly.

It seems to me that it would be extremely useful if users on any operating system could be able to quickly run a few commands (not having to bother with PostgreSQL and SOLR setup and administration on their main OS) and have the development environment ready with little effort, getting a fully functional app out of the box.

We probably overlooked the volumes functionality of Docker when we were first discussing how to set up the app two years ago: https://docs.docker.com/storage/volumes/

(This is something that might have been useful also for the main app, but we would certainly need it for this.)

We need to do two separate things to achieve this:

  • prepare Dockerfile and documentation (most important)
  • write a python script to populate the statistics data with some random data (less important and can be done any time later)

mojca avatar Jul 22 '21 06:07 mojca

I set the webapp up for the first time today and I really would have appreciated a docker-compose.yml that did a one-command setup. Both Solr and Postgres have official Docker images, so it's "just" a matter of orchestrating things properly.

amake avatar Mar 23 '22 09:03 amake

Fair point, a docker-compose can simplify local setup and development to a huge extent.

arjunsalyan avatar Mar 31 '22 06:03 arjunsalyan