Skip to content
Matt Konda edited this page Sep 20, 2016 · 8 revisions

General Usage

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.

Building the Docker Image

To build the docker image:

cd docker/glue

./build.sh

The build script builds the docker image from scratch.

Running the Docker Image

docker run owasp/glue:0.9.0

Handy Items

Docker Machine Setup

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)

Removing Images

docker ps -q -a | xargs docker rm

docker images -q | xargs docker rmi

Running

Docker Shell in Glue Image

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

Docker Important Flags

--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. 
Clone this wiki locally