Skip to content

Commit 8867ab7

Browse files
committed
Merge branch 'main' into develop-v2
2 parents 16591b9 + cec163f commit 8867ab7

File tree

8 files changed

+41
-32
lines changed

8 files changed

+41
-32
lines changed

SECURITY.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@ security features are welcome on GitHub Issues.
2121

2222
Security updates will be released on a regular cadence. Many of our projects
2323
will typically release security fixes in conjunction with the
24-
[Oracle Critical Patch Update][3] program. Security updates are released on the
25-
Tuesday closest to the 17th day of January, April, July and October. A pre-release
26-
announcement will be published on the Thursday preceding each release. Additional
24+
[Oracle Critical Patch Update][3] program. Additional
2725
information, including past advisories, is available on our [security alerts][4]
2826
page.
2927

documentation/1.11/content/_index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ Use WebLogic Image Tool to create, update, and rebase the following FMW product
5757
* Fusion Middleware Infrastructure (FMW)
5858
* Oracle BPM Suite for business process (SOA)
5959
* Oracle Service Bus (OSB)
60-
* Oracle Analytics Server (OAS)
6160
* Oracle Data Integrator (ODI)
6261
* Oracle Access Management (OAM)
6362
* Oracle Identity Governance (OIG)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<p>Created with <i class="fas fa-heart"></i> from <a href="https://www.oracle.com">Oracle</a></p>
22
<p>&nbsp</p>
33
<p><a href="https://github.com/oracle/weblogic-image-tool"><i class="fab fa-github"></i> GitHub repo</a></p>
4-
<p><a href="https://join.slack.com/t/oracle-weblogic/shared_invite/zt-1lnz4kpci-WdY2gWfeJc5jS_a_1Z06MA"><i class="fab fa-slack"></i> Public Slack #weblogic</a></p>
4+
<p><a href="https://join.slack.com/t/oracle-weblogic/shared_invite/zt-1ni1gtjv6-PGC6CQ4uIte3KBdm_67~aQ"><i class="fab fa-slack"></i> Public Slack #weblogic</a></p>

imagetool/src/main/java/com/oracle/weblogic/imagetool/builder/BuildCommand.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
package com.oracle.weblogic.imagetool.builder;
55

