Skip to content

This is a repository for all the files necessary to have a Docker Stack which can be used for the local development testing of your web application.

License

Notifications You must be signed in to change notification settings

gavana-work/appscan-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Purpose

This is a repository for all the files necessary to have a Docker Stack which can be used for the local development testing of your web application. The Docker Stack is made of 2 services:

  • gixy - a tool for testing your nginx.conf file
  • testssl - a great tool for testing the SSL implementation of your local or non-local web application

Instructions

Assuming you have Docker installed and Docker Swarm initialized - do the following.

Prepare the Docker Image for testssl.sh

Build the testssl image.

cd build/testssl
./build-image.sh

Prepare the Docker Stack configuration

Place your nginx.conf file here.

./persistance/gixy/conf/nginx.conf

Change the dummy settings in the ./deploy/docker-compose.yml

x-default-extra_hosts: &default-extra_hosts
  - "hostname:hostip"
testssl:
  image: testssl:latest
  command: ["https://hostname"]
gixy:
  image: yandex/gixy:latest
  volumes:
    - "/opt/docker-stacks/appscan/persistance/gixy/conf/nginx.conf:/etc/nginx/conf/nginx.conf"

Deploy the Stack and View the Scan Results

Make sure your target web application is running, then deploy the stack.

cd deploy
docker stack deploy appscan -c docker-compose.yml

When both images are done with their tasks, the Docker Service will show as stopped. This is intentional due to this setting.

x-default-restart_policy: &default-restart_policy
  condition: none

When the services stop view the logs of each to see the results of your scan. For instance:

docker logs appscan_gixy.1.1mzk3shd7a3k6twmo9c3r2dnf
docker logs appscan_testssl.1.1mzk3shd7a3k6twmo9c3r2dnf

About

This is a repository for all the files necessary to have a Docker Stack which can be used for the local development testing of your web application.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published