Skip to content

Commit

Permalink
DX: Publish the simulators port
Browse files Browse the repository at this point in the history
This commit publishes the simulators default port 15423 on the
development container so that processes on the host can access it
  • Loading branch information
NickeZ committed Jan 9, 2025
1 parent 84301a8 commit 9fc27de
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/dockerenv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,15 @@ dockerdev () {
$RUNTIME rm "$CONTAINER_NAME"
fi

# SYS_PTRACE is needed to run address sanitizer
# * `SYS_PTRACE` is needed to run address sanitizer
# * `-p 15423` publishes the default port the simulator listens on
$RUNTIME run \
--detach \
--interactive --tty \
--name="$CONTAINER_NAME" \
-v "$repo_path":"$MOUNT_DIR" \
--cap-add SYS_PTRACE \
-p 15423:15423 \
${CONTAINER_IMAGE}:${CONTAINER_VERSION} bash

if [ "$RUNTIME" = "docker" ] ; then
Expand Down

0 comments on commit 9fc27de

Please sign in to comment.