Docker_Pshitt/Dockerfile
2018-08-22 00:37:59 +02:00

44 lines
1.4 KiB
Docker

#Download base image ubuntu 16.04
FROM ubuntu:18.04
#FROM python:3.6
ARG PORT_SSH=2222
#ARG DIRECTORY_LOGS="/apps/data/pshitt/logs"
#ARG DIRECTORY_DATA="/apps/data/pshitt/data"
# Update Ubuntu Software repository
RUN apt-get update
RUN apt-get install -y git python-setuptools python-pip && \
cd /srv && \
git clone https://github.com/regit/pshitt.git && \
mkdir -p /srv/pshitt/keys /srv/pshitt/_LOG && \
#pip install --upgrade pip && \
pip install python-daemon && \
pip install argparse && \
pip install paramiko && \
rm -rf /var/lib/apt/lists/*
#WORKDIR /srv/pshitt
#COPY ssh_host_rsa_key /apps/data/keyfiles/keyfile
COPY ssh_host_rsa_key /srv/pshitt/keys/ssh_host_rsa_key
#COPY exec_pshitt.sh /srv/pshitt/exec_pshitt.sh
#RUN chmod +x /srv/pshitt/exec_pshitt.sh
#ENV PATH /srv/pshitt/:${PATH}
#ENV PORT_SSH ${PORT_SSH}
#ENV THREADS ${THREADS}
#ENV KEYFILE ${KEYFILE}
#ENV DIRECTORY_LOGS ${DIRECTORY_LOGS}
#ENV DIRECTORY_DATA ${DIRECTORY_DATA}
#EXPOSE ${PORT_SSH}
EXPOSE 2222
#ENTRYPOINT ["/srv/pshitt/exec_pshitt.sh"]
#ENTRYPOINT /srv/pshitt/./pshitt -p 2222 -k /srv/pshitt/keys/ssh_host_rsa_key -o /srv/pshitt/_LOG/$(date +%Y%m%d%H%M)_data.json -l /srv/pshitt/_LOG/$(date +%Y%m%d%H%M)_log.log && /bin/bash
ENTRYPOINT /srv/pshitt/./pshitt -p 2222 -k /srv/pshitt/_HOST_SSH_KEYS/ssh_host_rsa_key -o /srv/pshitt/_LOG/$(date +%Y%m%d%H%M)_data.json -l /srv/pshitt/_LOG/$(date +%Y%m%d%H%M)_log.log && /bin/bash