Skip to content

Commit 0f7c1f1

Browse files
committed
Add instructions on how to expose the port to the docker container
1 parent 57903c7 commit 0f7c1f1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

RELEASE.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ Setup the key for validity:
364364
The Grails image is officially built on linux in a GitHub action using an Ubuntu container. To run a linux container locally, you can use the following command:
365365

366366
```bash
367-
docker build -t grails:testing -f etc/bin/Dockerfile . && docker run -it --rm -v $(pwd):/home/groovy/project grails:testing bash
367+
docker build -t grails:testing -f etc/bin/Dockerfile . && docker run -it --rm -v $(pwd):/home/groovy/project -p 8080:8080 grails:testing bash
368368
cd grails-verify
369369
verify.sh orgapachegrails-1038 v7.0.0-M4 .
370370
cd grails
@@ -375,6 +375,8 @@ The Grails image is officially built on linux in a GitHub action using an Ubuntu
375375
verify-reproducible.sh .
376376
```
377377

378+
Please note that the argument `-p 8080:8080` is used to expose the port 8080 of the container to the host machine's port 8080 (fromContainerPort:toHostPort). This allows you to access any running Grails application in the container from your host. If you have another application on port 8080, you can change the port mapping to avoid conflicts, e.g., `-p 8080:8081`.
379+
378380
In the event that artifacts differ, simply copy them to your project directory and work on your local machine instead of the docker image:
379381

380382
```bash

0 commit comments

Comments
 (0)