mirror of
https://github.com/kingomarnajjar/desktop-environment.git
synced 2026-07-25 22:27:20 +10:00
work
This commit is contained in:
parent
0f918c11f1
commit
c1813bf370
10 changed files with 22 additions and 8 deletions
|
|
@ -39,7 +39,7 @@ RUN apt update && apt install --yes \
|
|||
apt purge --auto-remove -y curl && \
|
||||
rm -rf /var/lib/apt/lists/* && \
|
||||
rm /etc/apt/sources.list.d/google.list
|
||||
ADD chrome/local.conf /etc/fonts/local.conf
|
||||
ADD config/chrome/local.conf /etc/fonts/local.conf
|
||||
|
||||
# Add user to groups required to run chrome
|
||||
RUN groupadd --system chrome && \
|
||||
|
|
@ -81,6 +81,9 @@ RUN echo 'wifi=wicd-curses' >> $HOME/.zshenv
|
|||
RUN echo 'keychain $HOME/.ssh/id_rsa >/dev/null 2>&1' >> $HOME/.zshenv
|
||||
RUN echo 'source $HOME/.keychain/$(hostname)-sh' >> $HOME/.zshenv
|
||||
|
||||
# Add custom binaries
|
||||
COPY bin /usr/local
|
||||
|
||||
# Remove root ownership of all files under non-root user directory
|
||||
RUN chown -R $USER:$USER $HOME
|
||||
|
||||
|
|
|
|||
2
bin/chrome.sh
Executable file
2
bin/chrome.sh
Executable file
|
|
@ -0,0 +1,2 @@
|
|||
cd /tmp
|
||||
nohup google-chrome &
|
||||
|
|
@ -1 +1,3 @@
|
|||
docker build -t sabrehagen/development-environment:latest $(realpath $0)
|
||||
REPO_ROOT=$(dirname $(realpath $0))/..
|
||||
|
||||
docker build -t sabrehagen/development-environment:latest $REPO_ROOT
|
||||
|
|
@ -1 +0,0 @@
|
|||
sh $(dirname $0)/shell.sh chrome --user-data-dir=/jackson/home/.chrome
|
||||
4
scripts/exec.sh
Executable file
4
scripts/exec.sh
Executable file
|
|
@ -0,0 +1,4 @@
|
|||
docker exec \
|
||||
--interactive \
|
||||
--tty \
|
||||
desktop-environment "$@"
|
||||
4
scripts/restart.sh
Executable file
4
scripts/restart.sh
Executable file
|
|
@ -0,0 +1,4 @@
|
|||
REPO_ROOT=$(dirname $(realpath $0))/..
|
||||
|
||||
sh $REPO_ROOT/stop.sh
|
||||
sh $REPO_ROOT/start.sh
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
docker exec \
|
||||
--interactive \
|
||||
--tty \
|
||||
desktop-environment zsh "$@"
|
||||
desktop-environment "${@-zsh}"
|
||||
|
|
|
|||
|
|
@ -7,17 +7,17 @@ docker run \
|
|||
--device /dev/video0 \
|
||||
--device /dev/usb \
|
||||
--device /dev/bus/usb \
|
||||
--env DBUS_SESSION_BUS_ADDRESS \
|
||||
--env DISPLAY \
|
||||
--env SSH_AUTH_SOCK=/ssh-auth.sock \
|
||||
--env SSH_AUTH_SOCK \
|
||||
--env STEMN_GIT_EMAIL="$(git config --get user.email)" \
|
||||
--env STEMN_GIT_NAME="$(git config --get user.name)" \
|
||||
--group-add audio \
|
||||
--group-add video \
|
||||
--interactive \
|
||||
--name desktop-environment \
|
||||
--net host \
|
||||
--rm \
|
||||
--security-opt seccomp:$REPO_ROOT/chrome/chrome.json \
|
||||
--security-opt seccomp:$REPO_ROOT/config/chrome/chrome.json \
|
||||
--tty \
|
||||
--volume /dev/shm:/dev/shm \
|
||||
--volume /etc/localtime:/etc/localtime:ro \
|
||||
|
|
@ -25,7 +25,7 @@ docker run \
|
|||
--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 \
|
||||
--volume $SSH_AUTH_SOCK:$SSH_AUTH_SOCK \
|
||||
--volume JACKSON_HOME:/jackson/home \
|
||||
--workdir /home \
|
||||
sabrehagen/development-environment:latest
|
||||
Loading…
Add table
Reference in a new issue