View dockerfile-original.txt
# This is the old image
FROM microsoft/azure-functions-runtime:v2.0.0-beta1
ENV AzureWebJobsScriptRoot=/home/site/wwwroot
COPY . /home/site/wwwroot
View visudo
[YOUR_WSL_USERNAME] ALL=(root) NOPASSWD: /bin/mount
View docker-volume-mount.sh
# Put this line at the bottom of .bashrc
sudo mount --bind /mnt/c /c
View docker-nodejs.sh
docker run -it --rm --name node -d -v $(pwd):/src -w /src -p 8080:3000 node:7.7.4-alpine node app.js
View docker-port-export.sh
# Put this line at the bottom of .bashrc
export DOCKER_HOST=tcp://0.0.0.0:2375
View install-docker-ce-from-url.sh
bash <(curl -s https://gist.githubusercontent.com/justinyoo/a5b3515b4768e975ea64e8f9bbe32c6c/raw/aad8df72c2cf462944bd276f37a91a5be4880954/install-docker-ce.sh)
View docker-nodejs.ps1
$mnt = $pwd.Path + ":/src"
docker run -it --rm --name node -d -v $mnt -w /src -p 8080:3000 node:7.7.4-alpine node app.js
View app.js
var http = require('http');
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Hello World');
}).listen(3000);
console.log('server is up and running');
View install-azure-cli-from-url.sh
bash <(curl -s https://gist.githubusercontent.com/justinyoo/db441bcde611e666db392bddbf3c9534/raw/392265aa706a796f21a1fddb2b961aace929cb57/install-azure-cli.sh)
View install-docker-ce.sh
# Environment variables you need to set so you don't have to edit the script below.
DOCKER_CHANNEL=stable
DOCKER_COMPOSE_VERSION=1.20.1
# Update the apt package index.
sudo apt-get update
# Install packages to allow apt to use a repository over HTTPS.
sudo apt-get install -y \
apt-transport-https \