Skip to content

Instantly share code, notes, and snippets.

@aug2uag
Created July 22, 2020 17:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aug2uag/813cc7659724fe2e7f47b49e6d99b0aa to your computer and use it in GitHub Desktop.
Save aug2uag/813cc7659724fe2e7f47b49e6d99b0aa to your computer and use it in GitHub Desktop.
Cobra Dockerfile
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