66
import java.io.BufferedReader;
7-
import java.io.FileOutputStream;
87
import java.io.IOException;
98
import java.io.InputStream;
109
import java.io.InputStreamReader;
@@ -130,7 +129,7 @@ public BuildCommand pull(boolean value) {
130129
* @throws IOException if an error occurs reading from the process inputstream.
131130
* @throws InterruptedException when the process wait is interrupted.
132131
*/
133-
public BuildCommand run(Path dockerLog)
132+
public void run(Path dockerLog)
134133
throws IOException, InterruptedException {
135134
// process builder
136135
logger.entering(getCommand(false), dockerLog);
@@ -142,7 +141,7 @@ public BuildCommand run(Path dockerLog)
142141

143142
if (dockerLogPath != null) {
144143
logger.info("dockerLog: " + dockerLog);
145-
outputStreams.add(new FileOutputStream(dockerLogPath.toFile()));
144+
outputStreams.add(Files.newOutputStream(dockerLogPath));
146145
}
147146

148147
ProcessBuilder processBuilder = new ProcessBuilder(getCommand(true));
@@ -154,7 +153,6 @@ public BuildCommand run(Path dockerLog)
154153
if (process.waitFor() != 0) {
155154
Utils.processError(process);
156155
}
157-
return this;
158156
}
159157

160158
/**

imagetool/src/main/java/com/oracle/weblogic/imagetool/cli/menu/CommonOptions.java

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -237,16 +237,24 @@ public void copyOptionsFromImage() throws IOException, InterruptedException {
237237
/**
238238
* Delete build context directory and remove all intermediate build images.
239239
*
240-
* @throws IOException if an error occurs trying to delete the context directory files.
241240
* @throws InterruptedException when interrupted.
242241
*/
243-
public void cleanup() throws IOException, InterruptedException {
242+
public void cleanup() throws InterruptedException {
244243
if (skipcleanup) {
245244
return;
246245
}
247-
Utils.deleteFilesRecursively(buildDir());
246+
try {
247+
Utils.deleteFilesRecursively(buildDirectory);
248+
} catch (IOException e) {
249+
logger.severe("IMG-0080", buildDirectory);
250+
}
251+
248252
if (!dryRun) {
249-
Utils.removeIntermediateDockerImages(buildEngine, buildId());
253+
try {
254+
Utils.removeIntermediateDockerImages(buildEngine, buildId());
255+
} catch (IOException e) {
256+
logger.severe("IMG-0118", buildId());
257+
}
250258
}
251259
}
252260

imagetool/src/main/java/com/oracle/weblogic/imagetool/util/Utils.java

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -282,19 +282,24 @@ public static void processError(Process process) throws IOException {
282282
* @throws IOException in case of error
283283
*/
284284
public static void deleteFilesRecursively(String pathDir) throws IOException {
285-
if (pathDir != null) {
286-
Path tmpDir = Paths.get(pathDir);
287-
try (Stream<Path> walk = Files.walk(tmpDir)) {
288-
walk.sorted(Comparator.reverseOrder())
289-
.map(Path::toFile)
290-
//.peek(System.out::println)
291-
.forEach(File::delete);
292-
}
285+
logger.entering(pathDir);
286+
if (pathDir == null) {
287+
logger.exiting();
288+
return;
289+
}
293290

294-
if (Files.exists(tmpDir)) {
295-
logger.warning("IMG-0038", tmpDir);
296-
}
291+
Path tmpDir = Paths.get(pathDir);
292+
try (Stream<Path> walk = Files.walk(tmpDir)) {
293+
walk.sorted(Comparator.reverseOrder())
294+
.map(Path::toFile)
295+
//.peek(System.out::println)
296+
.forEach(File::delete);
297297
}
298+
299+
if (Files.exists(tmpDir)) {
300+
logger.warning("IMG-0038", tmpDir);
301+
}
302+
logger.exiting();
298303
}
299304

300305
/**

imagetool/src/main/resources/ImageTool.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ IMG-0076=Invalid argument, the value provided for {0} is invalid or empty.
7878
IMG-0077=Skipping duplicate patch {0}. Patch file already exists in the build context folder. Did you accidentally list the patch twice?
7979
IMG-0078=Starting build: {0}
8080
IMG-0079=OS Package Manager override, changed from {0} to {1}
81-
IMG-0080=NOT USED
81+
IMG-0080=Failed to clean up build context folder {0}
8282
IMG-0081=Unable to retrieve list of Oracle releases from Oracle Updates (ARU). Try again later.
8383
IMG-0082=Version {0} did not contain {1}, skipping
8484
IMG-0083=Version {0} for patch ID {1} was not found in the available versions: {2}
@@ -116,3 +116,4 @@ IMG-0114=Unable to parse section {0} of additionalBuildCommands: {1}
116116
IMG-0115=Unable to reach Oracle patch server to check for patch conflicts, skipping online conflict check. OPatch will check patches locally during the build.
117117
IMG-0116=A patch conflict was detected. The patches listed within the brackets conflict with each other. These fixes cannot be applied without a merge patch from Oracle:
118118
IMG-0117=The value for --sourceImage must not be empty.
119+
IMG-0118=Failed to clean up intermediate container images for build ID {0}

pom.xml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,18 +63,18 @@
6363
<dependency>
6464
<groupId>info.picocli</groupId>
6565
<artifactId>picocli</artifactId>
66-
<version>4.7.0</version>
66+
<version>4.7.1</version>
6767
</dependency>
6868
<dependency>
6969
<groupId>org.junit.jupiter</groupId>
7070
<artifactId>junit-jupiter-engine</artifactId>
71-
<version>5.9.1</version>
71+
<version>5.9.2</version>
7272
<scope>test</scope>
7373
</dependency>
7474
<dependency>
7575
<groupId>uk.org.webcompere</groupId>
7676
<artifactId>system-stubs-jupiter</artifactId>
77-
<version>2.0.1</version>
77+
<version>2.0.2</version>
7878
<scope>test</scope>
7979
</dependency>
8080
<dependency>
@@ -85,7 +85,7 @@
8585
<dependency>
8686
<groupId>org.jetbrains</groupId>
8787
<artifactId>annotations</artifactId>
88-
<version>23.1.0</version>
88+
<version>24.0.0</version>
8989
</dependency>
9090
<dependency>
9191
<groupId>org.yaml</groupId>
@@ -214,7 +214,7 @@
214214
<plugin>
215215
<groupId>org.apache.maven.plugins</groupId>
216216
<artifactId>maven-checkstyle-plugin</artifactId>
217-
<version>3.2.0</version>
217+
<version>3.2.1</version>
218218
<executions>
219219
<execution>
220220
<id>checkstyle</id>
@@ -241,7 +241,7 @@
241241
<dependency>
242242
<groupId>com.puppycrawl.tools</groupId>
243243
<artifactId>checkstyle</artifactId>
244-
<version>10.6.0</version>
244+
<version>10.8.0</version>
245245
</dependency>
246246
</dependencies>
247247
</plugin>
@@ -285,7 +285,7 @@
285285
<plugin>
286286
<groupId>org.apache.maven.plugins</groupId>
287287
<artifactId>maven-enforcer-plugin</artifactId>
288-
<version>3.1.0</version>
288+
<version>3.2.1</version>
289289
</plugin>
290290
</plugins>
291291
</pluginManagement>

0 commit comments

Comments
 (0)