Files
MaxKey/maxkey-webs/maxkey-web-maxkey/config/build_docker.gradle

76 lines
2.2 KiB
Groovy
Raw Normal View History

buildscript {
repositories {
2021-09-08 22:27:59 +08:00
maven { url 'https://maven.aliyun.com/nexus/content/groups/public/'}
}
}
plugins {
id 'java'
id 'com.google.cloud.tools.jib' version "${jibGradlePluginVersion}"
id 'org.springframework.boot' version "${springBootVersion}"
}
apply plugin: 'com.google.cloud.tools.jib'
description = "maxkey-web-maxkey"
//docker
jib {
from {
2021-09-08 22:27:59 +08:00
image = "${jibFromImage}"
platforms {
platform {
architecture = 'amd64'
os = 'linux'
}
platform {
architecture = 'arm64'
os = 'linux'
}
}
}
to {
//https://registry.hub.docker.com/repository/docker/maxkeytop/maxkey
2021-09-08 22:27:59 +08:00
image = "${jibToImage}/maxkey"
tags = ["${project.version}".toString(), 'latest']
auth {
2021-09-08 22:27:59 +08:00
username = "${jibToAuthUsername}"
password = "${jibToAuthPassword}"
}
}
container {
2023-09-03 19:59:14 +08:00
mainClass = "org.dromara.maxkey.MaxKeyApplication"
2022-05-06 08:50:50 +08:00
jvmFlags = ['-Dfile.encoding=utf-8', '-Dserver.port=9527','-Duser.timezone=Asia/Shanghai']
ports = ['9527']
}
}
2021-09-08 22:27:59 +08:00
//build.configure { finalizedBy jib }
dependencies {
2021-04-17 09:44:10 +08:00
implementation project(":maxkey-common")
implementation project(":maxkey-core")
implementation project(":maxkey-persistence")
2024-07-19 16:46:19 +08:00
implementation project(":maxkey-starter:maxkey-starter-captcha")
implementation project(":maxkey-starter:maxkey-starter-ip2location")
implementation project(":maxkey-starter:maxkey-starter-otp")
implementation project(":maxkey-starter:maxkey-starter-sms")
implementation project(":maxkey-starter:maxkey-starter-social")
2024-07-19 16:46:19 +08:00
implementation project(":maxkey-starter:maxkey-starter-web")
2021-04-17 09:44:10 +08:00
implementation project(":maxkey-authentications:maxkey-authentication-core")
implementation project(":maxkey-authentications:maxkey-authentication-provider")
2024-07-19 16:46:19 +08:00
2021-04-17 09:44:10 +08:00
implementation project(":maxkey-protocols:maxkey-protocol-authorize")
implementation project(":maxkey-protocols:maxkey-protocol-cas")
implementation project(":maxkey-protocols:maxkey-protocol-extendapi")
implementation project(":maxkey-protocols:maxkey-protocol-formbased")
implementation project(":maxkey-protocols:maxkey-protocol-tokenbased")
implementation project(":maxkey-protocols:maxkey-protocol-oauth-2.0")
implementation project(":maxkey-protocols:maxkey-protocol-saml-2.0")
implementation project(":maxkey-protocols:maxkey-protocol-jwt")
}