Skip to content
This repository was archived by the owner on Feb 8, 2022. It is now read-only.

Commit

Permalink
run-nut.sh works for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
Cameron Taggart committed Apr 30, 2016
1 parent 6975242 commit 4a0a720
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 11 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
.bash_history
.bash_history
.vscode/
test/
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ RUN cd /root \
&& su - vscode -c /home/vscode/install-vscode-Go.sh

WORKDIR /root
CMD ./vscode.sh
CMD su - vscode -c "code -w ."
2 changes: 0 additions & 2 deletions root/vscode.sh

This file was deleted.

6 changes: 5 additions & 1 deletion run-dockerformac.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,8 @@ open -a XQuartz
xhost + # TODO limit to just the host
# bridge100 is disappearing after a reboot
ip=`ifconfig bridge100 | grep inet | awk '$1=="inet" {print $2}'`
docker run --rm -it -e DISPLAY=$ip:0 ctaggart/golang-vscode
docker run --rm -it \
-e DISPLAY=$ip:0 --security-opt seccomp=unconfined \
-v `pwd`:/home/vscode/golang-gscode \
ctaggart/golang-vscode \
su - vscode -c "cd ~/golang-gscode; code -w ."
6 changes: 0 additions & 6 deletions run-dockermachine.sh

This file was deleted.

10 changes: 10 additions & 0 deletions run-nut.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/sh
open -a XQuartz
xhost + # TODO limit to just the host
# bridge100 is disappearing after a reboot
ip=`ifconfig bridge100 | grep inet | awk '$1=="inet" {print $2}'`
docker run --rm -it \
-e DISPLAY=$ip:0 --security-opt seccomp=unconfined \
-v $HOME/go/nut:/home/vscode/nut \
ctaggart/golang-vscode \
su - vscode -c "cd ~/nut; ./vscode.sh"

0 comments on commit 4a0a720

Please sign in to comment.