Skip to content

Instantly share code, notes, and snippets.

@agocorona
Created January 30, 2017 07:17
Show Gist options
  • Select an option

  • Save agocorona/7871a405cdbabe5202d9b1b36864b50a to your computer and use it in GitHub Desktop.

Select an option

Save agocorona/7871a405cdbabe5202d9b1b36864b50a to your computer and use it in GitHub Desktop.
Sell script for the compilation with ghcjs and execution with runghc of transient programs with web nodes
set -e
port=`echo ${3} | awk -F/ '{print $(3)}'`
docker run -it -p ${port}:${port} -v $(pwd):/work agocorona/transient:01-27-2017 bash -c "mkdir -p static && ghcjs --make /work/${1} -o static/out && runghc /work/${1} ${2} ${3}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment