Makefile 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. #
  2. # Copyright 2016-present the original author or authors.
  3. #
  4. # Licensed under the Apache License, Version 2.0 (the "License");
  5. # you may not use this file except in compliance with the License.
  6. # You may obtain a copy of the License at
  7. #
  8. # https://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. #
  16. # tip:
  17. # make -f ./Makefile dev
  18. # make -f ./Makefile deploy
  19. # make -f ./Makefile package
  20. # make -f ./Makefile clean
  21. .PHONY: build clean
  22. help:
  23. echo 'You can use make to execute the following commands:' \
  24. && echo 'Usage: make [clean | package | deploy | dev | tag]' \
  25. && echo ' - make demo: build & push demo images' \
  26. && echo ' - make dev: run local development environment' \
  27. && echo ' - make clean: mvn clean' \
  28. && echo ' - make package: mvn package' \
  29. && echo ' - make build: build images' \
  30. && echo ' - make deploy.N: mvn deploy N' \
  31. && echo ' - make tag: git tag' \
  32. demo:
  33. mvn clean package \
  34. && cd dc3 \
  35. && docker-compose -f docker-compose-demo.yml build \
  36. && docker-compose -f docker-compose-demo.yml push \
  37. dev:
  38. cd dc3 \
  39. && docker-compose -f docker-compose-dev.yml up -d \
  40. clean:
  41. mvn clean \
  42. package:
  43. mvn package \
  44. build:
  45. mvn clean package \
  46. && cd dc3 \
  47. && docker-compose build \
  48. deploy.api:
  49. cd dc3-api \
  50. && mvn clean deploy \
  51. deploy.common:
  52. cd dc3-common \
  53. && mvn clean deploy \
  54. deploy.sdk:
  55. cd dc3-driver-sdk \
  56. && mvn clean deploy \