This repository has been archived by the owner on Nov 17, 2021. It is now read-only.
forked from ActianCorp/Vector-Docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
43 lines (33 loc) · 1.71 KB
/
Dockerfile
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
## -*- docker-image-name: "actian/vectortest" -*-
FROM centos:7
# Docker file for Actian Vector Community Edition
LABEL com.actian.vendor="Actian Corporation" \
description="Actian Vector Testing image"
# Pull dependencies
RUN yum install -y libaio util-linux-ng sudo net-tools iproute nmap-ncat openssh-server which
# This Dockerfile will work with any enterprise linux version that follows this naming convention
ENV VECTOR_ARCHIVE actian-vector-*linux*x86_64*
ENV II_SYSTEM /VectorVW
# Pull in Vector saveset
ADD ${VECTOR_ARCHIVE}.tgz .
# Install Vector
RUN cd $VECTOR_ARCHIVE && ./install.sh -express $II_SYSTEM VW -noad -nodemo && hostname > /tmp/hostname.build
# fixup the installation with container specific stuff
ADD startup.sh /usr/local/bin/startup.sh
ADD java.sh /etc/profile.d/java.sh
ADD ema_check_vector.sh /VectorVW/ingres/iiema/plugins/ema_check_vector
ADD vectorEMA.jar /VectorVW/ingres/iiema/plugins/vectorEMA.jar
ADD vectorh.conf /VectorVW/ingres/iiema/data/vectorh.conf
RUN ssh-keygen -A && \
cp $II_SYSTEM/ingres/.ingVWsh /etc/profile.d/vectorVW.sh && \
chown -R actian $II_SYSTEM/ingres/iiema && \
chmod ugo+rx $II_SYSTEM/ingres/iiema/plugins/ema_check_vector && \
source /etc/profile.d/vectorVW.sh && \
sed -isaved -e "s,`cat /tmp/hostname.build`,localhost,gI" -e '/ingstart.*rmcmd/d' -e '/ingstart.*mgmtsvr/d' $II_SYSTEM/ingres/files/config.dat && \
ingsetenv II_HOSTNAME localhost && \
ln -s $II_SYSTEM/ingres/utility/dockerctl /usr/local/bin/dockerctl
EXPOSE 22 27832 27839
# TEMPORARY until we get "secrets" working
RUN echo actian | passwd --stdin actian
RUN su - actian -c 'ingstart && echo "alter user actian with password =actian;commit;\\p\\g" | sql -s iidbdb'
ENTRYPOINT ["sh", "startup.sh"]