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
9f86ae76
Commit
9f86ae76
authored
Apr 17, 2019
by
gaoxu
😵
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add new file
parent
411f50b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
docker-jib.gradle
docker-jib.gradle
+23
-0
No files found.
docker-jib.gradle
0 → 100644
View file @
9f86ae76
buildscript
{
repositories
{
maven
{
url
"https://maven.aliyun.com/repository/central"
}
maven
{
url
"https://plugins.gradle.org/m2/"
}
mavenCentral
()
}
dependencies
{
classpath
"gradle.plugin.com.google.cloud.tools:jib-gradle-plugin:1.1.1"
}
}
#
apply
plugin:
com
.
google
.
cloud
.
tools
.
jib
.
gradle
.
JibPlugin
apply
plugin:
com
.
google
.
cloud
.
tools
.
jib
def
registryAddress
=
project
.
getProperties
().
get
(
'isProd'
)
==
"prod"
?
'172.17.200.123:5000'
:
'172.16.22.5:5000'
jib
{
from
{
image
=
'an0nymous/openjdk8-openj9:slim'
}
to
{
image
=
"${registryAddress}/${project.group}-${jar.baseName}"
}
allowInsecureRegistries
=
true
}
\ 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