File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
imagetool/src/test/java/com/oracle/weblogic/imagetool/integration Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -94,13 +94,11 @@ protected static void cleanup() throws Exception {
94
94
command = "mkdir " + wlsImgCacheDir ;
95
95
executeNoVerify (command );
96
96
97
- // clean up the docker images
98
- command = "docker stop " + dbContainerName ;
97
+ // clean up the db container
98
+ command = "docker rm -f -v " + dbContainerName ;
99
99
executeNoVerify (command );
100
- // command = "docker rmi -f " + BASE_OS_IMG + ":" + BASE_OS_IMG_TAG + " " + ORACLE_DB_IMG + ":"
101
- // + ORACLE_DB_IMG_TAG;
102
- // executeNoVerify(command);
103
100
101
+ // clean up the images created in the tests
104
102
command = "docker rmi -f $(docker images | grep " + build_tag + " | tr -s ' ' | cut -d ' ' -f 3)" ;
105
103
executeNoVerify (command );
106
104
@@ -269,6 +267,7 @@ protected void createDBContainer() throws Exception {
269
267
command = "docker run -d --name " + dbContainerName + " --env=\" DB_PDB=InfraPDB1\" "
270
268
+ " --env=\" DB_DOMAIN=us.oracle.com\" --env=\" DB_BUNDLE=basic\" " + ORACLE_DB_IMG + ":"
271
269
+ ORACLE_DB_IMG_TAG ;
270
+ logger .info ("executing command: " + command );
272
271
ExecCommand .exec (command );
273
272
274
273
// wait for the db is ready
You can’t perform that action at this time.
0 commit comments