Skip to content
Matt Konda edited this page Jan 15, 2017 · 8 revisions

General Usage

Initial Setup

First we need to make sure we have docker set up properly.

docker-machine create --driver virtualbox default

Setup

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 Update

docker-machine upgrade default

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.