Skip to content
Permalink
Browse files
Updated Dockerfile and build script
Recent changes to snowflake have required some updates to the docker
build file and script.sh including:
- updated go to version 1.12
- removed need for coffeescript
- cleaned up apt-gets
- modified sed to replace the broker URL in embed.js
  • Loading branch information
cohosh committed Aug 23, 2019
1 parent 1b6160d commit 89ffc081c17c90827106f85d382d65feaf2ae683
Showing with 4 additions and 8 deletions.
  1. +2 −6 Dockerfile
  2. +2 −2 script.sh
@@ -1,11 +1,7 @@
FROM golang:1.11
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
FROM golang:1.12
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
RUN npm install -g coffeescript
##
RUN apt-get update && apt-get install -y git libx11-dev tor net-tools sudo gdb strace x11vnc xvfb less apt-transport-https nodejs firefox-esr
RUN apt-get clean
RUN useradd -ms /bin/bash snowflake
RUN adduser snowflake sudo
@@ -22,7 +22,7 @@ while :; do
shift
done

# we manually copy files locally (avoiding go install so we don't have to recompile everytime)
# we manually copy files locally (avoiding go install so we don't have to recompile every time)

if [ "$build" -ne "0" ]; then
#kill broker, proxy, client processes
@@ -45,7 +45,7 @@ if [ "$build" -ne "0" ]; then
cd ../proxy
npm run build
#need to point to our localhost broker instead
sed -i 's/snowflake-broker.bamsoftware.com/localhost:8080/' build/snowflake.js
sed -i 's/snowflake-broker.freehaven.net/localhost:8080/' build/embed.js

cd /go/src
fi

0 comments on commit 89ffc08

Please sign in to comment.