Add a simple little Docker container for testing Azure Functions

This seems like a good idea
This commit is contained in:
R. Tyler Croy 2017-11-15 21:44:59 -08:00
commit 1f80295c93
No known key found for this signature in database
GPG Key ID: 1426C7DC3F51E16F
5 changed files with 30 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
*.sw*

13
Dockerfile Normal file
View File

@ -0,0 +1,13 @@
FROM node:stretch
RUN curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > /etc/apt/trusted.gpg.d/microsoft.gpg
RUN apt-get update && apt-get install -qy apt-transport-https
ADD dotnetdev.list /etc/apt/sources.list.d/
RUN apt-get update && \
apt-get install -qy gnupg curl libunwind8 \
gettext dotnet-sdk-2.0.2
RUN npm install -g \
azure-functions-core-tools@core --unsafe-perm true

11
Makefile Normal file
View File

@ -0,0 +1,11 @@
CONTAINER=rtyler/azure-functions:latest
all: Dockerfile
docker build -t $(CONTAINER) .
push: all
docker push $(CONTAINER)
.PHONY: all push

4
README.adoc Normal file
View File

@ -0,0 +1,4 @@
= Azure Functions Container
This is a Docker container to make running
link:https://docs.microsoft.com/en-us/azure/azure-functions/functions-run-local[Azure Functions Core Tools].

1
dotnetdev.list Normal file
View File

@ -0,0 +1 @@
deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-debian-stretch-prod stretch main