Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nice-gradle-config
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nice.base
nice-gradle-config
Commits
78c7bc49
Commit
78c7bc49
authored
Jun 08, 2019
by
ziy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整docker 镜像注册
parent
10389ec8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
29 deletions
+1
-29
docker-nice-bz-m.gradle
docker-nice-bz-m.gradle
+0
-21
docker-nice-bz.gradle
docker-nice-bz.gradle
+1
-1
spring-boot-mini-web.gradle
spring-boot-mini-web.gradle
+0
-7
No files found.
docker-nice-bz-m.gradle
deleted
100644 → 0
View file @
10389ec8
buildscript
{
repositories
{
maven
{
url
"https://maven.aliyun.com/repository/central"
}
maven
{
url
"https://plugins.gradle.org/m2/"
}
mavenCentral
()
}
dependencies
{
classpath
(
'gradle.plugin.com.palantir.gradle.docker:gradle-docker:0.21.0'
)
}
}
apply
plugin:
com
.
palantir
.
gradle
.
docker
.
PalantirDockerPlugin
def
registryAddress
=
project
.
getProperties
().
get
(
'isProd'
)
==
"prod"
?
'172.18.0.183:5000'
:
'172.16.22.3:5000'
docker
{
dependsOn
build
name
"${registryAddress}/${jar.baseName}"
files
jar
.
archivePath
buildArgs
([
'JAR_FILE'
:
"${jar.archiveName}"
])
noCache
true
}
\ No newline at end of file
docker-nice-bz.gradle
View file @
78c7bc49
...
...
@@ -10,7 +10,7 @@ buildscript {
}
apply
plugin:
com
.
palantir
.
gradle
.
docker
.
PalantirDockerPlugin
def
registryAddress
=
project
.
getProperties
().
get
(
'isProd'
)
==
"prod"
?
'172.18.0.18
0
:5000'
:
'172.16.22.3:5000'
def
registryAddress
=
project
.
getProperties
().
get
(
'isProd'
)
==
"prod"
?
'172.18.0.18
7
:5000'
:
'172.16.22.3:5000'
docker
{
dependsOn
build
...
...
spring-boot-mini-web.gradle
deleted
100644 → 0
View file @
10389ec8
configurations
{
compile
.
exclude
module:
"spring-boot-starter-tomcat"
}
dependencies
{
implementation
'org.springframework.boot:spring-boot-starter-web'
implementation
'org.springframework.boot:spring-boot-starter-undertow'
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment