Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
springboot-maven3-centos
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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
luiz.nunes
springboot-maven3-centos
Commits
231576c9
Unverified
Commit
231576c9
authored
Apr 27, 2018
by
Benedikt Ritter
Committed by
GitHub
Apr 27, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #10 from FMAOuroboros/master
Run standalone jar or war instead of jar only
parents
c6014f4d
980c9c94
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
6 deletions
+7
-6
.gitignore
.gitignore
+2
-2
.travis.yml
.travis.yml
+1
-1
run
s2i/bin/run
+3
-2
run
test/run
+1
-1
No files found.
.gitignore
View file @
231576c9
...
@@ -6,5 +6,4 @@ pom.xml.releaseBackup
...
@@ -6,5 +6,4 @@ pom.xml.releaseBackup
pom.xml.versionsBackup
pom.xml.versionsBackup
pom.xml.next
pom.xml.next
release.properties
release.properties
.idea
\ No newline at end of file
.travis.yml
View file @
231576c9
...
@@ -5,7 +5,7 @@ services:
...
@@ -5,7 +5,7 @@ services:
language
:
go
language
:
go
go
:
1.
6
go
:
1.
7.x
install
:
install
:
-
go get github.com/openshift/source-to-image
-
go get github.com/openshift/source-to-image
...
...
s2i/bin/run
View file @
231576c9
...
@@ -6,5 +6,5 @@ APP_TARGET=${APP_TARGET:-target}
...
@@ -6,5 +6,5 @@ APP_TARGET=${APP_TARGET:-target}
echo
"---> Starting Spring Boot application"
echo
"---> Starting Spring Boot application"
echo
"--> # APP_TARGET =
$APP_TARGET
"
echo
"--> # APP_TARGET =
$APP_TARGET
"
echo
"--> # JAVA_OPTS =
$JAVA_OPTS
"
echo
"--> # JAVA_OPTS =
$JAVA_OPTS
"
echo
"---> Running application from
jar (
$(
find
$APP_TARGET
-name
*
.jar
)
)
..."
echo
"---> Running application from
standalone jar/war
..."
java
$JAVA_OPTS
-jar
`
find
$APP_TARGET
-
name
*
.jar
`
java
$JAVA_OPTS
-jar
`
find
$APP_TARGET
-
maxdepth
1
-regex
".*
\(
jar
\|
war
\)
"
`
\ No newline at end of file
test/run
View file @
231576c9
...
@@ -28,7 +28,7 @@ cid_file=$($MKTEMP_EXEC -u --suffix=.cid)
...
@@ -28,7 +28,7 @@ cid_file=$($MKTEMP_EXEC -u --suffix=.cid)
# Since we built the candidate image locally, we don't want S2I to attempt to pull
# Since we built the candidate image locally, we don't want S2I to attempt to pull
# it from Docker hub
# it from Docker hub
s2i_args
=
"--
force-pull=false
--loglevel=2"
s2i_args
=
"--
pull-policy=never
--loglevel=2"
# Read exposed port from image meta data
# Read exposed port from image meta data
test_port
=
"
$(
docker inspect
--format
=
'{{range $key, $value := .ContainerConfig.ExposedPorts }}{{$key}}{{end}}'
${
IMAGE_NAME
}
| sed
's/\/.*//'
)
"
test_port
=
"
$(
docker inspect
--format
=
'{{range $key, $value := .ContainerConfig.ExposedPorts }}{{$key}}{{end}}'
${
IMAGE_NAME
}
| sed
's/\/.*//'
)
"
...
...
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