Table of contents generated with markdown-toc
- Run apache/tika document parse
- Exists as docker-compose because this works with azure CLI
- Guide: (Apache Tika) https://tika.apache.org/
- docker-compose up
- docker-compose down
- Tika is stateless so no mounts or networks required for demo
- Sample scripts provided for various Azure PaaS services.
See README.md in the root of this repo for interesting docker commands.
No IDE integrations specific to this project are called out at this time.
This section describes simple Azure deployments for Azure Container Service, Azure App Service and Azure Service Fabric.
Azure Container Service | Azure App Service | Azure Service Fabric | |
---|---|---|---|
Container | yes | yes | yes |
Redirect port | no | no | no |
manual scale out | no | yes | yes |
Autoscale | no | no | no |
Load Balancer | no | no | yes |
- Install the CLI - https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-windows?view=azure-cli-latest
- If deploying in azure service fabric you also need
- Install sfctl - https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-cli
pip install -I sfctl
- Install sfctl - https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-cli
- Open a bash command prompt and cd into the appropriate PaaS directory
- copy azure-variables.sh-template to azure-variables.sh
- Edit azure-variable.sh to set your values
- Windows Bash: If running on Windows using bash uncomment these two lines in azure-variables.sh
shopt -s expand_aliases
alias az='az.cmd'
- Run script
azure-0...
to log into Azure and set subscription - Scroll down in this page to the service of choice
Scripts pull image from DockerHub as repository. No obvious way to use port 80 remapped to 9998. Scripts derived from Microsoft Documentation
- Run script
azure-1...
to create the resource group - Run script
azure-2...
to create the container instance deploy the app- This may take 5 minutes
- Test the app with GET to http://<cluster-name>.eastus.azurecontainer.io:9998. The app is running on port 9998
- You can see the configuration built by Azure in the Azure Portal for the App Service --> Settings --> Export Template
- Run script
azure-3...
to destroy the container instance and undeploy the app - Run script
azure-4...
to teardown the resource group.- This may take 5 minutes
Scripts pull image from DockerHub as repository. Scripts derived from Microsoft Documentation
- Run script
azure-1...
to create the resource group and and App Plan - Run script
azure-2...
to deploy the app- This may take 5 minutes
- Test the app with GET to http://<cluster-name>.azurewebsites.com. The app is running on port 80
- You can see the configuration built by Azure in the Azure Portal for the App Service --> Settings --> Export Template
- Run script
azure-3...
to undeploy the app - Run script
azure-4...
to teardown the resource group.- This may take 5 minutes
Scripts derived from Microsoft Documentation
- Run script
azure-1...
to create the resource group and ServiceFabric cluster.- This may take 20 minutes
- Will start a 5 node cluster and deploy app
- Run script
azure-2...
to deploy the app
- Test the app with GET to http://<cluster-name>.<region>.cloudapp.azure.com. The app is running on port 80
- Run script
azure-3...
to undeploy the app - Run script
azure-4...
to teardown the resource group.- This may take 20 minutes
- Intro https://www.youtube.com/embed/LIrhtFcqYus
- Azure App Service https://www.youtube.com/embed/Nj7E2GbVJuM
- Azure Service Fabric https://www.youtube.com/embed/qfgUCfnA76w
- Azure Container Service https://www.youtube.com/embed/BAOHGvIpWVw