From 2d07f70f8c3025027f5eaf84231261e39e25d895 Mon Sep 17 00:00:00 2001 From: Utkarsh Ayachit Date: Wed, 11 Oct 2023 12:47:03 -0400 Subject: [PATCH 1/2] updates to license/readme/code of conduct etc. --- CODE_OF_CONDUCT.md | 9 +++++++++ LICENSE | 6 +++--- README.md | 20 ++++++++++++++++++++ 3 files changed, 32 insertions(+), 3 deletions(-) create mode 100644 CODE_OF_CONDUCT.md diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md new file mode 100644 index 0000000..f9ba8cf --- /dev/null +++ b/CODE_OF_CONDUCT.md @@ -0,0 +1,9 @@ +# Microsoft Open Source Code of Conduct + +This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). + +Resources: + +- [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/) +- [Microsoft Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) +- Contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with questions or concerns diff --git a/LICENSE b/LICENSE index 22aed37..b2f52a2 100644 --- a/LICENSE +++ b/LICENSE @@ -1,7 +1,7 @@ -MIT License - Copyright (c) Microsoft Corporation. +MIT License + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights @@ -12,7 +12,7 @@ furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER diff --git a/README.md b/README.md index d5031eb..d497bc4 100644 --- a/README.md +++ b/README.md @@ -36,3 +36,23 @@ Latest documentation is hosted on [Github Pages](https://azure.github.io/bacc/). Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the [MIT License](./LICENSE) + +# Microsoft Open Source Code of Conduct + +This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). +Refer to [CODE_OF_CONDUCT.md](./CODE_OF_CONDUCT.md) for details. + +# Contributing + +This project welcomes contributions and suggestions. Most contributions require you to +agree to a Contributor License Agreement (CLA) declaring that you have the right to, +and actually do, grant us the rights to use your contribution. For details, visit +https://cla.microsoft.com. + +When you submit a pull request, a CLA-bot will automatically determine whether you need +to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the +instructions provided by the bot. You will only need to do this once across all repositories using our CLA. + +This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). +For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) +or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments. From 1235946cd059a1aa2887af82c6046ef1382305a3 Mon Sep 17 00:00:00 2001 From: Utkarsh Ayachit Date: Wed, 11 Oct 2023 12:55:11 -0400 Subject: [PATCH 2/2] add license headers to source files. --- cli/src/bacc/__init__.py | 2 ++ cli/src/bacc/__main__.py | 3 +++ cli/src/bacc/azfinsim.py | 3 +++ cli/src/bacc/commands.py | 3 +++ cli/src/bacc/mpi_bm.py | 3 +++ cli/src/bacc/tools_json.py | 3 +++ cli/src/bacc/utils.py | 3 +++ cli/tests/__init__.py | 2 ++ examples/azfinsim-linux/deployment.bicep | 3 +++ examples/azfinsim-windows/deployment.bicep | 3 +++ examples/azfinsim-windows/start_task.ps1 | 3 +++ examples/mpi-benchmarks/deployment.bicep | 3 +++ examples/mpi-benchmarks/start_task.sh | 3 +++ examples/secured-batch/deployment.bicep | 3 +++ examples/vizer/deployment.bicep | 3 +++ examples/vizer/vizer-hub.bicep | 3 +++ modules/batch.bicep | 3 +++ modules/containerImages.bicep | 3 +++ modules/endpoints.bicep | 3 +++ modules/infrastructure.bicep | 3 +++ modules/mountConfigurations.bicep | 3 +++ modules/nsgRules.bicep | 3 +++ modules/peering.bicep | 3 +++ modules/privateEndpoint.bicep | 3 +++ modules/roleAssignments.bicep | 3 +++ modules/roles.bicep | 3 +++ modules/spoke.bicep | 3 +++ modules/startTasks.bicep | 3 +++ modules/storage.bicep | 3 +++ modules/storageAccount.bicep | 3 +++ modules/vnetLinks.bicep | 3 +++ tests/CMakeLists.txt | 3 +++ tests/CTestConfig.cmake | 3 +++ tests/cmake/acr_import.cmake | 3 +++ tests/cmake/azfinsim_tests.cmake | 3 +++ tests/cmake/jumpbox_script.sh.in | 3 +++ tests/cmake/secured_batch_tests.cmake | 3 +++ tests/cmake/utils.cmake | 3 +++ tests/cmake/validation_tests.cmake | 2 ++ tests/cmake/variables.cmake | 3 +++ 40 files changed, 117 insertions(+) diff --git a/cli/src/bacc/__init__.py b/cli/src/bacc/__init__.py index e69de29..59e481e 100644 --- a/cli/src/bacc/__init__.py +++ b/cli/src/bacc/__init__.py @@ -0,0 +1,2 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. diff --git a/cli/src/bacc/__main__.py b/cli/src/bacc/__main__.py index 58cf864..9f41c11 100644 --- a/cli/src/bacc/__main__.py +++ b/cli/src/bacc/__main__.py @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. + import os.path import sys diff --git a/cli/src/bacc/azfinsim.py b/cli/src/bacc/azfinsim.py index cdf16e2..7583e4e 100644 --- a/cli/src/bacc/azfinsim.py +++ b/cli/src/bacc/azfinsim.py @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. + from knack.commands import CommandGroup from knack.arguments import ArgumentsContext from knack.help_files import helps diff --git a/cli/src/bacc/commands.py b/cli/src/bacc/commands.py index 3889d33..8550c1e 100644 --- a/cli/src/bacc/commands.py +++ b/cli/src/bacc/commands.py @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. + from knack.commands import CLICommandsLoader, CommandGroup from knack.arguments import ArgumentsContext from knack.help_files import helps diff --git a/cli/src/bacc/mpi_bm.py b/cli/src/bacc/mpi_bm.py index 4791f6c..48a83ee 100644 --- a/cli/src/bacc/mpi_bm.py +++ b/cli/src/bacc/mpi_bm.py @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. + from knack.commands import CommandGroup from knack.arguments import ArgumentsContext from knack.help_files import helps diff --git a/cli/src/bacc/tools_json.py b/cli/src/bacc/tools_json.py index f7787c0..5094e6a 100644 --- a/cli/src/bacc/tools_json.py +++ b/cli/src/bacc/tools_json.py @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. + from knack.commands import CommandGroup from knack.arguments import ArgumentsContext from knack.help_files import helps diff --git a/cli/src/bacc/utils.py b/cli/src/bacc/utils.py index 5aeb140..fac5a6a 100644 --- a/cli/src/bacc/utils.py +++ b/cli/src/bacc/utils.py @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. + import os from azure.identity import DefaultAzureCredential diff --git a/cli/tests/__init__.py b/cli/tests/__init__.py index e69de29..59e481e 100644 --- a/cli/tests/__init__.py +++ b/cli/tests/__init__.py @@ -0,0 +1,2 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. diff --git a/examples/azfinsim-linux/deployment.bicep b/examples/azfinsim-linux/deployment.bicep index f693f17..4acd22a 100644 --- a/examples/azfinsim-linux/deployment.bicep +++ b/examples/azfinsim-linux/deployment.bicep @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + targetScope = 'subscription' //------------------------------------------------------------------------------ diff --git a/examples/azfinsim-windows/deployment.bicep b/examples/azfinsim-windows/deployment.bicep index 34f07fa..f60e8f6 100644 --- a/examples/azfinsim-windows/deployment.bicep +++ b/examples/azfinsim-windows/deployment.bicep @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + targetScope = 'subscription' //------------------------------------------------------------------------------ diff --git a/examples/azfinsim-windows/start_task.ps1 b/examples/azfinsim-windows/start_task.ps1 index d056d32..2093dc8 100644 --- a/examples/azfinsim-windows/start_task.ps1 +++ b/examples/azfinsim-windows/start_task.ps1 @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. + # download Python $url = "https://www.python.org/ftp/python/3.10.11/python-3.10.11-amd64.exe" $destination = "$env:TEMP\python-3.10.11-amd64.exe" diff --git a/examples/mpi-benchmarks/deployment.bicep b/examples/mpi-benchmarks/deployment.bicep index ec4d664..fc77fa9 100644 --- a/examples/mpi-benchmarks/deployment.bicep +++ b/examples/mpi-benchmarks/deployment.bicep @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + targetScope = 'subscription' //------------------------------------------------------------------------------ diff --git a/examples/mpi-benchmarks/start_task.sh b/examples/mpi-benchmarks/start_task.sh index 81443f3..b074581 100755 --- a/examples/mpi-benchmarks/start_task.sh +++ b/examples/mpi-benchmarks/start_task.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. + # This script installs Mellanox OFED drivers on RHEL 8.4 set -x -e diff --git a/examples/secured-batch/deployment.bicep b/examples/secured-batch/deployment.bicep index 38d5408..cc593c0 100644 --- a/examples/secured-batch/deployment.bicep +++ b/examples/secured-batch/deployment.bicep @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + targetScope = 'subscription' //------------------------------------------------------------------------------ diff --git a/examples/vizer/deployment.bicep b/examples/vizer/deployment.bicep index fc3262d..8710bb1 100644 --- a/examples/vizer/deployment.bicep +++ b/examples/vizer/deployment.bicep @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + targetScope = 'subscription' //------------------------------------------------------------------------------ diff --git a/examples/vizer/vizer-hub.bicep b/examples/vizer/vizer-hub.bicep index b33db7f..f39b913 100644 --- a/examples/vizer/vizer-hub.bicep +++ b/examples/vizer/vizer-hub.bicep @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + //------------------------------------------------------------------------------ // Options: parameters having broad impact on the deployement. //------------------------------------------------------------------------------ diff --git a/modules/batch.bicep b/modules/batch.bicep index 5bd1341..371453d 100644 --- a/modules/batch.bicep +++ b/modules/batch.bicep @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + /** Deploys core resources needed for batch. */ diff --git a/modules/containerImages.bicep b/modules/containerImages.bicep index 5b3b139..03138ab 100644 --- a/modules/containerImages.bicep +++ b/modules/containerImages.bicep @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + param images array = [] param acrLoginServer string = '' diff --git a/modules/endpoints.bicep b/modules/endpoints.bicep index eb9c4bc..d4cef5a 100644 --- a/modules/endpoints.bicep +++ b/modules/endpoints.bicep @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + /** @allowed([ { diff --git a/modules/infrastructure.bicep b/modules/infrastructure.bicep index 32f51c2..605a48c 100644 --- a/modules/infrastructure.bicep +++ b/modules/infrastructure.bicep @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + targetScope = 'subscription' //------------------------------------------------------------------------------ diff --git a/modules/mountConfigurations.bicep b/modules/mountConfigurations.bicep index 0d5711c..d8ff4b9 100644 --- a/modules/mountConfigurations.bicep +++ b/modules/mountConfigurations.bicep @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + param mounts object param storageConfigurations object param isWindows bool diff --git a/modules/nsgRules.bicep b/modules/nsgRules.bicep index 24e49c6..66e525c 100644 --- a/modules/nsgRules.bicep +++ b/modules/nsgRules.bicep @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + /** Simply builds a list of NSG security rules objects from a list of NSG rule names */ diff --git a/modules/peering.bicep b/modules/peering.bicep index 08f2852..64554d2 100644 --- a/modules/peering.bicep +++ b/modules/peering.bicep @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + param vnetName string param targetConfig object param enableGateway bool = false diff --git a/modules/privateEndpoint.bicep b/modules/privateEndpoint.bicep index 89196ed..075b076 100644 --- a/modules/privateEndpoint.bicep +++ b/modules/privateEndpoint.bicep @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + /** Helper to deploy a private endpoint together with a DNS zone / group etc. */ diff --git a/modules/roleAssignments.bicep b/modules/roleAssignments.bicep index 93a483b..3c27a4c 100644 --- a/modules/roleAssignments.bicep +++ b/modules/roleAssignments.bicep @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + targetScope = 'subscription' param miConfig object diff --git a/modules/roles.bicep b/modules/roles.bicep index 4cbb01d..d306b63 100644 --- a/modules/roles.bicep +++ b/modules/roles.bicep @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + @allowed([ 'acr' 'ba' diff --git a/modules/spoke.bicep b/modules/spoke.bicep index d68bb62..cb2c55f 100644 --- a/modules/spoke.bicep +++ b/modules/spoke.bicep @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + /** Deploy a vnet for our use. */ diff --git a/modules/startTasks.bicep b/modules/startTasks.bicep index 8ee27ce..8890540 100644 --- a/modules/startTasks.bicep +++ b/modules/startTasks.bicep @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + param commands array param isWindows bool param environmentSettings array diff --git a/modules/storage.bicep b/modules/storage.bicep index b153708..a9f8390 100644 --- a/modules/storage.bicep +++ b/modules/storage.bicep @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + /** Deploys storage accounts for the given environment. */ diff --git a/modules/storageAccount.bicep b/modules/storageAccount.bicep index e220aaa..d69c080 100644 --- a/modules/storageAccount.bicep +++ b/modules/storageAccount.bicep @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + /// deploys a single storage account /// this code can either deploy a new one or "process" and existing one diff --git a/modules/vnetLinks.bicep b/modules/vnetLinks.bicep index 0dfed58..6071b6d 100644 --- a/modules/vnetLinks.bicep +++ b/modules/vnetLinks.bicep @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + param dnsZoneName string param vnetInfo object = { group: null diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 3587c90..cf37219 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. + cmake_minimum_required(VERSION 3.22) project(tests LANGUAGES NONE) diff --git a/tests/CTestConfig.cmake b/tests/CTestConfig.cmake index a8fa0fa..5d6db45 100644 --- a/tests/CTestConfig.cmake +++ b/tests/CTestConfig.cmake @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. + ## This file should be placed in the root directory of your project. ## Then modify the CMakeLists.txt file in the root directory of your ## project to incorporate the testing dashboard. diff --git a/tests/cmake/acr_import.cmake b/tests/cmake/acr_import.cmake index ffa4a47..2f1321e 100644 --- a/tests/cmake/acr_import.cmake +++ b/tests/cmake/acr_import.cmake @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. + # test script to import container image to ACR # get ACR name from deployment diff --git a/tests/cmake/azfinsim_tests.cmake b/tests/cmake/azfinsim_tests.cmake index 24eb083..301c012 100644 --- a/tests/cmake/azfinsim_tests.cmake +++ b/tests/cmake/azfinsim_tests.cmake @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. + ## This modules adds various test for azfinsim application demo. #======================================================================================================================= diff --git a/tests/cmake/jumpbox_script.sh.in b/tests/cmake/jumpbox_script.sh.in index 5f15b7d..f8c71a5 100644 --- a/tests/cmake/jumpbox_script.sh.in +++ b/tests/cmake/jumpbox_script.sh.in @@ -1,5 +1,8 @@ #!/usr/bin/env bash +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. + # exit if any command fails set -e diff --git a/tests/cmake/secured_batch_tests.cmake b/tests/cmake/secured_batch_tests.cmake index 56b52d4..0456e43 100644 --- a/tests/cmake/secured_batch_tests.cmake +++ b/tests/cmake/secured_batch_tests.cmake @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. + # include common utilities include(utils) diff --git a/tests/cmake/utils.cmake b/tests/cmake/utils.cmake index 810f0d5..93ef51e 100644 --- a/tests/cmake/utils.cmake +++ b/tests/cmake/utils.cmake @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. + function(bacc_get_config_files out_var config_name) set(config_files "${SB_SOURCE_DIR}/examples/${config_name}/config.jsonc") set(${out_var} ${config_files} PARENT_SCOPE) diff --git a/tests/cmake/validation_tests.cmake b/tests/cmake/validation_tests.cmake index beed6f2..b31ace5 100644 --- a/tests/cmake/validation_tests.cmake +++ b/tests/cmake/validation_tests.cmake @@ -1,3 +1,5 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. ## This module adds various deployment validate tests ## to the CTest suite. These tests are run after the diff --git a/tests/cmake/variables.cmake b/tests/cmake/variables.cmake index 9228270..68d8df5 100644 --- a/tests/cmake/variables.cmake +++ b/tests/cmake/variables.cmake @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. + #------------------------------------------------------------------------------- # These variables are core deployment variables set(SB_SUBSCRIPTION_ID "" CACHE STRING "The subscription ID to use for testing")