Created
July 22, 2020 17:40
-
-
Save aug2uag/813cc7659724fe2e7f47b49e6d99b0aa to your computer and use it in GitHub Desktop.
Cobra Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:focal | |
RUN apt -y update && \ | |
apt -y upgrade && \ | |
apt-get -y install git build-essential bison && \ | |
git clone https://github.com/nimble-code/Cobra.git && \ | |
cd Cobra/src && \ | |
make install_linux && \ | |
cd .. && \ | |
d=$(pwd) && \ | |
cd .. && \ | |
x="export COBRA=${d}" && \ | |
y='export PATH=$PATH:$COBRA/bin_linux' && \ | |
z='export C_BASE=$COBRA/rules' && \ | |
echo $x >> ~/.bashrc && \ | |
echo $y >> ~/.bashrc && \ | |
echo $z >> ~/.bashrc && \ | |
. ~/.bashrc && \ | |
cobra -configure $COBRA/rules | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment