Skip to content

Commit 2968598

Browse files
authored
Get latest security fixes with every build. (#110)
- Add 'apt-get upgrade' to the image builds to include security fixes with each build in case the used base image is not updated frequently. In case the base image is updated frequently, the 'apt-get upgrade' is a no operation. If not it will catch the security updates available since the last update of the base image.
1 parent 3faee44 commit 2968598

4 files changed

Lines changed: 22 additions & 8 deletions

File tree

core/java8/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919

2020
# Java 8 OpenWhisk Runtime Container
2121

22+
## 1.15.0 (next release)
23+
- Include latest security fixes with every build.
24+
2225
## 1.14.0
2326
- Support for __OW_ACTION_VERSION (openwhisk/4761)
2427
- adoptopenjdk/openjdk8-openj9:x86_64-ubuntu-jdk8u222-b10_openj9-0.15.1

core/java8/Dockerfile

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,14 @@
1818
# Use AdoptOpenJDK's JDK8, OpenJ9 Critical Patch Update (CPU) release version 0.15.1
1919
FROM adoptopenjdk/openjdk8-openj9:x86_64-ubuntu-jdk8u222-b10_openj9-0.15.1
2020

21-
RUN rm -rf /var/lib/apt/lists/* && apt-get clean && apt-get update \
22-
&& apt-get install -y --no-install-recommends locales \
23-
&& rm -rf /var/lib/apt/lists/* \
24-
&& locale-gen en_US.UTF-8
21+
RUN rm -rf /var/lib/apt/lists/* \
22+
&& apt-get clean \
23+
&& apt-get update \
24+
&& apt-get -y --no-install-recommends upgrade \
25+
&& apt-get -y --no-install-recommends install locales \
26+
&& apt-get clean \
27+
&& rm -rf /var/lib/apt/lists/* \
28+
&& locale-gen en_US.UTF-8
2529

2630
ENV LANG="en_US.UTF-8" \
2731
LANGUAGE="en_US:en" \

core/java8actionloop/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919

2020
# Java 8 OpenWhisk Runtime Container
2121

22+
## 1.15.0 (next release)
23+
- Include latest security fixes with every build.
24+
2225
## 1.14.0
2326
- Initial release of actionloop-based Java Action
2427
- adoptopenjdk/openjdk8-openj9:x86_64-ubuntu-jdk8u222-b10_openj9-0.15.1

core/java8actionloop/Dockerfile

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,14 @@ FROM adoptopenjdk/openjdk8-openj9:x86_64-ubuntu-jdk8u222-b10_openj9-0.15.1
3434
# select the builder to use
3535
ARG GO_PROXY_BUILD_FROM=release
3636

37-
RUN rm -rf /var/lib/apt/lists/* && apt-get clean && apt-get update \
38-
&& apt-get install -y --no-install-recommends locales python vim \
39-
&& rm -rf /var/lib/apt/lists/* \
40-
&& locale-gen en_US.UTF-8
37+
RUN rm -rf /var/lib/apt/lists/* \
38+
&& apt-get clean \
39+
&& apt-get update \
40+
&& apt-get -y --no-install-recommends upgrade \
41+
&& apt-get -y --no-install-recommends install locales python vim \
42+
&& apt-get clean \
43+
&& rm -rf /var/lib/apt/lists/* \
44+
&& locale-gen en_US.UTF-8
4145

4246
ENV LANG="en_US.UTF-8" \
4347
LANGUAGE="en_US:en" \

0 commit comments

Comments
 (0)