Use Azure DevOps to deploy Azure Function in Docker on Raspberry PI - dotNetConfPL 2019 - Janusz Nowak
Use Azure DevOps to deploy Azure Function in Docker on Raspberry PI - dotNetConfPL 2019 - Janusz Nowak
@jnowwwak
https://www.linkedin.com/in/janono
https://github.com/janusznowak
https://blog.janono.pl
Use Azure DevOps to deploy Azure Function in Docker on Raspberry PI - dotNetConfPL 2019 - Janusz Nowak
1.
USE AZURE DEVOPSTO DEPLOY
AZURE FUNCTION IN DOCKER
ON RASPBERRY PI
Janusz Nowak
@jnowwwak
https://www.linkedin.com/in/janono
https://github.com/janusznowak
https://blog.janono.pl
2.
About me -Janusz Nowak
• I graduated 2008
• Father of
• Over 14 years of professional experience as software developer
about 9 year also with TFS/VSTS/Azure Dev Ops and over 3 years with Azure
• Working now for
as DevOps It Manager
• Passionate about ALM, Cloud, Server less, Infrastructure as Code
3.
Agenda
1. Przygotowanie Środowiskai Maliny
2. Stworzenie Azure Function V2 .net Core
3. Uruchomienie lokalnie
4. Dockerfile
5. Azure Repository dodanie kodu do repozytorium
6. Stworzenie CI w Azure DevOps
7. Stworzenie CD w Azure DevOps
8. Dodanie Connectorów
9. Demo
10. Podsumowanie możliwe rozszeżenia
11. Pytania
4.
Przygotowanie
Maliny
https://www.raspberrypi.org/
W przypadku RPi3możemy zainslować OSMC
W przypadku RPi4 Raspbian lub Ubuntu
Instalujemy na karice pamięci lub dysku USB (RPi3)
Włączamy SSH
curl -fsSL get.docker.com -o get-docker.sh && sh get-docker.sh
sudo usermod -a -G docker pi
docker --version
Przekierownai portów lub build agent on RPi
Docker File
# Basethe image on the built-in Azure Functions Linux image.
FROM microsoft/azure-functions-runtime:2.0.0-stretch-arm32v7
ENV AzureWebJobsScriptRoot=/home/site/wwwroot
# Add files from this repo to the root site folder.
COPY . /home/site/wwwroot
COPY /FunctionApp1 /home/site/wwwroot
Podsumowanie /Możliwe rozszeżenia
•Testy wydajnościowe
• Agent również w dockerze
• Docker Compose
• Openfaas
• Docker Swarm
• Kubernetes
• Ten sam kod deployment Chmury
16.
USE AZURE DEVOPSTO DEPLOY
AZURE FUNCTION IN DOCKER
ON RASPBERRY PI
Janusz Nowak
@jnowwwak
https://www.linkedin.com/in/janono
https://github.com/janusznowak
https://blog.janono.pl
Dziękuje za uwagę!