You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
939 B

  1. init:
  2. @bash docker/ "Start"
  3. make start
  4. setup: stop
  5. @bash docker/ "Compiling everything"
  6. docker-compose run --rm api bash -c 'mix deps.get; yarn --cwd "js"; yarn --cwd "js" build:pictures; mix ecto.create; mix ecto.migrate'
  7. migrate:
  8. docker-compose run --rm api mix ecto.migrate
  9. logs:
  10. docker-compose logs -f
  11. start: stop
  12. @bash docker/ "Starting Mobilizon with Docker"
  13. docker-compose up -d api
  14. @bash docker/ "Docker server started"
  15. stop:
  16. @bash docker/ "Stopping Mobilizon"
  17. docker-compose down
  18. @bash docker/ "Mobilizon is stopped"
  19. test: stop
  20. @bash docker/ "Running tests"
  21. docker-compose -f docker-compose.yml -f docker-compose.test.yml run api mix test $(only)
  22. @bash docker/ "Done running tests"
  23. format:
  24. docker-compose run --rm api bash -c "mix format && mix credo --strict"
  25. @bash docker/ "Code is now ready to commit :)"
  26. target: init