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

Creation of a Dockerfile based on centos closes #18200 #18204

Open
wants to merge 7 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions extras/docker/centos-dockerfile/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
FROM centos:7

LABEL maintainer="[email protected]"

RUN yum install git epel-release -y && \
yum install npm libxml2-devel libxslt-devel openssl-devel python-devel python-pip gcc gcc-c++ expect -y && \
pip install --upgrade pip setuptools==44.0 && \
pip install gitpython && \
mkdir /home/w3af

WORKDIR /home/w3af

RUN git clone https://github.com/andresriancho/w3af.git && \
chmod +x w3af/w3af_console && \
w3af/./w3af_console ; true && \
sed 's/sudo //g' -i /tmp/w3af_dependency_install.sh && \
sed 's/yum/yum -y/g' -i /tmp/w3af_dependency_install.sh && \
sed 's/pip install/pip install /g' -i /tmp/w3af_dependency_install.sh && \
umask 022 && \
/tmp/w3af_dependency_install.sh && \
echo "#/bin/bash /n npm install -g [email protected] /n npm update -g retire" >> /tmp/node-normalization.sh && \
chmod +x /tmp/node-normalization.sh && \
/tmp/node-normalization.sh

RUN chmod 775 /home/w3af && \
chown -R 1001 /home/w3af && \
chmod -R "g+rwX" /home/w3af && \
chown -R 1001:root /home/w3af

USER 1001

CMD tail -f /dev/null
2 changes: 1 addition & 1 deletion w3af/tests/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ requests>=2.7.0
mock==1.0.1
psutil==2.2.1
SOAPpy==0.12.5
Pillow==1.7.8
Pillow==6.2.0
SimpleCV==1.3
futures==2.1.5
fabric==1.8.0
Expand Down