Skip to content

Commit 807b62f

Browse files
fix: Updated shell script to continue on git pull
1 parent 0e49f4e commit 807b62f

2 files changed

Lines changed: 5 additions & 223 deletions

File tree

.devcontainer/setupEnv.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
#!/bin/sh
22

3-
set -e # Exit on error
43
echo "Pull latest code for the current branch"
54
git fetch
65
git pull
76

7+
set -e # Exit on error
8+
89
echo "Setting up ContentProcessor..."
910
cd ./src/ContentProcessor
1011
uv sync --frozen
@@ -22,8 +23,8 @@ yarn install
2223
cd ../../
2324

2425
echo "Setting up executable permission for shell scripts"
25-
chmod +x ./infra/scripts/docker-build.sh
26-
chmod +x ./src/ContentProcessorAPI/samples/upload_files.sh
27-
chmod +x ./src/ContentProcessorAPI/samples/schemas/register_schema.sh
26+
sudo chmod +x ./infra/scripts/docker-build.sh
27+
sudo chmod +x ./src/ContentProcessorAPI/samples/upload_files.sh
28+
sudo chmod +x ./src/ContentProcessorAPI/samples/schemas/register_schema.sh
2829

2930
echo "Setup complete! 🎉"

infra/deploy_ai_foundry.bicep

Lines changed: 0 additions & 219 deletions
Original file line numberDiff line numberDiff line change
@@ -245,225 +245,6 @@ resource aiHubProject 'Microsoft.MachineLearningServices/workspaces@2024-01-01-p
245245
}
246246
}
247247

