Skip to content

Commit

Permalink
Merge pull request #563 from ragoso/project_scope
Browse files Browse the repository at this point in the history
feat: add project name to limit compose scope
  • Loading branch information
fguisso authored May 26, 2022
2 parents 2192751 + 627e77e commit 7dfd990
Show file tree
Hide file tree
Showing 23 changed files with 66 additions and 46 deletions.
5 changes: 3 additions & 2 deletions owasp-top10-2016-mobile/m2/cool_games/server/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,11 @@ install: env compose msg

## Composes project using docker-compose
compose: compose-down
docker-compose -f deployments/docker-compose.yml up -d --build --force-recreate
docker-compose -f deployments/docker-compose.yml -p secDevLabs up -d --build --force-recreate

## Down project using docker-compose
compose-down:
docker-compose -f deployments/docker-compose.yml down -v --remove-orphans
docker-compose -f deployments/docker-compose.yml -p secDevLabs down -v --remove-orphans

## Prints initialization message after compose phase
msg:
Expand Down
5 changes: 3 additions & 2 deletions owasp-top10-2016-mobile/m4/note-box/server/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,11 @@ install: env compose msg

## Composes project using docker-compose
compose: compose-down
docker-compose -f deployments/docker-compose.yml up -d --build --force-recreate
docker-compose -f deployments/docker-compose.yml -p secDevLabs up -d --build --force-recreate

## Down project using docker-compose
compose-down:
docker-compose -f deployments/docker-compose.yml down -v --remove-orphans
docker-compose -f deployments/docker-compose.yml -p secDevLabs down -v --remove-orphans

## Prints initialization message after compose phase
msg:
Expand Down
5 changes: 3 additions & 2 deletions owasp-top10-2016-mobile/m5/panda_zap/server/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,11 @@ install: compose msg

## Composes project using docker-compose
compose: compose-down
docker-compose -f docker-compose.yml up -d --build --force-recreate
docker-compose -f docker-compose.yml -p secDevLabs up -d --build --force-recreate

## Down project using docker-compose
compose-down:
docker-compose -f docker-compose.yml down -v --remove-orphans
docker-compose -f docker-compose.yml -p secDevLabs down -v --remove-orphans

## Prints initialization message after compose phase
msg:
Expand Down
5 changes: 3 additions & 2 deletions owasp-top10-2021-apps/a1/camplake-api/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ install: generate-passwords compose

## Runs project using docker-compose
compose: compose-down
docker-compose -f deployments/docker-compose.yml up -d --build --force-recreate
docker-compose -f deployments/docker-compose.yml -p secDevLabs up -d --build --force-recreate

## Down project using docker-compose
compose-down:
docker-compose -f deployments/docker-compose.yml down -v --remove-orphans
docker-compose -f deployments/docker-compose.yml -p secDevLabs down -v --remove-orphans

## Generates passwords and set them as environment variables
generate-passwords:
Expand Down
5 changes: 3 additions & 2 deletions owasp-top10-2021-apps/a1/ecommerce-api/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,11 @@ lint:

## Runs project using docker-compose
compose: compose-down
docker-compose -f deployments/docker-compose.yml up -d --build --force-recreate
docker-compose -f deployments/docker-compose.yml -p secDevLabs up -d --build --force-recreate

## Down project using docker-compose
compose-down:
docker-compose -f deployments/docker-compose.yml down -v --remove-orphans
docker-compose -f deployments/docker-compose.yml -p secDevLabs down -v --remove-orphans

## Generates passwords and set them as environment variables
generate-passwords:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ services:
MONGO_DATABASE_NAME: DB
MONGO_PORT: 27017
MONGO_TIMEOUT: 60
MONGO_PORT: 27017
MONGO_TIMEOUT: 60
env_file:
- dockers.env
build:
Expand Down
5 changes: 3 additions & 2 deletions owasp-top10-2021-apps/a1/tictactoe/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ install: env compose msg

## Composes project using docker-compose
compose: compose-down
docker-compose -f deployments/docker-compose.yml up -d --build --force-recreate
docker-compose -f deployments/docker-compose.yml -p secDevLabs up -d --build --force-recreate

## Down project using docker-compose
compose-down:
docker-compose -f deployments/docker-compose.yml down -v --remove-orphans
docker-compose -f deployments/docker-compose.yml -p secDevLabs down -v --remove-orphans

## Generate new environment variables for Stegonography app
env:
Expand Down
5 changes: 3 additions & 2 deletions owasp-top10-2021-apps/a2/snake-pro/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@ install: compose msg

## Composes project using docker-compose
compose: compose-down
docker-compose -f deployments/docker-compose.yml up -d --build --force-recreate
docker-compose -f deployments/docker-compose.yml -p secDevLabs up -d --build --force-recreate

## Down project using docker-compose
compose-down:
docker-compose -f deployments/docker-compose.yml down -v --remove-orphans
docker-compose -f deployments/docker-compose.yml -p secDevLabs down -v --remove-orphans

