-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bugfixes to init scripts and docker setup
- Loading branch information
Egil
committed
Feb 5, 2020
1 parent
83a8107
commit 79d674f
Showing
4 changed files
with
37 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Shell script sourced by the startup scripts before any components come up. | ||
|
||
# Main usage is to set environment variables. Below is a set of | ||
# example variables and values that you can uncomment. | ||
|
||
# See DEBUGGING.md for more information | ||
|
||
# export GLASS_DEBUG_renderer=1 | ||
# export GLASS_DEBUG_renderer_property=0 | ||
# export GLASS_DEBUG_renderer_property_c_property_load_prop_changed=1 | ||
|
||
# export GLASS_DEBUG_glass_ghosts=1 | ||
# export GLASS_DEBUG_glass_input=1 | ||
|
||
# The eventlog is a newline separated JSON file that can be used to | ||
# generate statistics of X events to the renderer and their processing | ||
# time. | ||
# export GLASS_EVENTLOG_renderer=1 | ||
|
||
# Error paths work just like debug paths, but are =1 by default. You | ||
# can disable all error reporting by uncommenting the following line | ||
# export GLASS_ERROR_renderer=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,12 @@ | ||
#! /bin/bash | ||
|
||
IMAGE=redhogorg/glass:0.0.2 | ||
|
||
if [ "$(docker images -q $IMAGE)" == "" ]; then | ||
docker build -t $IMAGE . | ||
fi | ||
|
||
mkdir -p ~/.config/glass | ||
xauth nlist :0 | sed -e 's/^..../ffff/' > /tmp/.docker.xauth | ||
docker run -ti -v /tmp/.X11-unix:/tmp/.X11-unix -v /tmp/.docker.xauth:/tmp/.docker.xauth -e XAUTHORITY=/tmp/.docker.xauth -e DISPLAY=:0 redhogorg/glass:0.0.1 /bin/bash -c "su -c \"bash -c 'cd /InfiniteGlass; make run'\" glass" | ||
docker run -ti -v ~/.config/glass:/home/glass/.config/glass -v /tmp/.X11-unix:/tmp/.X11-unix -v /tmp/.docker.xauth:/tmp/.docker.xauth -e XAUTHORITY=/tmp/.docker.xauth -e DISPLAY=:0 $IMAGE /bin/bash -c "su -c \"bash -c 'cd /InfiniteGlass; make run'\" glass" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters