Skip to content

Commit

Permalink
Merge pull request #72 from cetic/main
Browse files Browse the repository at this point in the history
Add Docker Compose deployment
  • Loading branch information
mehaase committed Jul 18, 2023
2 parents f0f5f86 + 9153bda commit 57d6524
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Test Docker image

on:
push:
branches:
- 'main'
tags:
- '*'

jobs:
docker-compose:
# run docker-compose file and clean up before action finished
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Launch Attack Flow using Docker Compose
uses: isbang/[email protected]
with:
compose-file: "docker-compose.yml"
12 changes: 12 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: '3.8'

services:
attack-flow:
image: ghcr.io/center-for-threat-informed-defense/attack-flow:main
## Uncomment this to use the local Dockerfile instead of the official image
#build:
# context: .
# dockerfile: ./Dockerfile
ports:
- 8081:80
restart: always
11 changes: 11 additions & 0 deletions docs/builder.rst
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,17 @@ If building the image completes successfully, then use this command to run the i
/docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
...
Alternatively, you can run the Attack Flow Builder with Docker Compose:
* `install Docker <https://docs.docker.com/engine/install>`_
* run the following commands in a terminal:
.. code:: shell
$ curl https://raw.githubusercontent.com/center-for-threat-informed-defense/attack-flow/main/docker-compose.yml
$ docker compose up
This will launch a container with Attack Flow Builder accessible at `http://localhost:8081 <http://localhost:8081>`_ . You can customize the provided docker-compose.yml sample file (volumes, ports, ...).
Download
--------
Expand Down

0 comments on commit 57d6524

Please sign in to comment.