https://github.com/ajsalemo/container-app-jobs-examples
Various examples of trigger types for Container App Jobs.
https://github.com/ajsalemo/container-app-jobs-examples
Last synced: 7 months ago
JSON representation
Various examples of trigger types for Container App Jobs.
- Host: GitHub
- URL: https://github.com/ajsalemo/container-app-jobs-examples
- Owner: Ajsalemo
- Created: 2023-05-18T22:48:22.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-27T00:31:08.000Z (over 2 years ago)
- Last Synced: 2024-12-29T10:16:12.634Z (over 1 year ago)
- Language: Shell
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# container-app-jobs-examples
Various examples of trigger types for Container App Jobs. This contains examples for running jobs on a local Kubernetes cluster as well as commands using the Azure CLI to deploy to Azure Container Apps.
Each example contains the following directories:
- **local-k8s-deploy**:
- The `.yaml` in here can be used to deploy to a local Kubernetes cluster. Build the image in the example first, then update the image name in the `.yaml`
- Replace values as needed, in the `event-driven` example you'll need to provide your Azure Storage Account (blob, container name, connection string) connection string
- Then run `kubectl apply -f .yaml`.
- **az-cli-deploy**:
- This file contains a command which can be ran to deploy these examples
- Ensure the Docker Image in said example is build first, and then deployed to Azure Container Registry
- Replace the required values in the command as needed.
The examples are as follows:
- `manual`:
- A PHP application that cURLs to the CoinDesk API and prints a response
- `scheduled`:
- A Go application that prints the current time
- `event-driven`:
- A Go application that lists all current contains in the specified Azure Storage Account Container
- When running the example as a Event Driven Job, the current default is to run when "5" blobs are present. This can be changed as needed.
- Update to include your Azure Storage Connection String where needed