forked from jbfavre/docker-vertica
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.minidebian.8_8.1
44 lines (38 loc) · 2.03 KB
/
Dockerfile.minidebian.8_8.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
FROM jbfavre/minideb:jessie
MAINTAINER Jean Baptiste Favre <[email protected]>
ENV SHELL "/bin/bash"
ENV DEBIAN_FRONTEND noninteractive
ENV TERM 1
ADD scripts/debian_cleaner.sh /tmp/
RUN /usr/bin/apt-get update -yqq \
&& /usr/bin/apt-get upgrade --no-install-recommends -yqq \
&& /usr/bin/apt-get install --no-install-recommends -yqq curl ca-certificates \
&& echo '192.168.42.53 apt.jbfav.re' >> /etc/hosts \
&& echo 'deb http://apt.jbfav.re/release/vertica81/ jessie main'> /etc/apt/sources.list.d/vertica.list \
&& /usr/bin/curl -SL http://apt.jbfav.re/release/key.gpg | /usr/bin/apt-key add - \
&& /usr/bin/apt-get update -yqq \
&& /usr/bin/chsh -s /bin/bash root \
&& /bin/rm /bin/sh && ln -s /bin/bash /bin/sh \
&& /usr/sbin/groupadd -r verticadba \
&& /usr/sbin/useradd -r -m -s /bin/bash -g verticadba dbadmin \
&& su - dbadmin -c 'mkdir /tmp/.python-eggs' \
&& echo "dbadmin - nice 0" >> /etc/security/limits.conf \
&& echo "dbadmin - nofile 65536" >> /etc/security/limits.conf \
&& /usr/bin/apt-get install --no-install-recommends -yqq iproute2 \
&& /usr/bin/apt-get install --no-install-recommends -yqq vertica \
&& /bin/echo "en_US ISO-8859-1" > /etc/locale.gen \
&& /bin/echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen \
&& /usr/sbin/locale-gen \
&& /bin/sed -i "s/release_string = f.read.*/release_string = '8.5'/g" /opt/vertica/oss/python/lib/python2.7/site-packages/vertica/system/opsys.py \
&& /opt/vertica/sbin/install_vertica --license CE --accept-eula --hosts 127.0.0.1 \
--dba-user-password-disabled --failure-threshold NONE --no-system-configuration \
&& /usr/bin/apt-get remove --purge -y curl ca-certificates libpython2.7 libpython3.4 \
&& /bin/rm /etc/apt/sources.list.d/vertica.list \
&& /usr/bin/apt-key del DB0AA004 \
&& /bin/bash /tmp/debian_cleaner.sh
ENV PYTHON_EGG_CACHE /tmp/.python-eggs
ENV VERTICADATA /home/dbadmin/docker
VOLUME /home/dbadmin/docker
ENTRYPOINT ["/opt/vertica/bin/docker-entrypoint.sh"]
ADD ./docker-entrypoint.sh /opt/vertica/bin/
EXPOSE 5433