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 && \
# Clean up
apk del build-base \
git \
libffi-dev \
openssl-dev \
python3-dev && \
apk del --purge build-base \
git \
libffi-dev \
openssl-dev \
python3-dev && \
apk add libffi \
openssl \
python3
# Start elasticsearch-head
WORKDIR /opt/ciscoasa_honeypot
USER ciscoasa
CMD python3 asa_server.py --enable_ssl --verbose > /var/log/ciscoasa/ciscoasa.log 2>&1
USER ciscoasa:ciscoasa
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 \
git \
gmp-dev \
libcap \
# libcap \
libffi-dev \
mpc1-dev \
mpfr-dev \
@ -38,11 +38,19 @@ RUN apk -U upgrade && \
# Clean up
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/*
# Start cowrie
ENV PYTHONPATH /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"]

View file

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

View file

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