mirror of
https://github.com/kingomarnajjar/desktop-environment.git
synced 2026-07-30 09:36:32 +10:00
good-work
This commit is contained in:
parent
08181ed237
commit
6044f7db4f
6 changed files with 32 additions and 60 deletions
|
|
@ -1,51 +0,0 @@
|
|||
name: dashboard
|
||||
pre_window: export TERRAFORM_TARGET=localhost; clear
|
||||
root: /stemn/stemn-backend/infrastructure/development-environment
|
||||
|
||||
windows:
|
||||
- terminal:
|
||||
layout: tiled
|
||||
panes:
|
||||
- yarn logs
|
||||
- yarn ctop
|
||||
- cd ../..; clear; source ~/.zshenv
|
||||
- s-tui
|
||||
- jest:
|
||||
layout: main-vertical
|
||||
panes:
|
||||
- yarn tmux:test:watch:attach
|
||||
- yarn logs:jest
|
||||
- yarn start:mongo:shell
|
||||
- pipelines:
|
||||
layout: even-vertical
|
||||
panes:
|
||||
- yarn ctop:pipelines
|
||||
- yarn logs:pipelines:server
|
||||
- yarn logs:pipelines:containers
|
||||
- continuous-integration:
|
||||
layout: tiled
|
||||
panes:
|
||||
- yarn logs:abstruse
|
||||
- yarn ctop:abstruse
|
||||
- yarn logs:abstruse:containers
|
||||
- yarn htop
|
||||
- ingress:
|
||||
layout: tiled
|
||||
panes:
|
||||
- yarn logs:ingress
|
||||
- frontend:
|
||||
layout: even-horizontal
|
||||
panes:
|
||||
- yarn tmux:build:frontend:website:attach
|
||||
- yarn tmux:build:frontend:desktop:electron:attach
|
||||
- yarn tmux:build:frontend:desktop:renderer:attach
|
||||
- storage:
|
||||
layout: even-vertical
|
||||
panes:
|
||||
- yarn logs:mongodb
|
||||
- yarn logs:redis
|
||||
- kubernetes:
|
||||
layout: even-horizontal
|
||||
panes:
|
||||
- yarn tmux:kubebox:attach
|
||||
- yarn logs:kubernetes
|
||||
|
|
@ -1,14 +1,34 @@
|
|||
# Enable password-less sudo for user
|
||||
echo "$USER ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers
|
||||
# Host machine user configuration
|
||||
HOST_HOME=$HOME
|
||||
HOST_USER=$(whoami)
|
||||
|
||||
USER=jackson
|
||||
JACKSON_HOME=/$USER/home
|
||||
JACKSON_CONFIG_CHROME=$JACKSON_HOME/.config/google-chrome
|
||||
# Jackson container user configuration
|
||||
CONTAINER_USER=jackson
|
||||
CONTAINER_HOME=/$CONTAINER_USER/home
|
||||
JACKSON_CONFIG_CHROME=$CONTAINER_HOME/.config/google-chrome
|
||||
JACKSON_CONFIG_CODE=$CONTAINER_HOME/.config/Code
|
||||
|
||||
# Take ownership of the JACKSON_CONFIG_CHROME_VOLUME volume
|
||||
# Allow connections from docker containers to the host's X server
|
||||
xhost local:docker
|
||||
|
||||
# Enable password-less sudo for the host user
|
||||
echo "$HOST_USER ALL=(ALL) NOPASSWD:ALL" | sudo tee -a /etc/sudoers
|
||||
|
||||
# Install the latest alacritty config on the host
|
||||
wget -q -O $HOST_HOME/.config/alacritty/alacritty.yml https://raw.githubusercontent.com/sabrehagen/dotfiles-alacritty/master/.config/alacritty/alacritty.yml
|
||||
|
||||
# Take ownership of the JACKSON_CONFIG_CHROME volume
|
||||
docker run \
|
||||
--rm \
|
||||
--user root \
|
||||
--volume JACKSON_CONFIG_CHROME:$JACKSON_CONFIG_CHROME \
|
||||
sabrehagen/desktop-environment:latest \
|
||||
chown -R $USER:$USER $JACKSON_CONFIG_CHROME
|
||||
chown -R $CONTAINER_USER:$CONTAINER_USER $JACKSON_CONFIG_CHROME
|
||||
|
||||
# Take ownership of the JACKSON_CONFIG_CODE volume
|
||||
docker run \
|
||||
--rm \
|
||||
--user root \
|
||||
--volume JACKSON_CONFIG_CODE:$JACKSON_CONFIG_CODE \
|
||||
sabrehagen/desktop-environment:latest \
|
||||
chown -R $CONTAINER_USER:$CONTAINER_USER $JACKSON_CONFIG_CODE
|
||||
|
|
|
|||
2
scripts/clean-hard.sh
Executable file
2
scripts/clean-hard.sh
Executable file
|
|
@ -0,0 +1,2 @@
|
|||
docker volume rm JACKSON_CONFIG_CODE
|
||||
docker volume rm JACKSON_CONFIG_CHROME
|
||||
|
|
@ -1 +1 @@
|
|||
docker volume rm JACKSON_CONFIG_CHROME
|
||||
docker volume rm JACKSON_HOME
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
docker exec \
|
||||
--interactive \
|
||||
--tty \
|
||||
desktop-environment "${@-zsh}"
|
||||
desktop-environment zsh
|
||||
|
|
|
|||
|
|
@ -33,6 +33,7 @@ docker run \
|
|||
--volume $HOME/Videos:$JACKSON_HOME/Videos \
|
||||
--volume ${SSH_AUTH_SOCK-$HOME/.ssh/auth.sock}:$JACKSON_HOME/.ssh/auth.sock \
|
||||
--volume JACKSON_CONFIG_CHROME:$JACKSON_HOME/.config/google-chrome \
|
||||
--volume JACKSON_CONFIG_CODE:$JACKSON_HOME/.config/Code \
|
||||
--volume JACKSON_HOME:$JACKSON_HOME \
|
||||
--workdir $JACKSON_HOME \
|
||||
sabrehagen/desktop-environment:latest
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue