Upgrade to Cassandra 3
[sdc/sdc-docker-base.git] / base_sdc-cassandra / Dockerfile
1 FROM cassandra:3.11.4
2
3 # Upgrade specific system libraries to fix CVE vulnerabilities
4 # avahi 0.7-3.1
5 #   For CVE-2017-6519
6 # curl 7.58.0-2
7 #   For CVE-2016-7167 CVE-2016-7141
8 # krb5 1.16-2
9 #   For 2018-5709 CVE-2017-15088 CVE-2017-11462
10 # libtiff5 4.0.9-5
11 #   For CVE-2018-5360
12 # libx11 2:1.6.5-1
13 #   For CVE-2016-7943 CVE-2016-7942
14 # libxml2 2.9.4+dfsg1-6.1
15 #   For CVE-2016-4448
16 # libxtst6 2:1.2.3-1
17 #   For CVE-2016-7951
18 # perl 5.26.2-2
19 #   For CVE-2017-12837 CVE-2017-12883
20 # python 2.7.15~rc1-1
21 #   For CVE-2017-1000158
22 # libsqlite3-0 3.23.1-1
23 #   For CVE-2017-10989
24 # libdb5.3
25 #   CVE-2016-3418 CVE-2016-0694 CVE-2016-0692 CVE-2016-0689 CVE-2016-0682
26 # libcairo2 libcairo-gobject2
27 #   CVE-2017-9814
28 # libc-bin libc6 multiarch-support
29 #   CVE-2018-1000001 CVE-2017-16997 CVE-2017-1000366 CVE-2015-5180 CVE-2016-5417 CVE-2018-6485 CVE-2017-15804 CVE-2017-15670 CVE-2014-9984 CVE-2014-9761 CVE-2015-8983 CVE-2015-8982
30 # libgtk2.0-0 libgtk2.0-common
31 #   CVE-2014-1949
32 # libharfbuzz0b
33 #   CVE-2015-8947 CVE-2016-2052
34 # libgcrypt20
35 #   CVE-2017-0379
36 # libtasn1-6
37 #   CVE-2018-6003 CVE-2017-10790
38 # libxi6
39 #   CVE-2016-7946 CVE-2016-7945
40 # libldap-2.4-2
41 #   CVE-2017-17740
42 # libpcre3
43 #   CVE-2015-3217
44 # passwd
45 #   CVE-2017-12424
46 # zlib1g
47 #   CVE-2016-9843 CVE-2016-9841 CVE-2016-9842 CVE-2016-9840
48
49 RUN sed -i '/deb http:\/\/deb.debian.org\/debian jessie-updates main/d' /etc/apt/sources.list && \
50     sed -i '/deb http:\/\/deb.debian.org\/debian jessie-backports main/d' /etc/apt/sources.list.d/backports.list && \
51     echo "deb [check-valid-until=no] http://archive.debian.org/debian jessie-backports main" >> /etc/apt/sources.list && \
52     echo "deb http://deb.debian.org/debian stretch main" >> /etc/apt/sources.list && \
53     echo "deb http://deb.debian.org/debian stretch-updates main" >> /etc/apt/sources.list && \
54     echo "deb http://security.debian.org stretch/updates main" >> /etc/apt/sources.list && \
55     echo "deb http://deb.debian.org/debian buster main" >> /etc/apt/sources.list && \
56     echo "deb http://deb.debian.org/debian buster-updates main" >> /etc/apt/sources.list && \
57     echo "deb http://security.debian.org buster/updates main" >> /etc/apt/sources.list && \
58     apt-get -o Acquire::Check-Valid-Until=false update && \
59     apt-get -y install -t jessie-backports ca-certificates-java && \
60     apt-get -y install -t jessie-backports openjdk-8-jre-headless && \
61     apt-get -y --no-install-recommends install \
62       vim \
63       vim-runtime \
64       apt-utils \
65       libavahi-client3 \
66       libavahi-common3 \
67       curl \
68       libcurl4 \
69       krb5-locales \
70       libgssapi-krb5-2 \
71       libkrb5-3 \
72       libkrb5support0 \
73       libtiff5 \
74       libx11-6 \
75       libx11-data \
76       libx11-xcb1 \
77       libxml2 \
78       libxtst6 \
79       perl \
80       python \
81       libsqlite3-0 \
82       libdb5.3 \
83       libcairo2 \
84       libcairo-gobject2 \
85       libc-bin \
86       libc6 \
87       multiarch-support \
88       libgtk2.0-0 \
89       libgtk2.0-common \
90       libharfbuzz0b \
91       libgcrypt20 \
92       libtasn1-6 \
93       libxi6 \
94       libldap-2.4-2 \
95       libpcre3 \
96       passwd \
97       zlib1g \
98       ntp && \
99     apt-get -y autoremove && \
100     update-alternatives --set java /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java && \
101     curl -L https://omnitruck.chef.io/install.sh | bash -s -- -v 13.8.5
102