1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-02-03 13:21:49 +02:00

add cowrie-arm

This commit is contained in:
kev 2017-11-05 21:08:34 +08:00
parent 749df4181a
commit 846577f86a
2 changed files with 47 additions and 0 deletions

38
cowrie/arm/Dockerfile Normal file
View File

@ -0,0 +1,38 @@
#
# Dockerfile for cowrie-arm
#
FROM easypi/alpine-arm
MAINTAINER EasyPi Software Foundation
RUN apk add -U bash \
build-base \
ca-certificates \
libffi \
libffi-dev \
openssl \
openssl-dev \
python \
python-dev \
tar \
&& wget -qO- https://bootstrap.pypa.io/get-pip.py | python \
&& adduser -D cowrie \
&& cd /home/cowrie \
&& wget -qO- https://github.com/micheloosterhof/cowrie/archive/master.tar.gz | tar xz --strip 1 \
&& pip install -r requirements.txt \
&& sed '/Enable Telnet/{n;s/\(enabled\).*/\1 = true/}' cowrie.cfg.dist > cowrie.cfg \
&& sed -i 's/^\(VIRTUALENV_ENABLED\).*/\1=no/' bin/cowrie \
&& chown -R cowrie:cowrie . \
&& apk del build-base \
libffi-dev \
openssl-dev \
python-dev \
tar \
&& rm -rf /var/cache/apk/*
EXPOSE 2222 2223
USER cowrie
WORKDIR /home/cowrie
CMD ["bin/cowrie", "start", "-n"]

View File

@ -0,0 +1,9 @@
cowrie:
image: easypi/cowrie-arm
ports:
- "2222:2222"
- "2223:2223"
volumes:
- ./dl:/home/cowrie/dl
- ./log:/home/cowrie/log
restart: always