## Prints initialization message after compose phase
msg:
Expand Down
5 changes: 3 additions & 2 deletions owasp-top10-2021-apps/a3/comment-killer/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ install: compose msg

## Runs project using docker-compose
compose: compose-down
docker-compose -f deployments/docker-compose.yml up -d --build --force-recreate
docker-compose -f deployments/docker-compose.yml -p secDevLabs up -d --build --force-recreate

## Down project using docker-compose
compose-down:
docker-compose -f deployments/docker-compose.yml down -v --remove-orphans
docker-compose -f deployments/docker-compose.yml -p secDevLabs down -v --remove-orphans

## Deploys project and view docker logs
deploy: compose
Expand Down
5 changes: 3 additions & 2 deletions owasp-top10-2021-apps/a3/copy-n-paste/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@ test: go test ./...

## Run project using docker-compose
compose: compose-down
docker-compose -f deployments/docker-compose.yml up -d --build --force-recreate
docker-compose -f deployments/docker-compose.yml -p secDevLabs up -d --build --force-recreate

## Down project using docker-compose
compose-down:
docker-compose -f deployments/docker-compose.yml down -v --remove-orphans
docker-compose -f deployments/docker-compose.yml -p secDevLabs down -v --remove-orphans

exploit:
chmod +x deployments/exploit.sh
Expand Down
5 changes: 3 additions & 2 deletions owasp-top10-2021-apps/a3/gossip-world/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ install: compose msg

## Runs project using docker-compose
compose: compose-down
docker-compose -f deployments/docker-compose.yml up -d --build --force-recreate
docker-compose -f deployments/docker-compose.yml -p secDevLabs up -d --build --force-recreate

## Down project using docker-compose
compose-down:
docker-compose -f deployments/docker-compose.yml down -v --remove-orphans
docker-compose -f deployments/docker-compose.yml -p secDevLabs down -v --remove-orphans

## Deploys project and view docker logs
deploy: compose
Expand Down
5 changes: 3 additions & 2 deletions owasp-top10-2021-apps/a3/mongection/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ install: compose msg

## Run project using docker-compose
compose: compose-down
docker-compose -f deployments/docker-compose.yml up -d --build --force-recreate
docker-compose -f deployments/docker-compose.yml -p secDevLabs up -d --build --force-recreate

## Down project using docker-compose
compose-down:
docker-compose -f deployments/docker-compose.yml down -v --remove-orphans
docker-compose -f deployments/docker-compose.yml -p secDevLabs down -v --remove-orphans

## Prints initialization message after compose phase - You can find that the check-init.sh script is also in the docs folder.
msg:
Expand Down
5 changes: 3 additions & 2 deletions owasp-top10-2021-apps/a3/sstype/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ install: compose msg

## Run project using docker-compose
compose: compose-down
docker-compose -f deployments/docker-compose.yml up -d --build --force-recreate
docker-compose -f deployments/docker-compose.yml -p secDevLabs up -d --build --force-recreate

## Down project using docker-compose
compose-down:
docker-compose -f deployments/docker-compose.yml down -v --remove-orphans
docker-compose -f deployments/docker-compose.yml -p secDevLabs down -v --remove-orphans

## Prints initialization message after compose phase - You can find that the check-init.sh script is also in the docs folder.
msg:
Expand Down
5 changes: 3 additions & 2 deletions owasp-top10-2021-apps/a3/streaming/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,11 @@ install: compose msg

## Run project using docker-compose
compose: compose-down
docker-compose -f deployments/docker-compose.yml up -d --build --force-recreate
docker-compose -f deployments/docker-compose.yml -p secDevLabs up -d --build --force-recreate

## Down project using docker-compose
compose-down:
docker-compose -f deployments/docker-compose.yml down -v --remove-orphans
docker-compose -f deployments/docker-compose.yml -p secDevLabs down -v --remove-orphans

## Prints initialization message after compose phase - You can find that the check-init.sh script is also in the docs folder.
msg:
Expand Down
5 changes: 3 additions & 2 deletions owasp-top10-2021-apps/a5/misconfig-wordpress/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ install: compose msg

## Run project using docker-compose
compose: compose-down
docker-compose -f deployments/docker-compose.yml up -d --build --force-recreate
docker-compose -f deployments/docker-compose.yml -p secDevLabs up -d --build --force-recreate

## Down project using docker-compose
compose-down:
docker-compose -f deployments/docker-compose.yml down -v --remove-orphans
docker-compose -f deployments/docker-compose.yml -p secDevLabs down -v --remove-orphans

## Prints initialization message after compose phase
msg:
Expand Down
5 changes: 3 additions & 2 deletions owasp-top10-2021-apps/a5/stegonography/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ install: env compose msg

## Composes project using docker-compose
compose: compose-down
docker-compose -f deployments/docker-compose.yml up -d --build --force-recreate
docker-compose -f deployments/docker-compose.yml -p secDevLabs up -d --build --force-recreate

## Down project using docker-compose
compose-down:
docker-compose -f deployments/docker-compose.yml down -v --remove-orphans
docker-compose -f deployments/docker-compose.yml -p secDevLabs down -v --remove-orphans

## Generate new environment variables for Stegonography app
env:
Expand Down
5 changes: 3 additions & 2 deletions owasp-top10-2021-apps/a5/vinijr-blog/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ install: compose msg

## Composes project using docker-compose
compose: compose-down
docker-compose -f deployments/docker-compose.yml up -d --build --force-recreate
docker-compose -f deployments/docker-compose.yml -p secDevLabs up -d --build --force-recreate

## Down project using docker-compose
compose-down:
docker-compose -f deployments/docker-compose.yml down -v --remove-orphans
docker-compose -f deployments/docker-compose.yml -p secDevLabs down -v --remove-orphans

## Prints initialization message after compose phase
msg:
Expand Down
5 changes: 3 additions & 2 deletions owasp-top10-2021-apps/a6/cimentech/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ install: compose msg

## Composes project using docker-compose
compose: compose-down
docker-compose -f deployments/docker-compose.yml up -d --build --force-recreate
docker-compose -f deployments/docker-compose.yml -p secDevLabs up -d --build --force-recreate

## Down project using docker-compose
compose-down:
docker-compose -f deployments/docker-compose.yml down -v --remove-orphans
docker-compose -f deployments/docker-compose.yml -p secDevLabs down -v --remove-orphans

## Prints initialization message after compose phase
msg:
Expand Down
5 changes: 3 additions & 2 deletions owasp-top10-2021-apps/a6/golden-hat/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,11 @@ install: compose msg

## Run project using docker-compose
compose: compose-down
docker-compose -f deployments/docker-compose.yml up -d --build --force-recreate
docker-compose -f deployments/docker-compose.yml -p secDevLabs up -d --build --force-recreate

## Down project using docker-compose
compose-down:
docker-compose -f deployments/docker-compose.yml down -v --remove-orphans
docker-compose -f deployments/docker-compose.yml -p secDevLabs down -v --remove-orphans

## Prints initialization message after compose phase - You can find that the check-init.sh script is also in the docs folder.
msg:
Expand Down
5 changes: 3 additions & 2 deletions owasp-top10-2021-apps/a7/insecure-go-project/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,11 @@ install: compose msg

## Composes project using docker-compose
compose: compose-down
docker-compose -f deployments/docker-compose.yml up -d --build --force-recreate
docker-compose -f deployments/docker-compose.yml -p secDevLabs up -d --build --force-recreate

## Down project using docker-compose
compose-down:
docker-compose -f deployments/docker-compose.yml down -v --remove-orphans
docker-compose -f deployments/docker-compose.yml -p secDevLabs down -v --remove-orphans

## Prints initialization message after compose phase
msg:
Expand Down
5 changes: 3 additions & 2 deletions owasp-top10-2021-apps/a7/saidajaula-monster/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ install: compose msg

## Composes project using docker-compose
compose: compose-down
docker-compose -f deployments/docker-compose.yml up -d --build --force-recreate
docker-compose -f deployments/docker-compose.yml -p secDevLabs up -d --build --force-recreate

## Down project using docker-compose
compose-down:
docker-compose -f deployments/docker-compose.yml down -v --remove-orphans
docker-compose -f deployments/docker-compose.yml -p secDevLabs down -v --remove-orphans

## Prints initialization message after compose phase
msg:
Expand Down
5 changes: 3 additions & 2 deletions owasp-top10-2021-apps/a8/amarelo-designs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ install: compose msg

## Composes project using docker-compose
compose: compose-down
docker-compose -f deployments/docker-compose.yml up -d --build --force-recreate
docker-compose -f deployments/docker-compose.yml -p secDevLabs up -d --build --force-recreate

## Down project using docker-compose
compose-down:
docker-compose -f deployments/docker-compose.yml down -v --remove-orphans
docker-compose -f deployments/docker-compose.yml -p secDevLabs down -v --remove-orphans

## Prints initialization message after compose phase
msg:
Expand Down
5 changes: 3 additions & 2 deletions owasp-top10-2021-apps/a9/games-irados/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ install: compose msg

## Run project using docker-compose
compose: compose-down
docker-compose -f deployments/docker-compose.yml up -d --build --force-recreate
docker-compose -f deployments/docker-compose.yml -p secDevLabs up -d --build --force-recreate

## Down project using docker-compose
compose-down:
docker-compose -f deployments/docker-compose.yml down -v --remove-orphans
docker-compose -f deployments/docker-compose.yml -p secDevLabs down -v --remove-orphans

## Prints initialization message after compose phase
msg:
Expand Down

0 comments on commit 7dfd990

Please sign in to comment.