Skip to content

Commit cc0a959

Browse files
authored
Merge pull request #19 from Azure-Samples/cruft/update-tonybaloney2
Remove unused bicep and update gunicorn
2 parents 1072e1a + 7d403c0 commit cc0a959

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+402
-1204
lines changed

.cruft.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"template": "https://github.com/Azure-Samples/Azure-Python-Standardization-Template-Generator",
3-
"commit": "621af12f962b64b1f3458b83fa1af0898d565d80",
3+
"commit": "c75367846861bc3563aefae0831a06d715b75286",
44
"checkout": null,
55
"context": {
66
"cookiecutter": {
@@ -11,7 +11,7 @@
1111
"project_host": "aca",
1212
"web_port": "8000",
1313
"__repo_name": "azure-fastapi-cosmos-postgres-aca",
14-
"__src_folder_name": "azure-fastapi-cosmos-postgres-aca",
14+
"__src_folder_name": "azure_fastapi_cosmos_postgres_aca",
1515
"__project_short_description": "Create a relecloud demo application with fastapi and cosmos-postgres",
1616
"_copy_without_render": [
1717
".github/workflows/azure-dev.yml",

.github/workflows/audit-bicep.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Validate AZD template
2+
on:
3+
push:
4+
branches:
5+
- main
6+
- cruft/update
7+
paths:
8+
- "infra/**"
9+
pull_request:
10+
branches:
11+
- main
12+
- cruft/update
13+
paths:
14+
- "infra/**"
15+
workflow_dispatch:
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
permissions:
21+
security-events: write
22+
steps:
23+
- name: Checkout
24+
uses: actions/checkout@v4
25+
26+
- name: Run Microsoft Security DevOps Analysis
27+
uses: microsoft/security-devops-action@preview
28+
id: msdo
29+
continue-on-error: true
30+
with:
31+
tools: templateanalyzer
32+
33+
- name: Upload alerts to Security tab
34+
uses: github/codeql-action/upload-sarif@v3
35+
if: github.repository_owner == 'Azure-Samples'
36+
with:
37+
38+
sarif_file: ${{ steps.msdo.outputs.sarifFile }}

.github/workflows/azure-dev.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ jobs:
2828
AZURE_CREDENTIALS: ${{ secrets.AZURE_CREDENTIALS }}
2929
steps:
3030
- name: Checkout
31-
uses: actions/checkout@v3
31+
uses: actions/checkout@v4
3232

3333
- name: Install azd
34-
uses: Azure/setup-azd@v0.1.0
34+
uses: Azure/setup-azd@v1.0.0
3535

3636
- name: Log in with Azure (Federated Credentials)
3737
if: ${{ env.AZURE_CLIENT_ID != '' }}

.github/workflows/format.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
name: Run Python linter and formatter
2+
23
on:
34
push:
4-
branches:
5-
- main
5+
branches: [ main ]
6+
paths-ignore:
7+
- '**.md'
8+
- 'lab/**'
9+
- 'assets/**'
10+
611
pull_request:
7-
branches:
8-
- main
12+
branches: [ main ]
913
paths-ignore:
1014
- '**.md'
1115
- 'lab/**'

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,14 @@ python3 -m uvicorn fastapi_app:app --reload --port=8000
7171
7272
## Running tests
7373
74-
2. Install the development requirements:
74+
1. Install the development requirements:
7575
7676
```sh
7777
python3 -m pip install -r requirements-dev.txt
7878
python3 -m playwright install chromium --with-deps
7979
```
8080
81-
3. Run the tests:
81+
2. Run the tests:
8282
8383
```sh
8484
python3 -m pytest

infra/core/ai/cognitiveservices.bicep

Lines changed: 0 additions & 38 deletions
This file was deleted.

infra/core/database/cosmos/cosmos-account.bicep

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
metadata description = 'Creates an Azure Cosmos DB account.'
12
param name string
23
param location string = resourceGroup().location
34
param tags object = {}
@@ -25,7 +26,7 @@ resource cosmos 'Microsoft.DocumentDB/databaseAccounts@2022-08-15' = {
2526
databaseAccountOfferType: 'Standard'
2627
enableAutomaticFailover: false
2728
enableMultipleWriteLocations: false
28-
apiProperties: (kind == 'MongoDB') ? { serverVersion: '4.0' } : {}
29+
apiProperties: (kind == 'MongoDB') ? { serverVersion: '4.2' } : {}
2930
capabilities: [ { name: 'EnableServerless' } ]
3031
}
3132
}

infra/core/database/cosmos/mongo/cosmos-mongo-account.bicep

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
metadata description = 'Creates an Azure Cosmos DB for MongoDB account.'
12
param name string
23
param location string = resourceGroup().location
34
param tags object = {}

infra/core/database/cosmos/mongo/cosmos-mongo-db.bicep

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
metadata description = 'Creates an Azure Cosmos DB for MongoDB account with a database.'
12
param accountName string
23
param databaseName string
34
param location string = resourceGroup().location

infra/core/database/cosmos/sql/cosmos-sql-account.bicep

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
metadata description = 'Creates an Azure Cosmos DB for NoSQL account.'
12
param name string
23
param location string = resourceGroup().location
34
param tags object = {}

0 commit comments

Comments
 (0)