Skip to content

Commit

Permalink
Merge pull request #606 from rodrigondec/fix/587-exercise-setups-names
Browse files Browse the repository at this point in the history
Fix/587 exercise setups names
  • Loading branch information
henriporto authored Nov 19, 2022
2 parents ef0c588 + 0b8e79d commit cd48a87
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion owasp-top10-2021-apps/a1/ecommerce-api/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ GODEP ?= $(GOBIN)/dep
GOLINT ?= $(GOBIN)/golint
GOSEC ?= $(GOBIN)/gosec

A5APIBIN ?= a5ecommerceapi
A1APIBIN ?= a1ecommerceapi

COLOR_RESET = \033[0m
COLOR_COMMAND = \033[36m
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM golang:1.14

WORKDIR /go/src/github.com/globocom/secDevLabs/owasp-top10-2017-apps/a5/ecommerce-api/app
WORKDIR /go/src/github.com/globocom/secDevLabs/owasp-top10-2021-apps/a1/ecommerce-api/app

COPY app/go.mod app/go.sum ./
RUN go mod download
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ COLOR_GREEN='\033[32m'
COLOR_BLUE='\033[1;34m'
COLOR_RESET='\033[0m'

PROJECT='A5 Vulnerable Ecommerce API'
PROJECT='A1 Vulnerable Ecommerce API'
PORT=10005
TRIES=480
LOADING=0
Expand Down Expand Up @@ -69,4 +69,4 @@ if [ $TRIES == 0 ]; then
printf "\n${COLOR_RED}SecDevLabs: Ooops! Something went wrong, please check api details for more information!\n${COLOR_RESET}"
else
printf "\n${COLOR_GREEN}SecDevLabs: 🔥 ${PROJECT} is now running at ${COLOR_RESET}${COLOR_BLUE}http://localhost:$PORT${COLOR_RESET}\n"
fi
fi
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
version: '3'
services:

a5api:
container_name: a5api
a1api:
container_name: a1api
environment:
GOPATH: /go/
API_PORT: 10005
Expand All @@ -21,7 +21,7 @@ services:
ports:
- "10005:10005"
networks:
- a5_net
- a1_net
depends_on:
- mongodb

Expand All @@ -38,9 +38,9 @@ services:
volumes:
- mongo_vol:/data/db
networks:
- a5_net
- a1_net
networks:
a5_net:
a1_net:

volumes:
docker_vol:
Expand Down

0 comments on commit cd48a87

Please sign in to comment.