-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (21 loc) · 769 Bytes
/
Dockerfile
File metadata and controls
26 lines (21 loc) · 769 Bytes
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
FROM python:2.7-slim-stretch
ARG VERTICA_VERSION
# install pkgs
COPY requirements.txt requirements.txt
RUN apt-get update && \
apt-get install -y wget python-dev unixodbc unixodbc-dev g++ && \
pip install -r requirements.txt && \
apt-get -y autoclean && \
rm -rf /var/lib/apt/lists/* && \
apt-get purge -y --auto-remove gcc-6 gcc libgcc-6-dev
# install Vertica Client
COPY misc/download_client.sh .
RUN bash ./download_client.sh $VERTICA_VERSION && \
chown -R root:root /opt && \
chmod +x /opt/vertica/bin/* && \
export LANG="en_US.UTF-8" && \
export PATH="/opt/vertica/bin:$PATH" && \
export MANPATH="/opt/vertica/man:$MANPATH"
# set /etc/vertica.ini
COPY etc/vertica.ini /etc/vertica.ini
ENV VERTICAINI='/etc/vertica.ini'