From dea3034d8d365c5d6fa8d4b8828ffdf064a50e2e Mon Sep 17 00:00:00 2001 From: Michel Oosterhof Date: Tue, 15 Oct 2019 16:39:23 +0100 Subject: [PATCH] change dockerfile to link to repository (#1230) --- docs/docker/Dockerfile.python2 | 57 ---------------------------------- docs/docker/README.rst | 1 + 2 files changed, 1 insertion(+), 57 deletions(-) delete mode 100644 docs/docker/Dockerfile.python2 create mode 100644 docs/docker/README.rst diff --git a/docs/docker/Dockerfile.python2 b/docs/docker/Dockerfile.python2 deleted file mode 100644 index f9fd3d826d..0000000000 --- a/docs/docker/Dockerfile.python2 +++ /dev/null @@ -1,57 +0,0 @@ -FROM debian:stable-slim as python-base -RUN apt-get update -RUN apt-get install --no-install-recommends -y libffi6 python python-pip -RUN adduser --system --shell /bin/bash --group --disabled-password --no-create-home --home /cowrie cowrie -RUN mkdir -p /cowrie/var/lib/cowrie/downloads -RUN mkdir -p /cowrie/var/lib/cowrie/tty -RUN mkdir -p /cowrie/var/log/cowrie/ -RUN chown -R cowrie:cowrie /cowrie -RUN chmod -R a+rX /cowrie -COPY requirements.txt . -COPY requirements-output.txt . -COPY honeyfs /cowrie/honeyfs -COPY share /cowrie/share -COPY etc /cowrie/etc - -FROM python-base as builder -RUN apt-get install --no-install-recommends -y python-wheel python-setuptools build-essential libssl-dev libffi-dev python-dev libsnappy-dev default-libmysqlclient-dev -RUN pip wheel --wheel-dir=/root/wheelhouse -r requirements.txt -RUN pip wheel --wheel-dir=/root/wheelhouse -r requirements-output.txt - -FROM python-base as post-builder -COPY --from=builder /root/wheelhouse /root/wheelhouse -RUN pip install -r requirements.txt --no-index --find-links=/root/wheelhouse -RUN pip install -r requirements-output.txt --no-index --find-links=/root/wheelhouse - -FROM post-builder as pre-devel -RUN pip install flake8 flake8-import-order pytest - -FROM pre-devel as devel -USER cowrie - -FROM pre-devel as tests -COPY src /cowrie -ENV PYTHONPATH=/cowrie -WORKDIR /cowrie -RUN flake8 --count --application-import-names cowrie --max-line-length=120 --statistics . && \ - trial cowrie - -FROM post-builder as pre-release -RUN apt-get remove -y python-pip && \ - apt-get autoremove -y && \ - apt-get autoclean -y && \ - rm -rf /root/wheelhouse && \ - rm -rf /var/lib/apt/lists/* && \ - rm -rf /var/log/* -COPY src /cowrie -RUN find /cowrie -type d -exec chmod 755 {} \; && \ - find /cowrie -type f -exec chmod 744 {} \; - -FROM pre-release as release -LABEL maintainer="Florian Pelgrim " -ENV PYTHONPATH=/cowrie -WORKDIR /cowrie -EXPOSE 2222/tcp -EXPOSE 2223/tcp -USER cowrie -CMD /usr/bin/python /usr/local/bin/twistd --umask 0022 --nodaemon --pidfile= -l - cowrie diff --git a/docs/docker/README.rst b/docs/docker/README.rst new file mode 100644 index 0000000000..16c3670caf --- /dev/null +++ b/docs/docker/README.rst @@ -0,0 +1 @@ +For Docker please see https://github.com/cowrie/docker-cowrie/