mirror of
https://github.com/kingomarnajjar/desktop-environment.git
synced 2026-07-26 06:37:21 +10:00
shell
This commit is contained in:
parent
3fa71157a3
commit
d8dc2223ba
2 changed files with 19 additions and 1 deletions
|
|
@ -7,7 +7,8 @@
|
|||
"repository": "http://github.com/sabrehagen/development-environment",
|
||||
"scripts": {
|
||||
"build": "docker build -t sabrehagen/development-environment:latest .",
|
||||
"push": "docker push sabrehagen/development-environment:latest"
|
||||
"push": "docker push sabrehagen/development-environment:latest",
|
||||
"shell": "sh shell.sh"
|
||||
},
|
||||
"version": "1.0.0"
|
||||
}
|
||||
|
|
|
|||
17
shell.sh
Executable file
17
shell.sh
Executable file
|
|
@ -0,0 +1,17 @@
|
|||
docker run \
|
||||
--env DISPLAY=$DISPLAY \
|
||||
--env SSH_AUTH_SOCK=/ssh-auth.sock \
|
||||
--env STEMN_GIT_EMAIL="$(git config --get user.email)" \
|
||||
--env STEMN_GIT_NAME="$(git config --get user.name)" \
|
||||
--interactive \
|
||||
--name desktop-shell-$(date +%s) \
|
||||
--rm \
|
||||
--tty \
|
||||
--volume /etc/hosts:/etc/hosts \
|
||||
--volume /tmp/.X11-unix:/tmp/.X11-unix \
|
||||
--volume /var/run/docker.sock:/var/run/docker.sock \
|
||||
--volume $HOME/.ssh:$STEMN_HOME/.ssh \
|
||||
--volume $HOME:/home \
|
||||
--volume $SSH_AUTH_SOCK:/ssh-auth.sock \
|
||||
--workdir /home \
|
||||
stemn/development-environment:latest "$@"
|
||||
Loading…
Add table
Reference in a new issue