Makefile 1.4 KB

1234567891011121314151617181920212223
  1. PHONY: all
  2. run_with_docker:
  3. docker-compose -f compose/karmen/docker-compose.yml down
  4. docker-compose -f compose/karmen/docker-compose.yml up --build -d
  5. echo "Uploading files to the cloud..."
  6. sleep 15
  7. curl -u admin:password http://localhost:8080/remote.php/webdav/Documents/List -X MKCOL
  8. curl -u admin:password http://localhost:8080/remote.php/webdav/Documents/List/list.tpl.md -X PUT --data-binary @"./generator/generators/list/example_1/resources/list.tpl.md"
  9. curl -u admin:password http://localhost:8080/remote.php/webdav/Documents/List/reference.odt -X PUT --data-binary @"./generator/generators/list/example_1/resources/reference.odt"
  10. curl -u admin:password http://localhost:8080/remote.php/webdav/Documents/Department -X MKCOL
  11. curl -u admin:password http://localhost:8080/remote.php/webdav/Documents/Department/template.md -X PUT --data-binary @"./generator/generators/department/example_1/resources/template.md"
  12. curl -u admin:password http://localhost:8080/remote.php/webdav/Documents/Department/reference.odt -X PUT --data-binary @"./generator/generators/department/example_1/resources/reference.odt"
  13. run_outside_docker:
  14. killall main || echo "Process was not running."
  15. docker-compose -f compose/karmen/docker-compose_outside_docker.yml down
  16. docker-compose -f compose/karmen/docker-compose_outside_docker.yml up -d db
  17. go run main.go --config=config/config_outside_docker.yaml &
  18. all: run_with_docker