Skip to content

Commit

Permalink
Worked on compatibilty with new Code, Core, etc.
Browse files Browse the repository at this point in the history
Switched console to URXVT.
  • Loading branch information
cmiles74 committed Nov 17, 2016
1 parent 577f900 commit 3233b75
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 7 deletions.
13 changes: 8 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ run curl -sL https://deb.nodesource.com/setup_4.x | bash -
run apt-get update

# vscode dependencies
run apt-get -y --no-install-recommends install libgtk2.0-0 libgtk-3-0 libpango-1.0-0 libcairo2 libfontconfig1 libgconf2-4 libnss3 libasound2 libxtst6 unzip libglib2.0-bin libcanberra-gtk-module libgl1-mesa-glx curl build-essential gettext libstdc++6 software-properties-common wget git xterm automake libtool autogen nodejs libnotify-bin aspell aspell-en htop git emacs mono-complete gvfs-bin libxss1 rxvt-unicode x11-xserver-utils
run apt-get -y --no-install-recommends install libgtk2.0-0 libgtk-3-0 libpango-1.0-0 libcairo2 libfontconfig1 libgconf2-4 libnss3 libasound2 libxtst6 unzip libglib2.0-bin libcanberra-gtk-module libgl1-mesa-glx curl build-essential gettext libstdc++6 software-properties-common wget git xterm automake libtool autogen nodejs libnotify-bin aspell aspell-en htop git emacs mono-complete gvfs-bin libxss1 rxvt-unicode-256color x11-xserver-utils

# update npm
run npm install npm -g
Expand Down Expand Up @@ -39,7 +39,7 @@ run fc-cache -f -v
# create our developer user
workdir /root
run groupadd -r developer -g 1000
run useradd -u 1000 -r -g developer -d /developer -c "Software Developer" developer
run useradd -u 1000 -r -g developer -d /developer -s /bin/bash -c "Software Developer" developer
copy /developer /developer
workdir /developer

Expand Down Expand Up @@ -73,8 +73,11 @@ user developer
workdir /developer
run git clone --recursive https://github.com/syl20bnr/spacemacs ~/.emacs.d

# set path
run export PATH=$PATH:/developer/.npm/bin
# set environment variables
env PATH /developer/.npm/bin:$PATH
env NODE_PATH /developer/.npm/lib/node_modules:$NODE_PATH
env BROWSER /developer/.local/share/firefox/firefox-bin
env SHELL /bin/bash

# mount points
volume ["/developer/.config/Code"]
Expand All @@ -83,5 +86,5 @@ volume ["/developer/.ssh"]
volume ["/developer/project"]

# start vscode
entrypoint ["/usr/bin/xterm"]
entrypoint ["/developer/bin/start-shell"]

1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ one that will do what you want.
-p 5000:5000 \
--device /dev/snd \
--name myproject-vscode \
--entrypoint "xterm" \
cmiles74/docker-vscode

docker exec myproject-vscode /developer/bin/start-vscode
Expand Down
21 changes: 21 additions & 0 deletions developer/.Xresources
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Urxvt*imLocale: en_US.UTF-8
URxvt*termName: rxvt-unicode
URxvt.perl-ext-common: default,matcher
URxvt.iso14755: False
URxvt.keysym.Shift-Control-C: perl:clipboard:copy
URxvt.keysym.Shift-Control-V: perl:clipboard:paste
URxvt.clipboard.copycmd: xsel -ib
URxvt.clipboard.pastecmd: xsel -ob

URxvt.scrollBar: false
URxvt.font: xft:Hack:size=9
URxvt.boldFont: xft:Hack:style:Bold:size=9,xft:Unifont:size=9
URxvt.ItalicFont: xft:Hack:style:Italic:size=9,xft:Unifont:size=9
URxvt.boldItalicFont: xft:Hack:style:Bold Italic:size=9,xft:Unifont:size=9
URxvt.letterSpace: -1

URxvt.depth: 32

URxvt.matcher.button: 1
URxvt.url-select.underline: true
URxvt.geometry: 100x24
3 changes: 3 additions & 0 deletions developer/bin/start-shell
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
xrdb -merge /developer/.Xresources
/usr/bin/urxvt -title "Shell"
2 changes: 1 addition & 1 deletion developer/bin/start-vscode
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
export SHELL=/bin/bash
xrdb -merge /developer/.Xresources
/usr/bin/code "$@"

0 comments on commit 3233b75

Please sign in to comment.