Skip to content

Commit

Permalink
rfac: added network host in clientDevContainer in Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
yp969803 committed Jan 9, 2025
1 parent 95983b6 commit 7bdf373
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ buildClientDevImage:
runProducerDevContainer: buildProducerDevImage
@docker run -it --rm -v $(shell pwd)/src/producer/:/app -v /var/autocd:/var/autocd -p 5001:5001 autocd-producer /bin/bash -c "mvn spring-boot:run"

runClientDevImage: buildClientDevImage
@docker run -it --rm -v $(shell pwd)/src/client/:/app -p 3000:3000 autocd-client /bin/bash -c "npm run start"
runClientDevContainer: buildClientDevImage
@docker run -it --rm --network host -v $(shell pwd)/src/client/:/app autocd-client /bin/bash -c "npm run start"


help:
Expand All @@ -32,7 +32,7 @@ help:
@echo " make buildProducerDevImage - Build java dev docker image"
@echo " make runProducerDevContainer - Run java dev docker image"
@echo " make buildClientDevImage - Build client dev image"
@echo " make runClientDevImage" - Run client dev image"
@echo " make runClientDevContainer" - Run client dev image"
@echo " make run - Run the application"
@echo " make get - Install dependencies"
@echo " make format - Format code"
Expand Down
2 changes: 1 addition & 1 deletion docs/DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ cd autoCD
make runProducerDevContainer
## Run docker container for frontend react development on different terminal
make runClientDevImage
make runClientDevContainer
```

Expand Down

0 comments on commit 7bdf373

Please sign in to comment.