Skip to content

Commit

Permalink
script to build Docker image locally
Browse files Browse the repository at this point in the history
  • Loading branch information
Q-back committed Jan 28, 2020
1 parent 411785c commit 261897d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
17 changes: 17 additions & 0 deletions extras/docker/docker-build-local.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash

# This scripts builds Docker image from actual source code, so you can access it
# as andresriancho/w3af:source
# Use it if for any reasons you want to run w3af inside Docker

cp Dockerfile ../../
cp .dockerignore ../../

cd ../../

docker build -t andresriancho/w3af:source .

rm -rf Dockerfile
rm -rf .dockerignore

cd extras/docker/
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash

# This script builds and officially releases Docker image from source. Use it only
# if you're project maintainer.

set -x
set -e

Expand All @@ -12,7 +15,7 @@ cd ../../
if [ $# -eq 1 ]; then
ENV=$1
else
echo "Build environment name argument is required (./docker-build.sh develop)"
echo "Build environment name argument is required (./docker-build-release.sh develop)"
exit 1
fi

Expand Down

0 comments on commit 261897d

Please sign in to comment.