store data as ascii, adjust config

This commit is contained in:
t3chn0m4g3
2019-03-13 21:13:36 +00:00
parent 7ed3530130
commit 0b92b56c55
2 changed files with 19 additions and 1 deletions

View File

@ -4,7 +4,7 @@ FROM alpine
ADD dist/ /root/dist/
# Install packages
RUN sed -i 's/dl-cdn/dl-4/g' /etc/apk/repositories && \
RUN sed -i 's/dl-cdn/dl-2/g' /etc/apk/repositories && \
apk -U --no-cache add \
build-base \
git \
@ -28,6 +28,7 @@ RUN sed -i 's/dl-cdn/dl-4/g' /etc/apk/repositories && \
sed -i 's/event/event_type/g' /opt/honeypy/loggers/file/honeypy_file.py && \
sed -i 's/bytes/size/g' /opt/honeypy/loggers/file/honeypy_file.py && \
sed -i 's/date_time/timestamp/g' /opt/honeypy/loggers/file/honeypy_file.py && \
sed -i 's/data,/data.decode("hex"),/g' /opt/honeypy/loggers/file/honeypy_file.py && \
virtualenv env && \
cp /root/dist/services.cfg /opt/honeypy/etc && \
cp /root/dist/honeypy.cfg /opt/honeypy/etc && \