You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
789 B
26 lines
789 B
FROM centos:centos7
|
|
ENV GPDBVER=6.16.2 \
|
|
DATADIR=/data
|
|
|
|
COPY install.sh /tmp/install.sh
|
|
COPY entrypoint.sh /entrypoint.sh
|
|
COPY open-source-greenplum-db-6.16.2-rhel7-x86_64.rpm /
|
|
|
|
RUN yum -y install passwd openssl openssh-server openssh-clients &&\
|
|
mkdir /var/run/sshd/ &&\
|
|
ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N '' && \
|
|
ssh-keygen -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key -N '' && \
|
|
ssh-keygen -t dsa -f /etc/ssh/ssh_host_ed25519_key && \
|
|
echo -e '#!/bin/bash\n/usr/sbin/sshd -D &' > /var/run/sshd/sshd_start.sh && \
|
|
chmod u+x /var/run/sshd/sshd_start.sh
|
|
|
|
RUN /var/run/sshd/sshd_start.sh && \
|
|
sleep 10s && cd /tmp && sh install.sh && \
|
|
rm -rf /tmp/install.sh && rm -rf /tmp/files
|
|
|
|
EXPOSE 5432 22
|
|
|
|
USER root
|
|
|
|
CMD [ "sh" , "/entrypoint.sh"]
|