-
Notifications
You must be signed in to change notification settings - Fork 112
Docker Setup
Matt Konda edited this page Jan 15, 2017
·
8 revisions
First we need to make sure we have docker set up properly.
docker-machine create --driver virtualbox default
We want to make sure docker is running and configured in our shell:
docker-machine start default
eval $(docker-machine env default)
- Note that we used a patched docker machine, but don't believe that to be necessary any longer.
To build the docker image:
cd docker/glue
./build.sh
The build script builds the docker image from scratch.
docker run owasp/glue:0.9.0
docker-machine upgrade default
docker ps -q -a | xargs docker rm
docker images -q | xargs docker rmi
Running Glue by hand from the docker image is great for debugging and gives you the tools it is going to use already set up.
docker run -i -t --entrypoint=/bin/bash owasp/glue:0.9
--rm removes the image after it has completed which is typical case with pipeline.
--name=pipeline will name the image to make it easier to work with
-it makes the shell interactive and attaches a tty which is needed to prevent Control-C from hanging the image.