248-
// var phiModelRegions = ['East US', 'East US 2', 'North Central US', 'South Central US', 'Sweden Central', 'West US', 'West US 3', 'eastus','eastus2','northcentralus','southcentralus','swedencentral','westus','westus3']
249-
250-
// var isInPhiList = contains(phiModelRegions, location)
251-
252-
// var serverlessModelName = 'Phi-4' //'Phi-3-medium-4k-instruct'
253-
// var phiserverlessName = '${solutionName}-${serverlessModelName}'
254-
// resource phiserverless 'Microsoft.MachineLearningServices/workspaces/serverlessEndpoints@2024-10-01' = if (isInPhiList) {
255-
// parent: aiHubProject
256-
// location: location
257-
// name: phiserverlessName
258-
// properties: {
259-
// authMode: 'Key'
260-
// contentSafety: {
261-
// contentSafetyStatus: 'Enabled'
262-
// }
263-
// modelSettings: {
264-
// modelId: 'azureml://registries/azureml/models/${serverlessModelName}'
265-
// }
266-
// }
267-
// sku: {
268-
// name: 'Consumption'
269-
// tier: 'Free'
270-
// }
271-
// }
272-
273-
resource tenantIdEntry 'Microsoft.KeyVault/vaults/secrets@2021-11-01-preview' = {
274-
parent: keyVault
275-
name: 'TENANT-ID'
276-
properties: {
277-
value: subscription().tenantId
278-
}
279-
}
280-
281-
// resource adlsAccountNameEntry 'Microsoft.KeyVault/vaults/secrets@2021-11-01-preview' = {
282-
// parent: keyVault
283-
// name: 'ADLS-ACCOUNT-NAME'
284-
// properties: {
285-
// value: storageName
286-
// }
287-
// }
288-
289-
// resource adlsAccountContainerEntry 'Microsoft.KeyVault/vaults/secrets@2021-11-01-preview' = {
290-
// parent: keyVault
291-
// name: 'ADLS-ACCOUNT-CONTAINER'
292-
// properties: {
293-
// value: 'data'
294-
// }
295-
// }
296-
297-
// resource adlsAccountKeyEntry 'Microsoft.KeyVault/vaults/secrets@2021-11-01-preview' = {
298-
// parent: keyVault
299-
// name: 'ADLS-ACCOUNT-KEY'
300-
// properties: {
301-
// value: storage.listKeys().keys[0].value
302-
// }
303-
// }
304-
305-
// resource azureOpenAIInferenceEndpoint 'Microsoft.KeyVault/vaults/secrets@2021-11-01-preview' = {
306-
// parent: keyVault
307-
// name: 'AZURE-OPENAI-INFERENCE-ENDPOINT'
308-
// properties: {
309-
// value: phiserverless != null ? phiserverless.properties.inferenceEndpoint.uri : ''
310-
// // value: phiserverless.properties.inferenceEndpoint.uri
311-
// }
312-
// }
313-
314-
// resource azureOpenAIInferenceKey 'Microsoft.KeyVault/vaults/secrets@2021-11-01-preview' = {
315-
// parent: keyVault
316-
// name: 'AZURE-OPENAI-INFERENCE-KEY'
317-
// properties: {
318-
// value: phiserverless != null ? listKeys(phiserverless.id, '2024-10-01').primaryKey : ''
319-
// // listKeys(phiserverless.id, '2024-10-01').primaryKey
320-
// }
321-
// }
322-
323-
resource azureOpenAIApiKeyEntry 'Microsoft.KeyVault/vaults/secrets@2021-11-01-preview' = {
324-
parent: keyVault
325-
name: 'AZURE-OPENAI-KEY'
326-
properties: {
327-
value: aiServices.listKeys().key1 //aiServices_m.listKeys().key1
328-
}
329-
}
330-
331-
resource azureOpenAIDeploymentModel 'Microsoft.KeyVault/vaults/secrets@2021-11-01-preview' = {
332-
parent: keyVault
333-
name: 'AZURE-OPEN-AI-DEPLOYMENT-MODEL'
334-
properties: {
335-
value: gptModelName
336-
}
337-
}
338-
339-
resource gptModelVersionEntry 'Microsoft.KeyVault/vaults/secrets@2021-11-01-preview' = {
340-
parent: keyVault
341-
name: 'AZURE-OPENAI-PREVIEW-API-VERSION'
342-
properties: {
343-
value: gptModelVersion //'2024-02-15-preview'
344-
}
345-
}
346-
347-
resource azureOpenAIEndpointEntry 'Microsoft.KeyVault/vaults/secrets@2021-11-01-preview' = {
348-
parent: keyVault
349-
name: 'AZURE-OPENAI-ENDPOINT'
350-
properties: {
351-
value: aiServices.properties.endpoint //aiServices_m.properties.endpoint
352-
}
353-
}
354-
355-
resource azureAIProjectConnectionStringEntry 'Microsoft.KeyVault/vaults/secrets@2021-11-01-preview' = {
356-
parent: keyVault
357-
name: 'AZURE-AI-PROJECT-CONN-STRING'
358-
properties: {
359-
value: '${split(aiHubProject.properties.discoveryUrl, '/')[2]};${subscription().subscriptionId};${resourceGroup().name};${aiHubProject.name}'
360-
}
361-
}
362-
363-
resource azureOpenAICUEndpointEntry 'Microsoft.KeyVault/vaults/secrets@2021-11-01-preview' = {
364-
parent: keyVault
365-
name: 'AZURE-OPENAI-CU-ENDPOINT'
366-
properties: {
367-
value: aiServices_CU.properties.endpoint
368-
}
369-
}
370-
371-
resource azureOpenAICUApiKeyEntry 'Microsoft.KeyVault/vaults/secrets@2021-11-01-preview' = {
372-
parent: keyVault
373-
name: 'AZURE-OPENAI-CU-KEY'
374-
properties: {
375-
value: aiServices_CU.listKeys().key1
376-
}
377-
}
378-
379-
resource azureOpenAICUApiVersionEntry 'Microsoft.KeyVault/vaults/secrets@2021-11-01-preview' = {
380-
parent: keyVault
381-
name: 'AZURE-OPENAI-CU-VERSION'
382-
properties: {
383-
value: '?api-version=2024-12-01-preview'
384-
}
385-
}
386-
387-
// resource azureSearchAdminKeyEntry 'Microsoft.KeyVault/vaults/secrets@2021-11-01-preview' = {
388-
// parent: keyVault
389-
// name: 'AZURE-SEARCH-KEY'
390-
// properties: {
391-
// value: aiSearch.listAdminKeys().primaryKey
392-
// }
393-
// }
394-
395-
// resource azureSearchServiceEndpointEntry 'Microsoft.KeyVault/vaults/secrets@2021-11-01-preview' = {
396-
// parent: keyVault
397-
// name: 'AZURE-SEARCH-ENDPOINT'
398-
// properties: {
399-
// value: 'https://${aiSearch.name}.search.windows.net'
400-
// }
401-
// }
402-
403-
// resource azureSearchServiceEntry 'Microsoft.KeyVault/vaults/secrets@2021-11-01-preview' = {
404-
// parent: keyVault
405-
// name: 'AZURE-SEARCH-SERVICE'
406-
// properties: {
407-
// value: aiSearch.name
408-
// }
409-
// }
410-
411-
// resource azureSearchIndexEntry 'Microsoft.KeyVault/vaults/secrets@2021-11-01-preview' = {
412-
// parent: keyVault
413-
// name: 'AZURE-SEARCH-INDEX'
414-
// properties: {
415-
// value: 'transcripts_index'
416-
// }
417-
// }
418-
419-
resource cogServiceEndpointEntry 'Microsoft.KeyVault/vaults/secrets@2021-11-01-preview' = {
420-
parent: keyVault
421-
name: 'COG-SERVICES-ENDPOINT'
422-
properties: {
423-
value: aiServices.properties.endpoint
424-
}
425-
}
426-
427-
resource cogServiceKeyEntry 'Microsoft.KeyVault/vaults/secrets@2021-11-01-preview' = {
428-
parent: keyVault
429-
name: 'COG-SERVICES-KEY'
430-
properties: {
431-
value: aiServices.listKeys().key1
432-
}
433-
}
434-
435-
resource cogServiceNameEntry 'Microsoft.KeyVault/vaults/secrets@2021-11-01-preview' = {
436-
parent: keyVault
437-
name: 'COG-SERVICES-NAME'
438-
properties: {
439-
value: aiServicesName
440-
}
441-
}
442-
443-
resource azureSubscriptionIdEntry 'Microsoft.KeyVault/vaults/secrets@2021-11-01-preview' = {
444-
parent: keyVault
445-
name: 'AZURE-SUBSCRIPTION-ID'
446-
properties: {
447-
value: subscription().subscriptionId
448-
}
449-
}
450-
451-
resource resourceGroupNameEntry 'Microsoft.KeyVault/vaults/secrets@2021-11-01-preview' = {
452-
parent: keyVault
453-
name: 'AZURE-RESOURCE-GROUP'
454-
properties: {
455-
value: resourceGroup().name
456-
}
457-
}
458-
459-
resource azureLocatioEntry 'Microsoft.KeyVault/vaults/secrets@2021-11-01-preview' = {
460-
parent: keyVault
461-
name: 'AZURE-LOCATION'
462-
properties: {
463-
value: solutionLocation
464-
}
465-
}
466-
467248
output aiServicesTarget string = aiServices.properties.endpoint //aiServices_m.properties.endpoint
468249
output aiServicesCUEndpoint string = aiServices_CU.properties.endpoint //aiServices_m.properties.endpoint
469250
output aiServicesName string = aiServicesName //aiServicesName_m

0 commit comments

Comments
 (0)