-
Notifications
You must be signed in to change notification settings - Fork 822
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #764 from microsoft/dayland/1.1.2-secure-mode
Secure mode changes
- Loading branch information
Showing
102 changed files
with
8,605 additions
and
661 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
# Support | ||
|
||
## How to file issues and get help | ||
|
||
This project uses GitHub Issues to track bugs and feature requests. Please search the existing | ||
issues before filing new issues to avoid duplicates. For new issues, file your bug or | ||
feature request as a new Issue. | ||
|
||
For help and questions about using this project, please use the [Discussion](https://github.com/microsoft/PubSec-Info-Assistant/discussions) forums on our GitHub Repo page. | ||
|
||
For customer support deploying this accelerator, please reach out to your local Microsoft representative or email the [Industry Solutions Accelerator Team](mailto:[email protected]). | ||
|
||
## Providing Feedback | ||
|
||
Please refer to the [Contributing](./CONTRIBUTING.md) guidelines for acceptable methods to provide feedback which are not security related. | ||
|
||
## Microsoft Support Policy | ||
|
||
Support for this **PROJECT** is limited to the resources listed above. | ||
# Support | ||
|
||
## How to file issues and get help | ||
|
||
This project uses GitHub Issues to track bugs and feature requests. Please search the existing | ||
issues before filing new issues to avoid duplicates. For new issues, file your bug or | ||
feature request as a new Issue. | ||
|
||
For help and questions about using this project, please use the [Discussion](https://github.com/microsoft/PubSec-Info-Assistant/discussions) forums on our GitHub Repo page. | ||
|
||
For customer support deploying this accelerator, please reach out to your local Microsoft representative or email the [Industry Solutions Accelerator Team](mailto:[email protected]). | ||
|
||
## Providing Feedback | ||
|
||
Please refer to the [Contributing](./CONTRIBUTING.md) guidelines for acceptable methods to provide feedback which are not security related. | ||
|
||
## Microsoft Support Policy | ||
|
||
Support for this **PROJECT** is limited to the resources listed above. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Use the official Python image from Microsoft for Azure App Service | ||
FROM mcr.microsoft.com/devcontainers/python:3.10 | ||
|
||
# Set the working directory | ||
WORKDIR /app | ||
|
||
COPY app/enrichment /app | ||
|
||
# Install any needed packages specified in requirements.txt | ||
RUN pip install -r /app/requirements.txt | ||
|
||
# Expose the port the app runs on | ||
EXPOSE 6000 | ||
|
||
# Run the application | ||
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "6000"] |
21 changes: 21 additions & 0 deletions
21
container_images/enrichment_container_image/docker-build.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
set -eo pipefail | ||
|
||
# Display banner | ||
figlet "Build Docker Container Images" | ||
|
||
# Build the Docker image with the correct context | ||
echo "Building Docker image: enrichmentapp" | ||
echo -e "\n" | ||
sudo docker build -f ./container_images/enrichment_container_image/Dockerfile -t enrichmentapp . --build-arg BUILDKIT_INLINE_CACHE=1 | ||
|
||
# Generate a unique tag for the image | ||
tag=$(date -u +"%Y%m%d-%H%M%S") | ||
echo "Tagging image with: $tag" | ||
sudo docker tag enrichmentapp enrichmentapp:$tag | ||
|
||
# Output the tag to a file to be used in deployment | ||
echo -n "$tag" > ./container_images/enrichment_container_image/image_tag.txt | ||
|
||
echo "Build and tagging complete. Tag: $tag" | ||
echo -e "\n" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Use the official Node.js image | ||
FROM mcr.microsoft.com/devcontainers/python:3.10 | ||
|
||
# Set the working directory | ||
WORKDIR /home/site/wwwroot | ||
|
||
# Copy the package.json | ||
COPY app/backend /home/site/wwwroot | ||
|
||
# Install the dependencies | ||
RUN pip install -r /home/site/wwwroot/requirements.txt | ||
|
||
# Expose the port the app runs on | ||
EXPOSE 6000 | ||
|
||
# Run the application | ||
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "6000"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
set -eo pipefail | ||
|
||
# Build the Docker image with the correct context | ||
echo "Building Docker image: webapp" | ||
echo -e "\n" | ||
sudo docker build -f ./container_images/webapp_container_image/Dockerfile -t webapp . --build-arg BUILDKIT_INLINE_CACHE=1 | ||
|
||
# Generate a unique tag for the image | ||
tag=$(date -u +"%Y%m%d-%H%M%S") | ||
echo "Tagging image with: $tag" | ||
sudo docker tag webapp webapp:$tag | ||
|
||
# Output the tag to a file to be used in deployment | ||
echo -n "$tag" > ./container_images/webapp_container_image/image_tag.txt | ||
|
||
echo "Build and tagging complete. Tag: $tag" | ||
echo -e "\n" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.