Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
public
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
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
Java-于龙
public
Commits
1f451914
Commit
1f451914
authored
Oct 30, 2017
by
Java-于龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add new file
parent
d73fa7f1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
100 additions
and
0 deletions
+100
-0
springboot-s2i-template.json
openshift-origin/templates/springboot-s2i-template.json
+100
-0
No files found.
openshift-origin/templates/springboot-s2i-template.json
0 → 100644
View file @
1f451914
{
"kind"
:
"Template"
,
"apiVersion"
:
"v1"
,
"metadata"
:
{
"name"
:
"springboot-s2i-template"
,
"annotations"
:
{
"iconClass"
:
"icon-openjdk"
,
"description"
:
"Template to create springboot-s2i builder image"
}
},
"labels"
:
{
"app"
:
"springboot-s2i"
,
"application"
:
"springboot-s2i"
},
"parameters"
:
[
{
"description"
:
"Name"
,
"name"
:
"APPLICATION_NAME"
,
"value"
:
"springboot-s2i"
},
{
"description"
:
"Version"
,
"name"
:
"JAVA_VERSION_PARAM"
,
"value"
:
"1.8.0_131"
},
{
"description"
:
"Base Image"
,
"name"
:
"BASE_IMAGE"
,
"value"
:
"base-centos7:latest"
},
{
"name"
:
"SOURCE_REPOSITORY_URL"
,
"displayName"
:
"Source Repository URL"
,
"description"
:
"The URL pointing to the repo where the DockerFile exists"
,
"value"
:
"https://github.com/veretie/openshift-springboot-s2i.git"
,
"required"
:
true
}
],
"objects"
:
[
{
"kind"
:
"BuildConfig"
,
"apiVersion"
:
"v1"
,
"metadata"
:
{
"name"
:
"${APPLICATION_NAME}"
},
"spec"
:
{
"triggers"
:
[
{
"type"
:
"ConfigChange"
}
],
"source"
:
{
"type"
:
"Git"
,
"git"
:
{
"uri"
:
"${SOURCE_REPOSITORY_URL}"
,
"ref"
:
"master"
}
},
"strategy"
:
{
"type"
:
"Docker"
,
"dockerStrategy"
:
{
"from"
:
{
"kind"
:
"ImageStreamTag"
,
"namespace"
:
"openshift"
,
"name"
:
"${BASE_IMAGE}"
}
}
},
"output"
:
{
"to"
:
{
"kind"
:
"ImageStreamTag"
,
"name"
:
"${APPLICATION_NAME}:${JAVA_VERSION_PARAM}"
}
}
}
},
{
"kind"
:
"ImageStream"
,
"apiVersion"
:
"v1"
,
"metadata"
:
{
"name"
:
"${APPLICATION_NAME}"
},
"spec"
:
{
"tags"
:
[
{
"name"
:
"${JAVA_VERSION_PARAM}"
,
"annotations"
:
{
"description"
:
"Java Source to Image for springboot apps"
,
"iconClass"
:
"icon-openjdk"
,
"sampleRepo"
:
"https://github.com/veretie/prime-numbers.git"
,
"supports"
:
"java:8"
,
"tags"
:
"builder,javas2i,java"
}
}
]
}
}
]
}
\ 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