This commit is contained in:
Marco Ochse 2018-03-30 21:47:59 +00:00
parent 5c403a5cce
commit 4ee334aee8
4 changed files with 18 additions and 14 deletions

View file

@ -23,16 +23,16 @@ RUN apk -U upgrade && \
chown -R ciscoasa:ciscoasa /opt/ciscoasa_honeypot && \ chown -R ciscoasa:ciscoasa /opt/ciscoasa_honeypot && \
# Clean up # Clean up
apk del build-base \ apk del --purge build-base \
git \ git \
libffi-dev \ libffi-dev \
openssl-dev \ openssl-dev \
python3-dev && \ python3-dev && \
apk add libffi \ apk add libffi \
openssl \ openssl \
python3 python3
# Start elasticsearch-head # Start elasticsearch-head
WORKDIR /opt/ciscoasa_honeypot WORKDIR /opt/ciscoasa_honeypot
USER ciscoasa USER ciscoasa:ciscoasa
CMD python3 asa_server.py --enable_ssl --verbose > /var/log/ciscoasa/ciscoasa.log 2>&1 CMD python3 asa_server.py --enable_ssl --verbose >> /var/log/ciscoasa/ciscoasa.log 2>&1

View file

@ -8,7 +8,7 @@ RUN apk -U upgrade && \
apk add build-base \ apk add build-base \
git \ git \
gmp-dev \ gmp-dev \
libcap \ # libcap \
libffi-dev \ libffi-dev \
mpc1-dev \ mpc1-dev \
mpfr-dev \ mpfr-dev \
@ -38,11 +38,19 @@ RUN apk -U upgrade && \
# Clean up # Clean up
rm -rf /root/* && \ rm -rf /root/* && \
apk del git py-pip mpfr-dev mpc1-dev libffi-dev build-base py-mysqldb gmp-dev python-dev && \ apk del --purge git \
py-pip \
mpfr-dev \
mpc1-dev \
libffi-dev \
build-base \
py-mysqldb \
gmp-dev \
python-dev && \
rm -rf /var/cache/apk/* rm -rf /var/cache/apk/*
# Start cowrie # Start cowrie
ENV PYTHONPATH /home/cowrie/cowrie ENV PYTHONPATH /home/cowrie/cowrie
WORKDIR /home/cowrie/cowrie WORKDIR /home/cowrie/cowrie
USER cowrie USER cowrie:cowrie
CMD ["/usr/bin/twistd", "--nodaemon", "-y", "cowrie.tac", "--pidfile", "var/run/cowrie.pid", "cowrie"] CMD ["/usr/bin/twistd", "--nodaemon", "-y", "cowrie.tac", "--pidfile", "var/run/cowrie.pid", "cowrie"]

View file

@ -14,8 +14,6 @@ services:
restart: always restart: always
networks: networks:
- cowrie_local - cowrie_local
cap_add:
- NET_BIND_SERVICE
ports: ports:
- "22:2222" - "22:2222"
- "23:2223" - "23:2223"

View file

@ -36,8 +36,6 @@ services:
restart: always restart: always
networks: networks:
- cowrie_local - cowrie_local
cap_add:
- NET_BIND_SERVICE
ports: ports:
- "22:2222" - "22:2222"
- "23:2223" - "23:2223"