Skip to content

Commit df055a7

Browse files
authored
Merge pull request #857 from microsoft/vNext-Dev
Merging 1.2 features into Main
2 parents b6c3a3b + a1e4867 commit df055a7

File tree

196 files changed

+9619
-2459
lines changed

Some content is hidden

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

196 files changed

+9619
-2459
lines changed

.devcontainer/Dockerfile

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM mcr.microsoft.com/vscode/devcontainers/python:3.10-bullseye
1+
FROM mcr.microsoft.com/vscode/devcontainers/python:3.10-bookworm
22

33
# Avoid warnings by switching to noninteractive
44
ENV DEBIAN_FRONTEND=noninteractive
@@ -22,7 +22,7 @@ RUN sudo apt-get update \
2222
&& sudo apt-get -y install --no-install-recommends apt-utils dialog nano bash-completion sudo bsdmainutils cmake \
2323
#
2424
# Verify git, process tools, lsb-release (common in install instructions for CLIs) installed
25-
&& sudo apt-get -y install git iproute2 procps lsb-release figlet build-essential
25+
&& sudo apt-get -y install git iproute2 procps lsb-release figlet build-essential dnsutils openvpn
2626

2727
# Save command line history
2828
RUN echo "export HISTFILE=/home/$USERNAME/commandhistory/.bash_history" >> "/home/$USERNAME/.bashrc" \
@@ -34,11 +34,11 @@ RUN echo "export HISTFILE=/home/$USERNAME/commandhistory/.bash_history" >> "/hom
3434
# docker-client
3535
RUN sudo apt-get update \
3636
# libgl dependencies and install Docker CE CLI
37-
&& sudo apt-get install ffmpeg libsm6 libxext6 apt-transport-https ca-certificates curl gnupg-agent software-properties-common lsb-release -y \
38-
&& curl -fsSL https://download.docker.com/linux/$(lsb_release -is | tr '[:upper:]' '[:lower:]')/gpg | sudo apt-key add - 2>/dev/null \
39-
&& sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/$(lsb_release -is | tr '[:upper:]' '[:lower:]') $(lsb_release -cs) stable" \
40-
&& sudo apt-get update \
41-
&& sudo apt-get install -y docker-ce-cli
37+
&& sudo apt-get install apt-transport-https ca-certificates curl gnupg lsb-release -y \
38+
&& curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker.gpg \
39+
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker.gpg] https://download.docker.com/linux/debian $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null \
40+
&& sudo apt-get update -y \
41+
&& sudo apt-get install -y docker-ce-cli
4242

4343
ARG DOCKER_GROUP_ID
4444
COPY ./scripts/docker-client.sh /tmp/
@@ -49,7 +49,7 @@ RUN git clone https://github.com/magicmonty/bash-git-prompt.git ~/.bash-git-prom
4949
&& echo "if [ -f \"$HOME/.bash-git-prompt/gitprompt.sh\" ]; then GIT_PROMPT_ONLY_IN_REPO=1 && source $HOME/.bash-git-prompt/gitprompt.sh; fi" >> "/home/$USERNAME/.bashrc"
5050

5151
# terraform + tflint
52-
ARG TERRAFORM_VERSION=1.3.7
52+
ARG TERRAFORM_VERSION=1.8.5
5353
ARG TFLINT_VERSION=0.44.1
5454
RUN mkdir -p /tmp/docker-downloads \
5555
&& curl -sSL -o /tmp/docker-downloads/terraform.zip https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip \
@@ -75,12 +75,6 @@ RUN echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-debian
7575
&& apt-get update \
7676
&& apt-get install -y azure-functions-core-tools-4
7777

78-
# Install Powershell
79-
RUN apt-get update \
80-
&& apt-get install -y powershell \
81-
# Alias Powershell
82-
&& echo "alias powershell=pwsh" >> "/home/$USERNAME/.bashrc"
83-
8478
#Install npm and nodejs in the Docker dev container
8579
COPY ./scripts/nodejs.sh /tmp/
8680
RUN /tmp/nodejs.sh
@@ -100,5 +94,13 @@ RUN pip install azure-cosmos
10094
RUN pip install pyfiglet
10195
RUN pip install azure-identity
10296
RUN pip install azure-keyvault-secrets
97+
10398
# Python Package for Backend Testing
104-
RUN pip install pytest
99+
RUN pip install pytest
100+
101+
# Install skopeo - This must be at the end due to pulling from trixie
102+
RUN sudo DEBIAN_FRONTEND=noninteractive apt-get --assume-yes install usrmerge
103+
104+
RUN echo 'deb http://ftp.debian.org/debian trixie main' | sudo tee /etc/apt/sources.list.d/debian.trixie.list \
105+
&& sudo apt-get update \
106+
&& sudo apt-get install skopeo

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
},
1212
"forwardPorts": [ 7071 ],
1313
"runArgs": [
14-
"--network", "host" // use host networking so that the dev container can access the API when running the container locally
14+
"--network", "host", "--cap-add", "NET_ADMIN" // use host networking so that the dev container can access the API when running the container locally
1515
],
1616

