Developer PowerShell
Developer PowerShell is a PowerShell profile that is optimized for development. It is a collection of scripts and configurations that are used to set up a development environment. The profile is designed to be used with the OctoMesh development environment.
Definitions and Concepts
- Main Repositories: All repositories that are the "core" of OctoMesh, currently all except Plugs and Sockets. They are connecting directly or indirectly to MongoDB directly.
- Main Services: The services of the main repositories
Here is a list of users that are needed for main services to connect to mongodb.
User | Default Password in dev environment | Comment |
---|---|---|
octo-system-admin | OctoAdmin1 | User for creating tenants and configuration tenant independent |
octo-system-ds-user-0 | OctoUser1 | User for the databases, 0 is the name of the database in MongoDB. |
Powershell Commands
Command | Description |
---|---|
Invoke-CloneMainRepos | Clones all main repositories to your root directory. |
Invoke-BuildAll | Builds all repositories starting with octo-* and a solution file (*.sln). |
Invoke-Build | Builds a repository for .NET using the current directory by default or defining by parameter repositoryPath |
Start-Octo | Starts the main services |
Invoke-BuildAndStartOcto | Builds all repositories and starts the main services |
Install-OctoInfrastructure | Uses the docker compose file located at infrastructure to compose the infrastructure dependencies |
Uninstall-OctoInfrastructure | Uninstalls the infrastructure dependencies by using docker compose file at infrastructure |
Start-OctoInfrastructure | Starts the infrastructure dependencies by using docker compose file at infrastructure |
Stop-OctoInfrastructure | Stops the infrastructure dependencies by using docker compose file at infrastructure |
Get-OctoInfrastructureStatus | Gets the status of containers by using docker compose file at infrastructure |
Push-GitRepo | Push a repository to github using the current directory by default or defining by parameter repositoryPath |
Push-AllGitRepos | Push all repositories starting with octo-* |
Sync-AllGitRepos | Pulls all repositories starting with octo-* |
Sync-AllSubmodules | Pulls all submodules of all repositories starting with octo-* |
Sync-GitRepo | Pulls a repository from github using the current directory by default or defining by parameter repositoryPath |
Sync-Submodule | Pulls all submodules of a repository from github using the current directory by default or defining by parameter repositoryPath |
Copy-AllNugetPackages | Scans all octo-* and mm-* directories for nuget packages for version 999.0.0 and copies them to $NUGETPATH |
Remove-GlobalNugetPackages | Removes in global nuget package folder ($GLOBALNUGETPACKAGESPATH) all meshmaker nuget packages in version 999.0.0 |
Sync-NugetPackages | Copies, removes globally and restores nuget packages |