mirror of
https://github.com/kingomarnajjar/desktop-environment.git
synced 2026-07-25 22:27:20 +10:00
progress
This commit is contained in:
parent
9d5a7aec49
commit
d1b804ad37
9 changed files with 91 additions and 8 deletions
51
.tmuxinator.yaml
Normal file
51
.tmuxinator.yaml
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
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
|
||||
13
Dockerfile
13
Dockerfile
|
|
@ -58,8 +58,7 @@ RUN rm /usr/local/bin/sudo
|
|||
# Install operating system utilities
|
||||
RUN apt install --yes \
|
||||
sudo \
|
||||
vcsh \
|
||||
wicd-curses
|
||||
vcsh
|
||||
|
||||
# Enable password-less sudo for user
|
||||
RUN echo "$USER ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers
|
||||
|
|
@ -73,8 +72,16 @@ RUN git clone https://github.com/sabrehagen/dotfiles-tmux
|
|||
RUN git clone https://github.com/sabrehagen/dotfiles-vcsh
|
||||
RUN git clone https://github.com/sabrehagen/dotfiles-zsh
|
||||
|
||||
# Add program configurations
|
||||
COPY config/tmuxinator/.desktop.yaml $HOME/.tmuxinator/desktop.yaml
|
||||
|
||||
# Add custom binaries
|
||||
COPY bin /usr/local
|
||||
COPY bin /usr/local/bin
|
||||
|
||||
# Extend existing shell configuration
|
||||
RUN echo 'cd $HOME/repositories/stemn/stemn-backend' >> $HOME/.zshenv
|
||||
RUN echo 'export $STEMN_TMUX_SESSION=desktop-environment' >> $HOME/.zshenv
|
||||
RUN echo 'tmux new-session -d -s $STEMN_TMUX_SESSION tmuxinator desktop' >> $HOME/.zshenv
|
||||
|
||||
# Remove root ownership of all files under non-root user directory
|
||||
RUN chown -R $USER:$USER $HOME
|
||||
|
|
|
|||
1
bin/chrome
Executable file
1
bin/chrome
Executable file
|
|
@ -0,0 +1 @@
|
|||
nohup google-chrome >/dev/null &
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
cd /tmp
|
||||
nohup google-chrome &
|
||||
10
config/tmuxinator/.desktop.yaml
Normal file
10
config/tmuxinator/.desktop.yaml
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
name: dashboard
|
||||
pre_window: clear
|
||||
root: /jackson/home
|
||||
|
||||
windows:
|
||||
- terminal:
|
||||
layout: main-vertical
|
||||
panes:
|
||||
- zsh
|
||||
- zsh
|
||||
|
|
@ -1 +1,12 @@
|
|||
docker push sabrehagen/development-environment:latest
|
||||
# Enable password-less sudo for user
|
||||
echo "$USER ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers
|
||||
|
||||
JACKSON_HOME=/jackson/home
|
||||
JACKSON_CONFIG_CHROME=$JACKSON_HOME/.config/google-chrome
|
||||
|
||||
docker run \
|
||||
--rm \
|
||||
--user root \
|
||||
--volume $JACKSON_CONFIG_CHROME:$JACKSON_CONFIG_CHROME \
|
||||
sabrehagen/desktop-environment:latest \
|
||||
chown -R stemn:stemn $JACKSON_CONFIG_CHROME
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
REPO_ROOT=$(dirname $(realpath $0))/..
|
||||
|
||||
docker build -t sabrehagen/development-environment:latest $REPO_ROOT
|
||||
docker build -t sabrehagen/desktop-environment:latest $REPO_ROOT
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@ docker run \
|
|||
--volume $HOME/Pictures:$JACKSON_HOME/Pictures \
|
||||
--volume $HOME/Videos:$JACKSON_HOME/Videos \
|
||||
--volume ${SSH_AUTH_SOCK-$HOME/.ssh/auth.sock}:$JACKSON_HOME/.ssh/auth.sock \
|
||||
--volume JACKSON_CHROME:$JACKSON_HOME/.config/google-chrome \
|
||||
--volume JACKSON_HOME:$JACKSON_HOME \
|
||||
--workdir $JACKSON_HOME \
|
||||
sabrehagen/development-environment:latest
|
||||
sabrehagen/desktop-environment:latest
|
||||
|
|
|
|||
4
scripts/tmux.sh
Executable file
4
scripts/tmux.sh
Executable file
|
|
@ -0,0 +1,4 @@
|
|||
docker exec \
|
||||
--interactive \
|
||||
--tty \
|
||||
desktop-environment "${@-zsh}"
|
||||
Loading…
Add table
Reference in a new issue