build_docker.gradle 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. buildscript {
  2. repositories {
  3. maven { url 'https://maven.aliyun.com/nexus/content/groups/public/'}
  4. }
  5. }
  6. //docker
  7. plugins {
  8. id 'java'
  9. id 'com.google.cloud.tools.jib' version "${jibGradlePluginVersion}"
  10. id 'org.springframework.boot' version "${springBootVersion}"
  11. }
  12. apply plugin: 'com.google.cloud.tools.jib'
  13. description = "maxkey-web-mgt"
  14. jib {
  15. from {
  16. image = "${jibFromImage}"
  17. }
  18. to {
  19. //https://registry.hub.docker.com/repository/docker/maxkeytop/maxkey-mgt
  20. image = "${jibToImage}/maxkey-mgt"
  21. tags = ["${project.version}".toString(), 'latest']
  22. auth {
  23. username = "${jibToAuthUsername}"
  24. password = "${jibToAuthPassword}"
  25. }
  26. }
  27. container {
  28. mainClass = "org.maxkey.MaxKeyMgtApplication"
  29. jvmFlags = ['-Dfile.encoding=utf-8', '-Dserver.port=9526','-Duser.timezone=Asia/Shanghai']
  30. ports = ['9526']
  31. }
  32. }
  33. //build.configure { finalizedBy jib }
  34. dependencies {
  35. implementation project(":maxkey-common")
  36. implementation project(":maxkey-core")
  37. implementation project(":maxkey-persistence")
  38. implementation project(":maxkey-authentications:maxkey-authentication-core")
  39. implementation project(":maxkey-authentications:maxkey-authentication-captcha")
  40. implementation project(":maxkey-authentications:maxkey-authentication-otp")
  41. implementation project(":maxkey-authentications:maxkey-authentication-provider")
  42. implementation project(":maxkey-authentications:maxkey-authentication-sms")
  43. implementation project(":maxkey-protocols:maxkey-protocol-oauth-2.0")
  44. implementation project(":maxkey-protocols:maxkey-protocol-saml-2.0")
  45. //webapis
  46. implementation project(":maxkey-web-apis:maxkey-web-api-scim")
  47. implementation project(":maxkey-web-apis:maxkey-web-api-rest")
  48. //synchronizers
  49. implementation project(":maxkey-synchronizers:maxkey-synchronizer")
  50. implementation project(":maxkey-synchronizers:maxkey-synchronizer-activedirectory")
  51. implementation project(":maxkey-synchronizers:maxkey-synchronizer-feishu")
  52. implementation project(":maxkey-synchronizers:maxkey-synchronizer-jdbc")
  53. implementation project(":maxkey-synchronizers:maxkey-synchronizer-ldap")
  54. implementation project(":maxkey-synchronizers:maxkey-synchronizer-workweixin")
  55. implementation project(":maxkey-synchronizers:maxkey-synchronizer-dingtalk")
  56. }