ArtisanTinkerer.github.io

Blog

View on GitHub

Docker Python Dev Environment

Dockerfile

1 make the Dockerfile

FROM python:3.6
RUN pip install azure keyrings.alt
ENTRYPOINT ["tail", "-f", "/dev/null"]

2 build the image

build -t python-dev .

3 create the container

docker run python-dev:latest

4 SSH onto the box (I know, not really)

docker exec -it python-dev bash

It’s not running! docker ps will confirm docker ps -a will show the image and that it has exited.

This is because the container exits when there isn’t a process running. It can be fixed by doing this:

docker run -d python-dev:latest tail -f /dev/null

Map the local source

##

Docker Azure CLI

docker run -it mcr.microsoft.com/azure-cli

https://tomssl.com/2019/07/11/learning-the-azure-cli-with-docker/

Doing

1, Work through data chapter of the book. 2, https://docs.microsoft.com/en-us/azure/python/python-sdk-azure-get-started?tutorial-step=1

Azure

CLI stuff can be done in the Portal

Functions in the portal? -> 5 minutes only Azure CLI Cloud shell

Other

Docker or Vm? API, Databases Storage Blobs, queues, NoSQL Mondo Db? csv files Mechanics of azure services

??No need EBA Explatory Data Analysis PANDAS - set theory

Links

Maybe Docker dev env? https://blogs.endjin.com/2019/09/running-azure-functions-in-docker-on-a-raspberry-pi-4/

Azure Developer Guide

Where To Host

Hosting options

App Service or VM - try pushing container

https://medium.com/swlh/deploy-laravel-5-8-on-azure-web-app-2019-3514eb2fd1af

Host a web application with Azure App Service

https://docs.microsoft.com/en-us/learn/modules/host-a-web-app-with-azure-app-service/?source=learn

Done this with Barothing (Laravel app)

Azure Functions

https://docs.microsoft.com/en-us/azure/azure-functions/functions-create-first-function-python

Data Analysis From Book

Introduction to Python

https://docs.microsoft.com/en-us/learn/modules/intro-to-python/

Look at