Skip to content

Releases: darshkpatel/django-ngspice-simulator

MVP Release including execution script for containers

25 Feb 12:47
Compare
Choose a tag to compare

Initial release, Waiting for feedback for further improvements

Execution Instructions

  1. Clone the repo and install docker-compose and docker
  2. sudo docker-compose -f docker-compose.prod.yml build this builds necessary docker containers. (It'll take a while, grab some coffee :D)
  • To create necessary tables in the DB and generate static files and build run the following commands( need to be run only once during the initial execution)
  1. sudo docker-compose -f docker-compose.prod.yml run --rm django ./manage.py collectstatic --noinput
  2. sudo docker-compose -f docker-compose.prod.yml run --rm django ./manage.py migrate --noinput
  • To finally run the servers use the following command, you can modify the scale parameters to create more containers for load balancing.
  1. sudo docker-compose -f docker-compose.prod.yml up --scale django=2 --scale celery=3

  2. Browse to http://localhost:8000

Alternate execution instructions ( please make sure docker-compose is installed )

chmod +x first_run.sh && ./first_run.sh

Please view README.md for details documentation