File tree Expand file tree Collapse file tree 4 files changed +9
-9
lines changed
owasp-top10-2021-apps/a1/ecommerce-api Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ GODEP ?= $(GOBIN)/dep
99GOLINT ?= $(GOBIN ) /golint
1010GOSEC ?= $(GOBIN ) /gosec
1111
12- A5APIBIN ?= a5ecommerceapi
12+ A1APIBIN ?= a1ecommerceapi
1313
1414COLOR_RESET = \033[0m
1515COLOR_COMMAND = \033[36m
Original file line number Diff line number Diff line change 11FROM golang:1.14
22
3- WORKDIR /go/src/github.com/globocom/secDevLabs/owasp-top10-2017 -apps/a5 /ecommerce-api/app
3+ WORKDIR /go/src/github.com/globocom/secDevLabs/owasp-top10-2021 -apps/a1 /ecommerce-api/app
44
55COPY app/go.mod app/go.sum ./
66RUN go mod download
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ COLOR_GREEN='\033[32m'
99COLOR_BLUE=' \033[1;34m'
1010COLOR_RESET=' \033[0m'
1111
12- PROJECT=' A5 Vulnerable Ecommerce API'
12+ PROJECT=' A1 Vulnerable Ecommerce API'
1313PORT=10005
1414TRIES=480
1515LOADING=0
@@ -69,4 +69,4 @@ if [ $TRIES == 0 ]; then
6969 printf " \n${COLOR_RED} SecDevLabs: Ooops! Something went wrong, please check api details for more information!\n${COLOR_RESET} "
7070else
7171 printf " \n${COLOR_GREEN} SecDevLabs: 🔥 ${PROJECT} is now running at ${COLOR_RESET}${COLOR_BLUE} http://localhost:$PORT ${COLOR_RESET} \n"
72- fi
72+ fi
Original file line number Diff line number Diff line change 11version : ' 3'
22services :
33
4- a5api :
5- container_name : a5api
4+ a1api :
5+ container_name : a1api
66 environment :
77 GOPATH : /go/
88 API_PORT : 10005
@@ -21,7 +21,7 @@ services:
2121 ports :
2222 - " 10005:10005"
2323 networks :
24- - a5_net
24+ - a1_net
2525 depends_on :
2626 - mongodb
2727
@@ -38,9 +38,9 @@ services:
3838 volumes :
3939 - mongo_vol:/data/db
4040 networks :
41- - a5_net
41+ - a1_net
4242networks :
43- a5_net :
43+ a1_net :
4444
4545volumes :
4646 docker_vol :
You can’t perform that action at this time.
0 commit comments