1717
"mounts": [

.devcontainer/scripts/nodejs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ set -e
33

44
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash
55
source $NVM_DIR/nvm.sh
6-
nvm install v18.12.1
6+
nvm install v20.13.0

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,4 +400,8 @@ infra/sp_config/config.json
400400
#Upgrade & Migrate Support
401401
scripts/upgrade_repoint.config.json
402402
azcopy.tar.gz
403-
azcopy_dir
403+
azcopy_dir
404+
405+
#Openvpn setting
406+
openvpn/*
407+
!openvpn/info.txt

.vscode/launch.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@
8686
"request": "launch",
8787
"program": "debug_tests.py",
8888
"args": [
89-
"--storage_account_connection_str",
90-
"${env:STORAGE_ACCOUNT_CONNECTION_STR},",
89+
"--storage_account_url",
90+
"${env:AZURE_BLOB_STORAGE_ENDPOINT},",
9191
"--search_service_endpoint",
9292
"${env:SEARCH_SERVICE_ENDPOINT}",
9393
"--search_index",
@@ -98,10 +98,9 @@
9898
"60"
9999
],
100100
"env": {
101-
"STORAGE_ACCOUNT_CONNECTION_STR": "${env:BLOB_CONNECTION_STRING}",
101+
"storage_account_url": "${env:AZURE_BLOB_STORAGE_ENDPOINT}",
102102
"SEARCH_SERVICE_ENDPOINT": "${env:AZURE_SEARCH_SERVICE_ENDPOINT}",
103-
"SEARCH_INDEX": "${env:AZURE_SEARCH_INDEX}",
104-
"SEARCH_KEY": "${env:AZURE_SEARCH_SERVICE_KEY}"
103+
"SEARCH_INDEX": "${env:AZURE_SEARCH_INDEX}"
105104
},
106105
"cwd": "${workspaceFolder}/tests",
107106
"envFile": "${workspaceFolder}/scripts/environments/infrastructure.debug.env",

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Contributing to Information Assistant
1+
# Contributing to Information Assistant copilot template
22

33
This project welcomes contributions and suggestions. Most contributions require you to agree to a
44
Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ help: ## Show this help
99
| awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%s\033[0m|%s\n", $$1, $$2}' \
1010
| column -t -s '|'
1111

12-
deploy: build infrastructure extract-env deploy-enrichments deploy-search-indexes deploy-webapp deploy-functions ## Deploy infrastructure and application code
12+
deploy: build infrastructure extract-env deploy-search-indexes deploy-functions deploy-webapp deploy-enrichments ## Deploy infrastructure and application code
1313

1414
build-deploy-webapp: build extract-env deploy-webapp ##Build and Deploy the Webapp
1515
build-deploy-enrichments: build extract-env deploy-enrichments ##Build and Deploy the Enrichment Webapp
@@ -18,15 +18,15 @@ build-deploy-functions: build extract-env deploy-functions ##Build and Deploy th
1818
build: ## Build application code
1919
@./scripts/build.sh
2020

21-
build-containers: extract-env
22-
@./app/enrichment/docker-build.sh
23-
2421
infrastructure: check-subscription ## Deploy infrastructure
2522
@./scripts/inf-create.sh
2623

27-
extract-env: extract-env-debug-webapp extract-env-debug-functions ## Extract infrastructure.env file from Terraform output
24+
extract-env: check-secure-mode-connectivity extract-env-debug-webapp extract-env-debug-functions ## Extract infrastructure.env file from Terraform output
2825
@./scripts/json-to-env.sh < inf_output.json > ./scripts/environments/infrastructure.env
2926

27+
check-secure-mode-connectivity: ## Check secure mode connectivity
28+
@./scripts/check-secure-mode-connectivity.sh
29+
3030
deploy-webapp: extract-env ## Deploys the web app code to Azure App Service
3131
@./scripts/deploy-webapp.sh
3232

NOTICE.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,6 @@ From the following locations:
113113

114114
<https://github.com/remix-run/react-router>
115115

116-
### @azure/storage-blob
117-
118-
<https://github.com/Azure/azure-sdk-for-js>
119-
120116
### classnames
121117

122118
<https://github.com/JedWatson/classnames>

0 commit comments

Comments
 (0)