2018-02-20 17:40:34 +00:00
|
|
|
FROM alpine
|
|
|
|
|
|
|
|
# Setup env and apt
|
|
|
|
RUN apk -U upgrade && \
|
2018-03-25 18:35:32 +00:00
|
|
|
apk add bash \
|
|
|
|
build-base \
|
|
|
|
git \
|
|
|
|
libffi-dev \
|
|
|
|
openssl-dev \
|
|
|
|
python3-dev \
|
|
|
|
procps && \
|
2018-02-20 17:40:34 +00:00
|
|
|
|
|
|
|
# Setup user
|
|
|
|
addgroup -g 2000 ciscoasa && \
|
|
|
|
adduser -S -s /bin/bash -u 2000 -D -g 2000 ciscoasa && \
|
|
|
|
|
|
|
|
# Get and install packages
|
|
|
|
mkdir -p /opt/ && \
|
|
|
|
cd /opt/ && \
|
|
|
|
git clone https://github.com/cymmetria/ciscoasa_honeypot && \
|
|
|
|
cd ciscoasa_honeypot && \
|
|
|
|
pip3 install -r requirements.txt && \
|
2018-02-26 17:55:56 +00:00
|
|
|
chown -R ciscoasa:ciscoasa /opt/ciscoasa_honeypot && \
|
2018-02-20 17:40:34 +00:00
|
|
|
|
|
|
|
# Clean up
|
2018-03-30 21:47:59 +00:00
|
|
|
apk del --purge build-base \
|
|
|
|
git \
|
|
|
|
libffi-dev \
|
|
|
|
openssl-dev \
|
|
|
|
python3-dev && \
|
2018-03-25 18:35:32 +00:00
|
|
|
apk add libffi \
|
|
|
|
openssl \
|
|
|
|
python3
|
2018-02-20 17:40:34 +00:00
|
|
|
|
|
|
|
# Start elasticsearch-head
|
|
|
|
WORKDIR /opt/ciscoasa_honeypot
|
2018-03-30 21:47:59 +00:00
|
|
|
USER ciscoasa:ciscoasa
|
2018-04-16 23:25:50 +00:00
|
|
|
CMD exec python3 asa_server.py --enable_ssl --verbose >> /var/log/ciscoasa/ciscoasa.log 2>&1
|