Skip to content
This repository was archived by the owner on May 27, 2025. It is now read-only.

Commit b8d8093

Browse files
authored
Merge branch 'main' into joshbradley/activate-pytests
2 parents 865fb47 + ac13ee1 commit b8d8093

File tree

6 files changed

+14
-51
lines changed

6 files changed

+14
-51
lines changed

.devcontainer/devcontainer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@
1919
"PATH": "${containerEnv:PATH}",
2020
// Add src folder to PYTHONPATH so that we can import modules that
2121
// are in the source dir
22-
"PYTHONPATH": "/graphrag-accelerator/backend/:$PATH",
23-
"AZURE_CLI_DISABLE_CONNECTION_VERIFICATION": "1"
22+
"PYTHONPATH": "/graphrag-accelerator/backend/:$PATH"
23+
// disable SSL verification for Azure CLI if working in CodeSpaces
24+
// "AZURE_CLI_DISABLE_CONNECTION_VERIFICATION": "1"
2425
},
2526
"mounts": [
2627
// NOTE: we reference both HOME and USERPROFILE environment variables to simultaneously support both Windows and Unix environments

.dockerignore

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ notebooks
22

33
# Environments
44
.env
5-
.venv
65
env/
7-
venv/
86
ENV/
9-
env.bak/
10-
venv.bak/
7+
**/env.bak
8+
**/venv.bak
9+
**/.venv
10+
**/venv
1111

1212
.github
1313
.git

docker/Dockerfile-backend

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ RUN cd backend \
1818
&& poetry install
1919

2020
# download all nltk data that graphrag requires
21-
RUN python -m nltk.downloader punkt averaged_perceptron_tagger maxent_ne_chunker words wordnet
21+
RUN python -c "import nltk;nltk.download(['punkt','averaged_perceptron_tagger','maxent_ne_chunker','words','wordnet'])"
2222

2323
WORKDIR /backend
2424
EXPOSE 80

infra/core/aks/aks.bicep

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,9 @@ resource aks 'Microsoft.ContainerService/managedClusters@2024-02-01' = {
132132
}
133133
}
134134
networkProfile: {
135-
serviceCidr: '10.2.0.0/16'
136-
dnsServiceIP: '10.2.0.10'
135+
serviceCidr: '10.3.0.0/16' // must not overlap with any subnet IP ranges
136+
dnsServiceIP: '10.3.0.10' // must be within the range specified in serviceCidr
137+
podCidr: '10.244.0.0/16' // IP range from which to assign pod IPs
137138
}
138139
autoUpgradeProfile: autoUpgradeProfile
139140
oidcIssuerProfile: {

infra/core/cosmosdb/cosmosdb.bicep

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -89,45 +89,6 @@ resource graphragDatabase 'Microsoft.DocumentDB/databaseAccounts/sqlDatabases@20
8989
}
9090
}
9191

92-
//// comment out entitiesContainer resource as the set of entity configuration API endpoints that use this have been disabled for now
93-
// resource entitiesContainer 'Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers@2022-11-15' = {
94-
// parent: graphragDatabase
95-
// name: 'entities'
96-
// properties: {
97-
// resource: {
98-
// id: 'entities'
99-
// indexingPolicy: {
100-
// indexingMode: 'consistent'
101-
// automatic: true
102-
// includedPaths: [
103-
// {
104-
// path: '/*'
105-
// }
106-
// ]
107-
// excludedPaths: [
108-
// {
109-
// path: '/"_etag"/?'
110-
// }
111-
// ]
112-
// }
113-
// partitionKey: {
114-
// paths: [
115-
// '/id'
116-
// ]
117-
// kind: 'Hash'
118-
// version: 2
119-
// }
120-
// uniqueKeyPolicy: {
121-
// uniqueKeys: []
122-
// }
123-
// conflictResolutionPolicy: {
124-
// mode: 'LastWriterWins'
125-
// conflictResolutionPath: '/_ts'
126-
// }
127-
// }
128-
// }
129-
// }
130-
13192
resource jobsContainer 'Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers@2022-11-15' = {
13293
parent: graphragDatabase
13394
name: 'jobs'

infra/main.bicep

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,14 +127,14 @@ resource vnet 'Microsoft.Network/virtualNetworks@2024-01-01' = {
127127
properties: {
128128
addressSpace: {
129129
addressPrefixes: [
130-
'10.0.0.0/8'
130+
'10.1.0.0/16'
131131
]
132132
}
133133
subnets: [
134134
{
135135
name: '${abbrs.networkVirtualNetworksSubnets}apim'
136136
properties: {
137-
addressPrefix: '10.0.0.0/16'
137+
addressPrefix: '10.1.0.0/24'
138138
networkSecurityGroup: {
139139
id: nsg.outputs.id
140140
}
@@ -151,7 +151,7 @@ resource vnet 'Microsoft.Network/virtualNetworks@2024-01-01' = {
151151
{
152152
name: '${abbrs.networkVirtualNetworksSubnets}aks'
153153
properties: {
154-
addressPrefix: '10.1.0.0/16'
154+
addressPrefix: '10.1.1.0/24'
155155
serviceEndpoints: [
156156
{
157157
service: 'Microsoft.Storage'

0 commit comments

Comments
 (0)