This commit is contained in:
Jackson Delahunt 2019-01-11 10:59:29 +00:00
parent 528cd30fac
commit 3e26a09328
9 changed files with 1588 additions and 15 deletions

View file

@ -39,6 +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 user to groups required to run chrome
RUN groupadd --system chrome && \

1536
chrome/chrome.json Normal file

File diff suppressed because it is too large Load diff

35
chrome/local.conf Normal file
View file

@ -0,0 +1,35 @@
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<match target="font">
<edit mode="assign" name="rgba">
<const>rgb</const>
</edit>
</match>
<match target="font">
<edit mode="assign" name="hinting">
<bool>true</bool>
</edit>
</match>
<match target="font">
<edit mode="assign" name="hintstyle">
<const>hintslight</const>
</edit>
</match>
<match target="font">
<edit mode="assign" name="antialias">
<bool>true</bool>
</edit>
</match>
<match target="font">
<edit mode="assign" name="lcdfilter">
<const>lcddefault</const>
</edit>
</match>
<match target="font">
<edit name="embeddedbitmap" mode="assign">
<bool>false</bool>
</edit>
</match>
</fontconfig>

View file

@ -1,14 +0,0 @@
{
"author": "Jackson Delahunt <jackson@stemn.com>",
"description": "Desktop Development Environment",
"license": "MIT",
"name": "development-environment",
"private": false,
"repository": "http://github.com/sabrehagen/development-environment",
"scripts": {
"build": "docker build -t sabrehagen/development-environment:latest .",
"push": "docker push sabrehagen/development-environment:latest",
"shell": "sh shell.sh"
},
"version": "1.0.0"
}

1
scripts/bootstrap.sh Executable file
View file

@ -0,0 +1 @@
docker push sabrehagen/development-environment:latest

1
scripts/build.sh Executable file
View file

@ -0,0 +1 @@
docker build -t sabrehagen/development-environment:latest $(realpath $0)

1
scripts/chrome.sh Executable file
View file

@ -0,0 +1 @@
sh shell.sh chrome --user-data-dir=/jackson/home/.chrome

1
scripts/push.sh Executable file
View file

@ -0,0 +1 @@
docker push sabrehagen/development-environment:latest

View file

@ -1,14 +1,25 @@
docker run \
--device /dev/snd \
--device /dev/dri \
--device /dev/video0 \
--device /dev/usb \
--device /dev/bus/usb \
--env DISPLAY=$DISPLAY \
--env SSH_AUTH_SOCK=/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 \
--memory 6gb \
--name desktop-shell-$(date +%s) \
--rm \
--security-opt seccomp:/etc/docker/seccomp/chrome.json \
--tty \
--volume /dev/shm:/dev/shm \
--volume /etc/hosts:/etc/hosts \
--volume /tmp/.X11-unix:/tmp/.X11-unix \
--VOLUME /etc/localtime:/etc/localtime:ro \
--VOLUME /tmp/.X11-unix:/tmp/.X11-unix \
--volume /var/run/docker.sock:/var/run/docker.sock \
--volume $HOME/.ssh:$STEMN_HOME/.ssh \
--volume $HOME:/home \