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 build requires interactivity #26

Open
geekscrapy opened this issue Jun 27, 2018 · 3 comments
Open

Docker build requires interactivity #26

geekscrapy opened this issue Jun 27, 2018 · 3 comments
Assignees

Comments

@geekscrapy
Copy link
Contributor

The docker build command requires interaction from the user which isn't possible. This is at multiple stages of the install.

make[2]: Entering directory '/root/snort_src/snort'
make[2]: Nothing to be done for 'install-exec-am'.
 /bin/mkdir -p '/usr/local/share/man/man8'
 /usr/bin/install -c -m 644 snort.8 '/usr/local/share/man/man8'
 /bin/mkdir -p '/usr/local/lib/pkgconfig'
 /usr/bin/install -c -m 644 snort.pc '/usr/local/lib/pkgconfig'
make[2]: Leaving directory '/root/snort_src/snort'
make[1]: Leaving directory '/root/snort_src/snort'

	[+] INFO: snort-2.9.11.1 installed successfully.


	[i] INFO: Adding user and group SNORT.


	[i] INFO: /var/log/snort and /etc/snort created and configurated.


   ,,_     -*> Snort! <*-
  o"  )~   Version 2.9.11.1 GRE (Build 268) 
   ''''    By Martin Roesch & The Snort Team: http://www.snort.org/contact#team
           Copyright (C) 2014-2017 Cisco and/or its affiliates. All rights reserved.
           Copyright (C) 1998-2013 Sourcefire, Inc., et al.
           Using libpcap version 1.8.1
           Using PCRE version: 8.39 2016-06-14
           Using ZLIB version: 1.2.8


	[+] INFO: SNORT is successfully installed and configurated!
	[!] INFO: Now it's time to edit the SNORT configuration file.


	[i] INFO: Add your HOME_NET address [Ex: 192.168.1.0/24]
	[!] WARNING: Press ENTER to continue. Vim: Warning: Output is not to a terminal
Vim: Warning: Input is not from a terminal

#  7) Customize your rule set
#  8) Customize preprocessor and decoder rule set
#  9) Customize shared object rule set
###################################################

###################################################
# Step #1: Set the network variables.  For more information, see README.variable
s
###################################################

# Setup the network addresses you are protecting

At this point you have to exit forcefully and the docker build command fails

There is also an issue with the input of the sql db password

@joanbono
Copy link
Owner

Got it.
The only way to solve it is doing some kind of sed, to not modify the original source code.

I’ll look into it.
If you have some suggestion, add it here and of course, if you have time, Pull requests are welcome :)

@iamironz
Copy link

Hey! Any update regarding this issue?

@joanbono
Copy link
Owner

Hey @iamironz unfortunately not, but Pull Requests are very much welcome :)

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

No branches or pull requests

3 participants