Skip to content

Commit

Permalink
Merge pull request #29 from stevenaldinger/docs/plugin-development
Browse files Browse the repository at this point in the history
add hello_world plugin and documentation
  • Loading branch information
stevenaldinger committed Mar 23, 2019
2 parents b33e404 + 1fdc2a3 commit d3b24d1
Show file tree
Hide file tree
Showing 15 changed files with 276 additions and 471 deletions.
12 changes: 9 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ clean:
build_plugins:
@$(BASE_DIR)/scripts/build-plugins.sh $(BASE_DIR)/internal/app/decker/plugins

build_plugin:
@$(BASE_DIR)/scripts/build-plugins.sh $(BASE_DIR)/internal/app/decker/plugins $(plugin)

build_decker:
@cd $(BASE_DIR)/cmd/decker && \
echo "Building" $(APP_NAME) && \
Expand All @@ -30,10 +33,10 @@ build_decker:
build_all: build_plugins build_decker

docker_build:
@docker build -f ./build/package/dev.Dockerfile -t stevenaldinger/$(APP_NAME)-dev:latest .
@docker build -f ./build/package/kali.Dockerfile -t stevenaldinger/$(APP_NAME):latest .

docker_build_prod:
@docker build -f ./build/package/Dockerfile -t stevenaldinger/$(APP_NAME):latest .
@docker build -f ./build/package/kali.Dockerfile -t stevenaldinger/$(APP_NAME):latest .

docker_build_kali:
@docker build -f ./build/package/kali.Dockerfile -t stevenaldinger/$(APP_NAME):kali .
Expand All @@ -58,13 +61,16 @@ docker_build_and_push: docker_build_minimal docker_build_prod docker_build_kali
run:
@$(BASE_DIR)/$(APP_NAME) ./examples/example.hcl

run_hello_world:
@$(BASE_DIR)/$(APP_NAME) ./examples/hello-world.hcl

docker_run:
@echo "Forwarding port 6060 for godoc usage within the container."
@docker run -it --rm \
-v $(BASE_DIR):/go/src/github.com/stevenaldinger/$(APP_NAME) \
-v $(HOME)/decker-reports:/tmp/reports \
-p 6060:6060 \
stevenaldinger/$(APP_NAME)-dev:latest bash
stevenaldinger/$(APP_NAME):kali bash

docker_run_prod:
@docker run -it --rm \
Expand Down
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
**HEADS UP, SORRY EVERYBODY: Decker relies on a dynamic type system (despite that being a rare need in golang) to support the "unlimited" nature of the plugins. I had intended on a separate `decker-plugin` repo that would be bare-bones and easy to develop on, but unfortunately it doesn't seem like that's an option due to the dependency on that underlying type system library. Decker will remain a plugin-based architecture but for now any developers will need to compile their plugins inside this core repo. I'll be working on documentation and examples for that as soon as I can.

Thank you everyone for the overwhelming support and interest!**

[![Build Status](https://cloud.drone.io/api/badges/stevenaldinger/decker/status.svg)](https://cloud.drone.io/stevenaldinger/decker)

# Decker - Penetration Testing Orchestration Framework
Expand Down Expand Up @@ -171,7 +167,7 @@ Run `make init` to add a `pre-commit` script that will run [linting](https://git

The real power of `decker` comes from plugins. Developing a plugin can be as simple or as complex as you want it to be, as long as the end result is a `.so` file containing the compiled plugin code and a `.hcl` file in the same directory declaring the inputs the plugin is expecting a user to configure.

The recommended way to get started with `decker` plugin development is by cloning the [decker-plugin](https://github.com/stevenaldinger/decker-plugin) repository and following the steps in its documentation. It should only take you a few minutes to get a "Hello World" `decker` plugin running.
Check out [docs/building_plugins.md](./docs/building_plugins.md) to get started on your first plugin. It should only take you a few minutes to get a "Hello World" `decker` plugin running.

## Installing plugins

Expand Down
154 changes: 0 additions & 154 deletions build/package/Dockerfile

This file was deleted.

Loading

0 comments on commit d3b24d1

Please sign in to comment.