From ff5825a20155e6c929ed2aa4389afdb079143b7b Mon Sep 17 00:00:00 2001 From: marbo001 Date: Mon, 24 Feb 2020 14:59:07 -0600 Subject: [PATCH 1/2] Set up CI with Azure Pipelines [skip ci] --- azure-pipelines.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 azure-pipelines.yml diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 000000000..03fa44f81 --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,29 @@ +# Docker +# Build a Docker image +# https://docs.microsoft.com/azure/devops/pipelines/languages/docker + +trigger: +- master + +resources: +- repo: self + +variables: + tag: '$(Build.BuildId)' + +stages: +- stage: Build + displayName: Build image + jobs: + - job: Build + displayName: Build + pool: + vmImage: 'ubuntu-latest' + steps: + - task: Docker@2 + displayName: Build an image + inputs: + command: build + dockerfile: '$(Build.SourcesDirectory)/Dockerfile' + tags: | + $(tag) \ No newline at end of file From f710d87337d62cf42eae0ed524150ccc4abcf453 Mon Sep 17 00:00:00 2001 From: marbo001 Date: Mon, 24 Feb 2020 15:11:53 -0600 Subject: [PATCH 2/2] default update --- .vscode/settings.json | 2 +- Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index b035bb43d..d9e0d0634 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,3 +1,3 @@ { - "python.pythonPath": "${workspaceFolder}\\env\\Scripts\\python.exe" + "python.pythonPath": "C:\\Users\\mkosinski\\AppData\\Local\\Programs\\Python\\Python37-32\\python.exe" } \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 0f62521f9..97e3ed50a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ # Pull a pre-built alpine docker image with nginx and python3 installed FROM tiangolo/uwsgi-nginx-flask:python3.6-alpine3.7 - +# test here # Set the port on which the app runs; make both values the same. # # IMPORTANT: When deploying to Azure App Service, go to the App Service on the Azure