Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker? #40

Open
mgaulton opened this issue Nov 16, 2015 · 1 comment
Open

Docker? #40

mgaulton opened this issue Nov 16, 2015 · 1 comment

Comments

@mgaulton
Copy link

Any chance this would work inside docker? I've been looking for something exactly like this.

@mgaulton
Copy link
Author

I took a stab at it, work in progress.

This is a comment

FROM ubuntu:14.04
MAINTAINER Kate Smith [email protected]
RUN apt-get update && apt-get -y install git openssh-server grep ssh-client
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
RUN start ssh

RUN git clone https://github.com/mgaulton/Autosnort.git
RUN rm -rf CentOS Debian Kali BT Offline *.txt *.pdf
RUN chmod a+x 'Autosnort/Autosnort - Ubuntu/autosnort-ubuntu-10-30-2015.sh'

RUN sed -i "s/^root_mysql_pass=''/root_mysql_pass=''/" 'Autosnort/Autosnort - Ubuntu/full_autosnort.conf'
RUN sed -i 's/^o_code=/o_code=/' 'Autosnort/Autosnort - Ubuntu/full_autosnort.conf'
RUN sed -i 's/^snort_mysql_pass=/snort_mysql_pass=/' 'Autosnort/Autosnort - Ubuntu/full_autosnort.conf'
RUN sed -i 's/^reboot_choice=1/reboot_choice=2/' 'Autosnort/Autosnort - Ubuntu/full_autosnort.conf'
RUN sed -i 's/^snort_iface=eth1/snort_iface=enp5s0/' 'Autosnort/Autosnort - Ubuntu/full_autosnort.conf'

WORKDIR 'Autosnort/Autosnort - Ubuntu/'

RUN './autosnort-ubuntu-10-30-2015.sh'

Remove build dependencies.

RUN cd /tmp &&
yum -y remove $(diff prebuild-rpms postbuild-rpms | awk '/^>/ { print $2 }')

Cleanup.

RUN yum clean all &&
rm -rf /var/log/* || true
rm -rf /var/tmp/*
rm -rf /tmp/*

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant