Skip to content

Commit

Permalink
dev-terminal: add bin/shell
Browse files Browse the repository at this point in the history
  • Loading branch information
legobeat committed Aug 16, 2024
1 parent c863cdc commit 539e4d7
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions imags/X11/dev-terminal/bin/shell
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash
if [ -z "${COMPOSE_PROJECT_NAME}" ]; then
COMPOSE_PROJECT_NAME="$(basename "${ROOT_DIR:-${L7_ROOT_DIR}}")"
fi
export COMPOSE_PROJECT_NAME

DOCKER_HOST=${DOCKER_HOST:-${CONTAINER_HOST}} \
docker-compose --progress=quiet --log-level=error \
--project-name="${COMPOSE_PROJECT_NAME}" --project-directory=/app \
run --rm -w /src \
--entrypoint=${USER_SHELL:-/bin/zsh} --no-deps --no-build --pull=never \
-e '*' \
-e TMUX=disable \
dev-shell ${@}

0 comments on commit 539e4d7

Please sign in to comment.