Skip to content

Commit d380506

Browse files
authored
Fetch security fixes in build. Upgrade go versions. (#135)
- go 1.15 runtime upgraded to 1.15.5 - go 1.13 runtime upgraded to 1.13.15 - add 'apt-get upgrade' to the image build of go 1.15 and go 1.13 to get latest security fixes during each build, for the case the base images are not updated frequently
1 parent cd43284 commit d380506

3 files changed

Lines changed: 31 additions & 16 deletions

File tree

CHANGES.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@
1616
# limitations under the License.
1717
#
1818
-->
19+
# (next release)
20+
- go 1.15 runtime upgraded to 1.15.5
21+
- go 1.13 runtime upgraded to 1.13.15
22+
- add 'apt-get upgrade' to the image build of go 1.15 and go 1.13 to get latest security fixes during each build, for the case the base images are not updated frequently
23+
1924
# 1.16.0
2025
- added go 1.13 and 1.15 with Go modules
2126
- removed support for go1.11 and go1.12

golang1.13/Dockerfile

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,29 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616
#
17-
FROM golang:1.13.14
17+
FROM golang:1.13.15
1818
RUN echo "deb http://deb.debian.org/debian buster-backports main contrib non-free" \
1919
>>/etc/apt/sources.list &&\
2020
echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections &&\
21-
apt-get update && apt-get install -y apt-utils
22-
RUN apt-get install -y \
21+
apt-get update &&\
22+
# Upgrade installed packages to get latest security fixes if the base image does not contain them already.
23+
apt-get upgrade -y --no-install-recommends &&\
24+
apt-get install -y apt-utils &&\
25+
apt-get install -y \
2326
curl \
2427
jq \
2528
git \
2629
vim &&\
2730
apt-get -y install \
2831
librdkafka1=0.11.6-1.1 \
29-
librdkafka++1=0.11.6-1.1 && \
32+
librdkafka++1=0.11.6-1.1 &&\
3033
apt-get -y install \
31-
librdkafka-dev=0.11.6-1.1 && \
32-
rm -rf /var/lib/apt/lists/* && \
33-
go get -u github.com/go-delve/delve/cmd/dlv
34-
RUN mkdir /action
34+
librdkafka-dev=0.11.6-1.1 &&\
35+
# Cleanup apt data, we do not need them later on.
36+
apt-get clean && rm -rf /var/lib/apt/lists/* &&\
37+
go get -u github.com/go-delve/delve/cmd/dlv &&\
38+
mkdir /action
39+
3540
WORKDIR /action
3641
ADD proxy /bin/proxy
3742
ADD bin/compile /bin/compile

golang1.15/Dockerfile

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,29 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616
#
17-
FROM golang:1.15.1
17+
FROM golang:1.15.5
1818
RUN echo "deb http://deb.debian.org/debian buster-backports main contrib non-free" \
1919
>>/etc/apt/sources.list &&\
2020
echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections &&\
21-
apt-get update && apt-get install -y apt-utils
22-
RUN apt-get install -y \
21+
apt-get update &&\
22+
# Upgrade installed packages to get latest security fixes if the base image does not contain them already.
23+
apt-get upgrade -y --no-install-recommends &&\
24+
apt-get install -y apt-utils &&\
25+
apt-get install -y \
2326
curl \
2427
jq \
2528
git \
2629
vim &&\
2730
apt-get -y install \
2831
librdkafka1=0.11.6-1.1 \
29-
librdkafka++1=0.11.6-1.1 && \
32+
librdkafka++1=0.11.6-1.1 &&\
3033
apt-get -y install \
31-
librdkafka-dev=0.11.6-1.1 && \
32-
rm -rf /var/lib/apt/lists/* && \
33-
go get -u github.com/go-delve/delve/cmd/dlv
34-
RUN mkdir /action
34+
librdkafka-dev=0.11.6-1.1 &&\
35+
# Cleanup apt data, we do not need them later on.
36+
apt-get clean && rm -rf /var/lib/apt/lists/* &&\
37+
go get -u github.com/go-delve/delve/cmd/dlv &&\
38+
mkdir /action
39+
3540
WORKDIR /action
3641
ADD proxy /bin/proxy
3742
ADD bin/compile /bin/compile

0 commit comments

Comments
 (0)