Skip to content

Commit

Permalink
dev: add dev-shell script
Browse files Browse the repository at this point in the history
  • Loading branch information
ayufan committed Nov 11, 2023
1 parent 320707e commit 6090de7
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions dev-shell
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash

CURDIR="$PWD"

exec docker run \
--rm \
-it \
-e HOME -v "${HOME}:${HOME}" \
-e USER \
-u "$(id -u):$(id -g)" \
$(id -Gz | xargs -0 -n1 -I{} echo "--group-add={}") \
-v /etc/passwd:/etc/passwd:ro \
-v /dev:/dev \
-v "${SSH_AUTH_SOCK}:${SSH_AUTH_SOCK}" \
-e SSH_AUTH_SOCK \
--privileged \
-h rock64-build-env \
-v "${CURDIR}:${CURDIR}" \
-w "${CURDIR}" \
ayufan/rock64-dockerfiles:bookworm \
"$@"

0 comments on commit 6090de7

Please sign in to comment.