Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
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
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
DEMO
spring-boot
Commits
2641fe8f
Commit
2641fe8f
authored
Feb 16, 2016
by
Vedran Pavic
Committed by
Andy Wilkinson
Feb 24, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tag Docker images created by launch script integration tests
Closes gh-5168
parent
b061aa5d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
README.adoc
...gration-tests/spring-boot-launch-script-tests/README.adoc
+4
-3
SysVinitLaunchScriptIT.java
...ngframework/boot/launchscript/SysVinitLaunchScriptIT.java
+2
-1
No files found.
spring-boot-integration-tests/spring-boot-launch-script-tests/README.adoc
View file @
2641fe8f
...
...
@@ -65,11 +65,12 @@ $ mvn -Pdocker clean verify
The first time the tests are run, Docker will create the container images that are used to
run the tests. This can take several minutes, particularly if you have a slow network
connection. Subsequent runs will be faster as the images are cached locally. You can run
`docker images` to see a list of the cached images.
`docker images` to see a list of the cached images. Images created by these tests will be
tagged with `spring-boot-it` prefix to easily distinguish them.
== Cleaning up
If you want to reclaim the disk space used by the cached images (at the expense of having
to wait for them to be downloaded and rebuilt the next time you run the tests), you can
use `docker images` to list the images and `docker rmi <image>` to delete them. See
`docker rmi --help` for further details.
\ No newline at end of file
use `docker images` to list the images and `docker rmi <image>` to delete them (look for
`spring-boot-it` tag). See `docker rmi --help` for further details.
spring-boot-integration-tests/spring-boot-launch-script-tests/src/test/java/org/springframework/boot/launchscript/SysVinitLaunchScriptIT.java
View file @
2641fe8f
...
...
@@ -243,7 +243,8 @@ public class SysVinitLaunchScriptIT {
BuildImageResultCallback
resultCallback
=
new
BuildImageResultCallback
();
String
dockerfile
=
"src/test/resources/conf/"
+
this
.
os
+
"/"
+
this
.
version
+
"/Dockerfile"
;
docker
.
buildImageCmd
(
new
File
(
dockerfile
)).
exec
(
resultCallback
);
String
tag
=
"spring-boot-it/"
+
this
.
os
.
toLowerCase
()
+
":"
+
this
.
version
;
docker
.
buildImageCmd
(
new
File
(
dockerfile
)).
withTag
(
tag
).
exec
(
resultCallback
);
String
imageId
=
resultCallback
.
awaitImageId
();
return
imageId
;
}
...
...
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