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
4b6df014
Commit
4b6df014
authored
Mar 25, 2016
by
Benedikt Ritter
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4 from britter/read-port-from-metadata
Read exposed port from image meta data using docker inspect
parents
fd68919d
03363c8f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
run
test/run
+2
-2
No files found.
test/run
View file @
4b6df014
...
...
@@ -22,8 +22,8 @@ cid_file=$(mktemp -u --suffix=.cid)
# it from Docker hub
s2i_args
=
"--force-pull=false"
#
TODO: This should be part of the image meta
data
test_port
=
8080
#
Read exposed port from image meta
data
test_port
=
"
$(
docker inspect
--format
=
'{{range $key, $value := .ContainerConfig.ExposedPorts }}{{$key}}{{end}}'
${
IMAGE_NAME
}
| sed
's/\/.*//'
)
"
info
()
{
echo
-e
"
\n\e
[1m[INFO]
$@
...
\e
[0m
\n
"
...
...
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