mirror of
https://github.com/kingomarnajjar/desktop-environment.git
synced 2026-07-26 06:37:21 +10:00
workinggggg
This commit is contained in:
parent
f70bd91f4b
commit
78cb610f9d
4 changed files with 15 additions and 11 deletions
18
Dockerfile
18
Dockerfile
|
|
@ -12,18 +12,19 @@ ENV STEMN_TMUX_SESSION desktop-environment
|
|||
# Make the user's workspace directory
|
||||
RUN mkdir /$USER
|
||||
|
||||
# Rename the first non-root user to jackson
|
||||
RUN usermod \
|
||||
--home $HOME \
|
||||
--login $USER \
|
||||
--move-home \
|
||||
$BASE_USER
|
||||
|
||||
# Rename the first non-root group to jackson
|
||||
RUN groupmod \
|
||||
--new-name \
|
||||
$USER $BASE_USER
|
||||
|
||||
# Rename the first non-root user to jackson
|
||||
RUN usermod \
|
||||
--home $HOME \
|
||||
--groups docker \
|
||||
--login $USER \
|
||||
--move-home \
|
||||
$BASE_USER
|
||||
|
||||
# Install chrome
|
||||
RUN apt update && apt install --yes \
|
||||
apt-transport-https \
|
||||
|
|
@ -69,6 +70,9 @@ RUN apt install --yes \
|
|||
# Enable password-less sudo for user
|
||||
RUN echo "$USER ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
|
||||
|
||||
# Clear and re-cache zsh plugins
|
||||
RUN zsh -c "source antigen.zsh; antigen reset; source $HOME/.zshrc"
|
||||
|
||||
# Clone dotfiles configuration
|
||||
RUN alias https-to-git="sed 's;https://github.com/\(.*\);git@github.com:\1.git;'"
|
||||
RUN git clone https://github.com/sabrehagen/dotfiles-alacritty
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
docker exec \
|
||||
--interactive \
|
||||
--tty \
|
||||
desktop-environment "$@"
|
||||
desktop-environment zsh -c "$*"
|
||||
|
|
|
|||
|
|
@ -8,8 +8,5 @@ sh $REPO_ROOT/scripts/stop.sh
|
|||
sh $REPO_ROOT/scripts/clean.sh
|
||||
sh $REPO_ROOT/scripts/start.sh
|
||||
|
||||
# Race condition causes new shell to fail if started too soon after container restart above
|
||||
sleep 1
|
||||
|
||||
# Enter the desktop environment
|
||||
sh $REPO_ROOT/scripts/shell.sh
|
||||
|
|
|
|||
|
|
@ -39,3 +39,6 @@ docker run \
|
|||
--volume JACKSON_HOME:$JACKSON_HOME \
|
||||
--workdir $JACKSON_HOME \
|
||||
sabrehagen/desktop-environment:latest
|
||||
|
||||
# Wait until the container is running before proceeding
|
||||
until docker inspect desktop-environment | grep Status | grep -m 1 "running" >/dev/null; do sleep 1 ; done
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue