-
Notifications
You must be signed in to change notification settings - Fork 112
Docker Setup
Matt Konda edited this page Sep 20, 2016
·
8 revisions
First 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 create -d virtualbox --virtualbox-boot2docker-url=https://github.com/AkihiroSuda/boot2docker/releases/download/v1.9.1-fix1/boot2docker-v1.9.1-fix1.iso --virtualbox-disk-space 20000 patched
eval $(docker-machine env patched)
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.