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
@@ -1,5 +1,11 @@
FROM golang:1.11
RUN apt-get update && apt-get install -y git libx11-dev tor net-tools sudo
RUN apt-get update && apt-get install -y git libx11-dev tor net-tools sudo gdb strace x11vnc xvfb less apt-transport-https
## Setting up coffeescript for snowflake proxy
RUN echo "deb https://deb.nodesource.com/node_12.x stretch main\ndeb-src https://deb.nodesource.com/node_12.x stretch main" | tee /etc/apt/sources.list.d/nodesource.list
RUN curl -sL https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -
RUN apt-get update && apt-get install -y nodejs firefox-esr
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
@@ -20,3 +20,10 @@ Inside the snowbox container, execute ```./script.sh --build``` to build and run
###Attaching additional terminals to the test environment
Open a new terminal and execute ```./snowbox_run --attach```. Excluding the --attach argument will prompt the script to attempt an attachment if the container is already running.
###Running a browser-based proxy
To run and debug a browser-based proxy, you can connect to the docker container using VNC. On your host machine, run the following command:
```vncviewer localhost```
A window showing a running firefox session should appear. You can then navigate to
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
@@ -25,6 +25,10 @@ done
# we manually copy files locally (avoiding go install so we don't have to recompile everytime)
if [ "$build"-ne"0" ];then
#kill broker, proxy, client processes
pkill -f broker
pkill -f client
cd snowflake.git/broker
go get -d -v
@@ -37,6 +41,11 @@ if [ "$build" -ne "0" ]; then
cd ../client
go get -d -v
go build -v
cd ../proxy
cake build
#need to point to our localhost broker instead
sed -i 's/snowflake-broker.bamsoftware.com/localhost:8080/' build/snowflake.js
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
@@ -26,7 +26,7 @@ if [ "$attach" -eq "0" ]; then
if [ $?-ne 0 ];then
printf'Container already exists. Trying to attach...\n'