Skip to content

Instantly share code, notes, and snippets.

@devniel
Created September 20, 2023 11:45
Show Gist options
  • Save devniel/d3279a870ffa937e36664aa304084802 to your computer and use it in GitHub Desktop.
Save devniel/d3279a870ffa937e36664aa304084802 to your computer and use it in GitHub Desktop.
Install Vertica 23.3.0-3 in Docker
FROM ubuntu:22.04
RUN apt-get update -q -y && apt-get install -q -y \
openssl \
openssh-server \
openssh-client \
pstack \
sysstat \
rasdaemon \
dialog \
locales \
locales-all \
net-tools \
iproute2 \
sudo
RUN adduser --disabled-password --gecos '' docker
RUN adduser docker sudo
RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
USER docker
# Download vertica_23.3.0-3_amd64.deb from vertica.com
ADD vertica_23.3.0-3_amd64.deb /tmp/vertica_23.3.0-3_amd64.deb
RUN sudo dpkg -i /tmp/vertica_23.3.0-3_amd64.deb
RUN sudo sh -c 'echo "export TZ=\"UTC\"" >> /etc/profile'
SHELL ["/bin/bash", "-c"]
RUN sudo /opt/vertica/sbin/install_vertica -s $HOSTNAME -r /tmp/vertica_23.3.0-3_amd64.deb -u dbadmin -g dbadmin -d /home/dbadmin -p vertica -L /opt/vertica/config/licensing/vertica_community_edition.license.key -Y --failure-threshold NONE
CMD tail -f /dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment