File tree Expand file tree Collapse file tree
docker/react_ui_devcontainer/files Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#! /bin/sh
22
33# Block SSH agent forwarding if the environment variable `BLOCK_SSH_AUTH_SOCK` is set to "true"
4+ #
5+ # VS Code forwards the SSH agent socket to the dev container by default, so this allows users
6+ # to opt out of that behavior if they want to disable SSH agent forwarding to isolate the dev container.
7+ # JetBrains IDEs forward the SSH agent socket only if allowed by the user.
48if [ " $BLOCK_SSH_AUTH_SOCK " = " true" ]; then
59 # Disable SSH agent forwarding for the current shell session
610 export SSH_AUTH_SOCK=/dev/null
Original file line number Diff line number Diff line change 11#! /bin/sh
22
3+ # This script is a wrapper around the `mkdocs` command that executes it within the Docker container.
4+ # Docker Socket is owned by root, so we need to use `sudo` to access it.
35sudo docker compose -p " $COMPOSE_PROJECT_NAME " exec docs mkdocs " $@ "
Original file line number Diff line number Diff line change 11#! /bin/sh
22
3+ # This script is a wrapper around the `node` command that executes it within the Docker container.
4+ # Docker Socket is owned by root, so we need to use `sudo` to access it.
35sudo docker compose -p " $COMPOSE_PROJECT_NAME " exec node node " $@ "
Original file line number Diff line number Diff line change 11#! /bin/sh
22
3+ # This script is a wrapper around the `npm` command that executes it within the Docker container.
4+ # Docker Socket is owned by root, so we need to use `sudo` to access it.
35if [ " $1 " = " run" ] && echo " $2 " | grep -q ' ^test:playwright' ; then
46 sudo docker compose -p " $COMPOSE_PROJECT_NAME " exec playwright npm " $@ "
57else
Original file line number Diff line number Diff line change 11#! /bin/sh
22
3+ # This script is a wrapper around the `npx` command that executes it within the Docker container.
4+ # Docker Socket is owned by root, so we need to use `sudo` to access it.
35sudo docker compose -p " $COMPOSE_PROJECT_NAME " exec node npx " $@ "
You can’t perform that action at this time.
0 commit comments