Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added TAS capabilities, and local development #69

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
82 commits
Select commit Hold shift + click to select a range
57c9b3e
Connection String Modified for Order Service (#184)
yoshioterada Nov 20, 2023
8982214
Add markdown link check (#187)
dingmeng-xue Nov 21, 2023
f4776a9
Rename Azure AD (#188)
dingmeng-xue Nov 23, 2023
ca05fe7
Create Japanese Translation documents for Workshop (#149)
yoshioterada Nov 27, 2023
e905f61
Sync code with origin (#190)
dingmeng-xue Jan 18, 2024
05fef62
Update demo scripts and github actions for deployment (#194)
dingmeng-xue Mar 7, 2024
c66a398
Fix deployment action of Assist app (#195)
dingmeng-xue Mar 8, 2024
a2a090c
Optimize image size of samples (#196)
dingmeng-xue Mar 14, 2024
9c4b607
Update dependencies of AI project (#197)
dingmeng-xue Mar 14, 2024
ac6a932
Fix product number issue on UI (#198)
dingmeng-xue Mar 14, 2024
e12bf52
Update tutorial (#199)
dingmeng-xue Mar 14, 2024
14cc564
Add MongoDb vector store (#200)
dingmeng-xue May 10, 2024
27e8756
Update application.yaml to remove the mongo client autoconfiguration …
saragluna May 13, 2024
266dfaa
Fix the wrong env in the readme file (#203)
saragluna May 17, 2024
a78520e
Enable incremental product embedding (#207)
dingmeng-xue May 28, 2024
3445fa9
Full day Azure for Spring Developers workshop (#206)
dingmeng-xue May 28, 2024
49eb8bc
Remove db from catalog workflow (#208)
dingmeng-xue May 28, 2024
83a3603
basic mods to get it running on TPCF
Jul 16, 2024
ef4535a
ACME Fitness
Jul 16, 2024
6979e26
tPCF install README draft
Jul 16, 2024
b813182
Made Commit to address missing Azure ChatRole, replaced with Message …
pivot-carlos-poon Jul 19, 2024
efbe2c9
[#188008984] Update Spring AI from 0.8.1-SNAPSHOT to 1.0.0-SNAPSHOT
pivot-carlos-poon Jul 19, 2024
6f62775
[#188008992] Populate vector store for local and TAS.
pivot-carlos-poon Jul 24, 2024
7123fa6
[#188030586] update docker files for local
Jul 29, 2024
df9e552
[#188031441] Added local config server
Jul 30, 2024
f566f7b
[#188030586] - Added local config needed for acme-identity
pivot-carlos-poon Jul 31, 2024
611b144
[#188031441] Set up local port numbers for shopping, assist, catalog,…
Jul 31, 2024
e5bb9cd
Updated gradle
Jul 31, 2024
f7d5b88
[#188031421] Lombok + cleanup payment
Jul 31, 2024
12d47c7
[#188009049] Setup SERVER_URL for UI; Added manifest.yml for deployin…
Jul 31, 2024
c3dcdcc
Move Local Config server into a local development directory.
pivot-carlos-poon Aug 1, 2024
f5f2a23
[#188031421] Add lombok to assist and cleanup some of the files
Aug 1, 2024
57bb4c0
[#188009049] UI app is configurable via SERVER_URL environment variable
Aug 1, 2024
f320202
Added mvnwrapper and instructions for starting local config in README.
pivot-carlos-poon Aug 1, 2024
97110fa
Update MVN version and local deploy.
pivot-carlos-poon Aug 2, 2024
bddd013
[#188030586] Update the Seed data to be 1536 and update to JDK 21 for…
pivot-carlos-poon Aug 2, 2024
1e99f13
Update Readme acme-catalog
pivot-carlos-poon Aug 6, 2024
a6e6fd6
[#188030586]
Aug 6, 2024
02f6f71
Introduce config and scripts for running local Spring Cloud Gateway a…
pivot-carlos-poon Aug 7, 2024
7fbd50e
[#188030594] Added local gateway routes, fixed local port number for …
Aug 7, 2024
da1a322
[#188079709] Added work around to point to OPENAI directly bypassing …
pivot-carlos-poon Aug 7, 2024
557929d
extra routes
Aug 8, 2024
3bdf6e6
[#188079644] Deleted redundant route files. Renamed assist route fil…
Aug 8, 2024
48a0d07
[#188009035] - Updated acme-order to be TAS and local compatible.
pivot-carlos-poon Aug 1, 2024
bef68bd
[#188030588] Add local discovery server
Aug 8, 2024
809c502
Update local README with Local Development
pivot-carlos-poon Aug 8, 2024
fc37430
Add Discovery Service and fix missing Profile properties.
pivot-carlos-poon Aug 9, 2024
26f7432
[#188052396] Moved ASA, TAP specific content to deprecated section
Aug 9, 2024
7801ef0
Local run fixes
pivot-carlos-poon Aug 12, 2024
7a1220f
[#188052396] - Remove Azure reference for Cart service
pivot-carlos-poon Aug 12, 2024
fe56f88
[#188093312] Swapped out java springboot eureka-server and config-ser…
Aug 19, 2024
507da92
Update README with additional readme for identity, catalog and payment.
pivot-carlos-poon Aug 12, 2024
c9ced87
[#188030781] Updated README local machine instructions
Aug 12, 2024
64cb7c4
[#188104035] Add auth & gateway start scripts into docker-compose.yam…
Aug 19, 2024
667f619
[#188103872] Fixed logout using ajax call causing CORS issue
Aug 13, 2024
74ae0c9
Fix acme-assist embedding jar versioning
pivot-carlos-poon Aug 14, 2024
11b7db7
[#188104035] Run gateway and auth servers in a single container for l…
Aug 19, 2024
b598b6b
[#188110597] - Move local development to its own README.md
pivot-carlos-poon Aug 14, 2024
8327475
[#188110595] - Rename spring-cloud-gateway to spring-enterprise
pivot-carlos-poon Aug 14, 2024
0b55923
[#188103921] Fix liveness actuator endpoint on Catalog
Aug 15, 2024
61adb82
Readme changes and URL change
Aug 15, 2024
bdced1a
[#188110593, #188104038, #188110606] Consolidate docker compose files…
Aug 15, 2024
6d1d42a
[#188084899] - Update to utilize internal routes for TAS
pivot-carlos-poon Aug 13, 2024
4882d36
Update manifest.yml
svrc Aug 15, 2024
9181fc2
Update manifest.yml
svrc Aug 15, 2024
4d8d5c6
[##188103872] - Update local routes.yml such that login is only trigg…
pivot-carlos-poon Aug 16, 2024
51ed042
Update README for spring-enterprise naming.
pivot-carlos-poon Aug 16, 2024
28daaa6
Remove vector store jobs, vector store will init on launch
Aug 19, 2024
8fd4968
[#188135934] Update catalog and pay apps to use JDK v21 and gradle wr…
Aug 19, 2024
a5f2279
[#188104038] Aligned container names in local docker compose yaml
Aug 19, 2024
f197633
Fix local acme-assist
pivot-carlos-poon Aug 19, 2024
84d4956
[#188110588] Convert from Maven to Gradle
pivot-carlos-poon Aug 15, 2024
b556614
[#188115649] Add Cypress test for checkout flow
Aug 15, 2024
ad85ee0
[#188103932] - Rename order-service to acme-order
pivot-carlos-poon Aug 16, 2024
a4c20e0
[#188127213] Clean up front end (delete dead code & irrelevant pa…
Aug 22, 2024
0df3988
[#188143766] Fixed a CORS error when running the app locally by remov…
Aug 20, 2024
1e9ae76
[#188143766] Remove sso login redirect for all data routes
Aug 20, 2024
f0e0738
[#188150227] Automatically build acme-cart image in local docker compose
Aug 21, 2024
d329fc6
README and manifest update
pivot-carlos-poon Aug 21, 2024
65c513c
[#188156382] Select fewer bikes to mark as new.
Aug 22, 2024
5631146
Add updated high level architecture for TAS
pivot-carlos-poon Aug 22, 2024
df089b7
[#188157066] Updated config server TAS/TPCF instructions
Aug 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
56 changes: 56 additions & 0 deletions .github/workflows/assist.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Deploy Assist
on:
workflow_dispatch:
inputs: { }
push:
branches:
- Azure
paths:
- 'apps/acme-assist/**'
env:
SPRING_APPS_SERVICE: ${{ secrets.SPRING_APPS_SERVICE }}
RESOURCE_GROUP: ${{ secrets.RESOURCE_GROUP }}
KEY_VAULT: ${{ secrets.KEY_VAULT }}
AZURE_OPENAI_ENDPOINT: ${{ secrets.AZURE_OPENAI_ENDPOINT }}
AZURE_OPENAI_API_KEY: ${{ secrets.AZURE_OPENAI_API_KEY }}
AI_APP: assist-service
AZURE_OPENAI_MODEL: gpt-35-turbo-16k
AZURE_OPENAI_EMBEDDINGMODEL: text-embedding-ada-002

permissions:
id-token: write
contents: read

jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: apps/acme-assist
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'adopt'
- name: Run the Maven local build
run: mvn package clean
- name: Set up Azure
uses: azure/login@v1
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.SUBSCRIPTION }}
- name: Set up Azure Spring Extension
run: az extension add --name spring
- name: Deploy Assist
run: |
az spring app deploy --name ${AI_APP} \
--resource-group ${RESOURCE_GROUP} \
--service ${SPRING_APPS_SERVICE} \
--source-path ./ \
--build-env BP_JVM_VERSION=17 \
--env \
SPRING_AI_AZURE_OPENAI_ENDPOINT=${AZURE_OPENAI_ENDPOINT} \
SPRING_AI_AZURE_OPENAI_API_KEY=${AZURE_OPENAI_API_KEY}
22 changes: 15 additions & 7 deletions .github/workflows/cart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,22 @@ on:
paths:
- 'apps/acme-cart/**'
env:
SPRING_APPS_SERVICE: ${{ secrets.TF_PROJECT_NAME }}-asa
RESOURCE_GROUP: ${{ secrets.TF_PROJECT_NAME }}-grp
KEY_VAULT: ${{ secrets.TF_PROJECT_NAME }}-keyvault
SPRING_APPS_SERVICE: ${{ secrets.SPRING_APPS_SERVICE }}
RESOURCE_GROUP: ${{ secrets.RESOURCE_GROUP }}
KEY_VAULT: ${{ secrets.KEY_VAULT }}
CUSTOM_BUILDER: no-bindings-builder
CART_SERVICE_APP: cart-service

permissions:
id-token: write
contents: read

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7"]
python-version: ["3.11"]
defaults:
run:
working-directory: apps/acme-cart
Expand All @@ -41,18 +45,22 @@ jobs:
- name: Set up Azure
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.SUBSCRIPTION }}
- name: Set up Azure Spring Extension
run: az extension add --name spring
- name: Deploy Cart
run: |
keyvault_uri=$(az keyvault show \
--resource-group ${RESOURCE_GROUP} \
--name ${KEY_VAULT} | jq -r '.properties.vaultUri')
--name ${KEY_VAULT} \
--query properties.vaultUri -o tsv)

gateway_url=$(az spring gateway show \
--resource-group ${RESOURCE_GROUP} \
--service ${SPRING_APPS_SERVICE} | jq -r '.properties.url')
--service ${SPRING_APPS_SERVICE} \
--query properties.url -o tsv)

az spring app deploy \
--name ${CART_SERVICE_APP} \
Expand Down
27 changes: 14 additions & 13 deletions .github/workflows/catalog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,15 @@ on:
paths:
- 'apps/acme-catalog/**'
env:
SPRING_APPS_SERVICE: ${{ secrets.TF_PROJECT_NAME }}-asa
RESOURCE_GROUP: ${{ secrets.TF_PROJECT_NAME }}-grp
KEY_VAULT: ${{ secrets.TF_PROJECT_NAME }}-keyvault
SPRING_APPS_SERVICE: ${{ secrets.SPRING_APPS_SERVICE }}
RESOURCE_GROUP: ${{ secrets.RESOURCE_GROUP }}
KEY_VAULT: ${{ secrets.KEY_VAULT }}
CATALOG_SERVICE_APP: catalog-service

permissions:
id-token: write
contents: read

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -31,25 +35,22 @@ jobs:
- name: Build with Gradle
uses: gradle/gradle-build-action@v2
with:
arguments: build
arguments: build -x test
build-root-directory: apps/acme-catalog
- name: Set up Azure
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.SUBSCRIPTION }}
- name: Set up Azure Spring Extension
run: az extension add --name spring
- name: Deploy Catalog
run: |
keyvault_uri=$(az keyvault show \
--resource-group ${RESOURCE_GROUP} \
--name ${KEY_VAULT} | jq -r '.properties.vaultUri')

az spring app deploy \
az spring app deploy \
--name ${CATALOG_SERVICE_APP} \
--resource-group "$RESOURCE_GROUP" \
--service "$SPRING_APPS_SERVICE" \
--env "SPRING_CLOUD_AZURE_KEYVAULT_SECRET_PROPERTY_SOURCES_0_ENDPOINT=${keyvault_uri}" "SPRING_CLOUD_AZURE_KEYVAULT_SECRET_PROPERTY_SOURCES_0_NAME='acme-fitness-store-vault'" "SPRING_PROFILES_ACTIVE=default,key-vault" \
--config-file-pattern catalog/default,catalog/key-vault \
--config-file-pattern catalog/default \
--build-env BP_JVM_VERSION=17 \
--source-path ./
--source-path ./
19 changes: 13 additions & 6 deletions .github/workflows/identity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,15 @@ on:
paths:
- 'apps/acme-identity/**'
env:
SPRING_APPS_SERVICE: ${{ secrets.TF_PROJECT_NAME }}-asa
RESOURCE_GROUP: ${{ secrets.TF_PROJECT_NAME }}-grp
KEY_VAULT: ${{ secrets.TF_PROJECT_NAME }}-keyvault
SPRING_APPS_SERVICE: ${{ secrets.SPRING_APPS_SERVICE }}
RESOURCE_GROUP: ${{ secrets.RESOURCE_GROUP }}
KEY_VAULT: ${{ secrets.KEY_VAULT }}
IDENTITY_SERVICE_APP: identity-service

permissions:
id-token: write
contents: read

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -36,20 +40,23 @@ jobs:
- name: Set up Azure
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.SUBSCRIPTION }}
- name: Set up Azure Spring Extension
run: az extension add --name spring
- name: Deploy Identity
run: |
keyvault_uri=$(az keyvault show \
--resource-group ${RESOURCE_GROUP} \
--name ${KEY_VAULT} | jq -r '.properties.vaultUri')
--name ${KEY_VAULT} \
--query properties.vaultUri -o tsv)

az spring app deploy \
--name ${IDENTITY_SERVICE_APP} \
--resource-group "$RESOURCE_GROUP" \
--service "$SPRING_APPS_SERVICE" \
--env "SPRING_CLOUD_AZURE_KEYVAULT_SECRET_PROPERTY_SOURCES_0_ENDPOINT=${keyvault_uri}" "SPRING_CLOUD_AZURE_KEYVAULT_SECRET_PROPERTY_SOURCES_0_NAME='acme-fitness-store-vault'" "SPRING_PROFILES_ACTIVE=default,key-vault" \
--env "SPRING_CLOUD_AZURE_KEYVAULT_SECRET_PROPERTY_SOURCES_0_ENDPOINT=${keyvault_uri}" "SPRING_CLOUD_AZURE_KEYVAULT_SECRET_PROPERTY_SOURCES_0_NAME=${KEY_VAULT}" "SPRING_PROFILES_ACTIVE=default,key-vault" \
--config-file-pattern identity/default,identity/key-vault \
--build-env BP_JVM_VERSION=17 \
--source-path ./
14 changes: 14 additions & 0 deletions .github/workflows/markdown-link-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Markdown Links Check

on: [pull_request]

jobs:
markdown-link-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: gaurav-nelson/github-action-markdown-link-check@1.0.15
with:
use-quiet-mode: 'yes'
use-verbose-mode: 'yes'
config-file: '.github/workflows/mlc_config.json'
29 changes: 29 additions & 0 deletions .github/workflows/mlc_config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"ignorePatterns": [
{
"pattern": "^http://127.0.0.1"
},
{
"pattern": "^https://127.0.0.1"
},
{
"pattern": "^http://localhost"
},
{
"pattern": "^https://localhost"
},
{
"pattern": "^http://proxyserver"
},
{
"pattern": "^http://example.com"
},
{
"pattern": "^https://example.com"
},
{
"pattern": "^https://github.com/Azure-Samples/acme-fitness-store/invitations"
}
],
"aliveStatusCodes": [200]
}
23 changes: 16 additions & 7 deletions .github/workflows/order.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,16 @@ on:
paths:
- 'apps/acme-order/**'
env:
SPRING_APPS_SERVICE: ${{ secrets.TF_PROJECT_NAME }}-asa
RESOURCE_GROUP: ${{ secrets.TF_PROJECT_NAME }}-grp
KEY_VAULT: ${{ secrets.TF_PROJECT_NAME }}-keyvault
SPRING_APPS_SERVICE: ${{ secrets.SPRING_APPS_SERVICE }}
RESOURCE_GROUP: ${{ secrets.RESOURCE_GROUP }}
KEY_VAULT: ${{ secrets.KEY_VAULT }}
CUSTOM_BUILDER: no-bindings-builder
ORDER_SERVICE_APP: order-service

permissions:
id-token: write
contents: read

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -33,22 +37,27 @@ jobs:
- name: Set up Azure
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.SUBSCRIPTION }}
- name: Set up Azure Spring Extension
run: az extension add --name spring
- name: Deploy Order
run: |
keyvault_uri=$(az keyvault show \
--resource-group ${RESOURCE_GROUP} \
--name ${KEY_VAULT} | jq -r '.properties.vaultUri')
--resource-group ${RESOURCE_GROUP} \
--name ${KEY_VAULT} \
--query properties.vaultUri -o tsv)

gateway_url=$(az spring gateway show \
--resource-group ${RESOURCE_GROUP} \
--service ${SPRING_APPS_SERVICE} | jq -r '.properties.url')
--service ${SPRING_APPS_SERVICE} \
--query properties.url -o tsv)

az spring app deploy \
--name ${ORDER_SERVICE_APP} \
--resource-group "$RESOURCE_GROUP" \
--service "$SPRING_APPS_SERVICE" \
--env "ConnectionStrings__KeyVaultUri=${keyvault_uri}" "AcmeServiceSettings__AuthUrl=https://${gateway_url}" "DatabaseProvider=Postgres" \
--builder ${CUSTOM_BUILDER} \
--source-path ./
12 changes: 9 additions & 3 deletions .github/workflows/payment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,14 @@ on:
paths:
- 'apps/acme-payment/**'
env:
SPRING_APPS_SERVICE: ${{ secrets.TF_PROJECT_NAME }}-asa
RESOURCE_GROUP: ${{ secrets.TF_PROJECT_NAME }}-grp
SPRING_APPS_SERVICE: ${{ secrets.SPRING_APPS_SERVICE }}
RESOURCE_GROUP: ${{ secrets.RESOURCE_GROUP }}
PAYMENT_SERVICE_APP: payment-service

permissions:
id-token: write
contents: read

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -35,7 +39,9 @@ jobs:
- name: Set up Azure
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.SUBSCRIPTION }}
- name: Set up Azure Spring Extension
run: az extension add --name spring
- name: Deploy Payment
Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/shopping.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,14 @@ on:
paths:
- 'apps/acme-shopping/**'
env:
SPRING_APPS_SERVICE: ${{ secrets.TF_PROJECT_NAME }}-asa
RESOURCE_GROUP: ${{ secrets.TF_PROJECT_NAME }}-grp
SPRING_APPS_SERVICE: ${{ secrets.SPRING_APPS_SERVICE }}
RESOURCE_GROUP: ${{ secrets.RESOURCE_GROUP }}
FRONTEND_APP: frontend

permissions:
id-token: write
contents: read

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -30,7 +34,9 @@ jobs:
- name: Set up Azure
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.SUBSCRIPTION }}
- name: Set up Azure Spring Extension
run: az extension add --name spring
- name: Deploy Shopping
Expand Down
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ __pycache__
.DS_Store
.env*.secret
.idea
.metadata
custom-filters

*.iml
*.jar

azure-spring-apps-enterprise/scripts/setup-env-variables.sh
azure-spring-apps-enterprise/scripts/setup-db-env-variables.sh
Expand Down Expand Up @@ -57,3 +59,7 @@ hello-world/

# vsCode
.vscode

# Cypress
**/cypress/downloads
**/cypress/screenshots
Loading