This repository includes Visual Studio Code tasks for building and running the Release Manager solution in Docker using the PowerShell script Run-SolutionAcceleratorInDocker.ps1.
Two VSCode tasks are available to run the Release Manager solution:
- Standard Build and Run
- Forced Rebuild and Run (
-Recreatemode)
Both tasks rely on the same PowerShell script but differ in whether Docker containers are forcibly rebuilt.
This PowerShell script automates Docker image builds and container launches for solution accelerators. It accepts a range of parameters to specify services, ports, and credentials.
Runs the services in Docker using cached layers when available. Ideal for day-to-day development.
Label: "Release Manager: Build and Run in Docker"Command Summary:
../src/Run-SolutionAcceleratorInDocker.ps1 `
-SolutionName "ReleaseManager" `
-DockerfilePaths "services/session_manager/Dockerfile solution_accelerators/release_manager/Dockerfile" `
-ServiceNames "session_manager release_manager" `
-ServicePorts "5000 6000" `
-SubscriptionId "" `
-TenantId ""This mode does not include the
-Recreateflag, so it will reuse existing Docker containers if possible.
Forces Docker images to be rebuilt and containers recreated. Use this when dependencies or Dockerfiles change and you need a clean slate.
Label: "Release Manager: Build and Run Docker Images [FORCE INSTALL]"Command Summary:
../src/Run-SolutionAcceleratorInDocker.ps1 `
-SolutionName "ReleaseManager" `
-DockerfilePaths "services/session_manager/Dockerfile solution_accelerators/release_manager/Dockerfile" `
-ServiceNames "session_manager release_manager" `
-ServicePorts "5000 6000" `
-SubscriptionId "" `
-TenantId "" `
-RecreateThis mode includes the
-Recreateflag, which will clean up and rebuild containers even if they already exist.
- PowerShell (Core recommended)
- Docker runtime
- Visual Studio Code (with Tasks support)
-SubscriptionIdand-TenantIdif used for cloud-based configuration
To run either task:
- Open the Command Palette (
Ctrl+Shift+PorCmd+Shift+P). - Select Tasks: Run Task.
- Choose one of the following:
Release Manager: Build and Run in DockerRelease Manager: Build and Run Docker Images [FORCE INSTALL]
- Wait for the tasks to finish. Once the docker containers are up and running, you should see the following containers up and running:
Release ManagerSession ManagerRedis(acts as a message broker between Session Manager and Release Manager)
- For
Release ManagerandSession Manager, there's an additional step to allow Azure Cloud access - az login. Right-click on the container, selectView Logs, and switch to the terminal to complete the authentication with Azure. - After successful login,
Session Managercan be accessed athttp://127.0.0.1:5000(or use the web client atfrontend/index.htmlto create the request for Session Manager and use the chat interface.)
- The working directory is set to
src/, so relative paths in the script are resolved from there. - If you encounter build issues, try the FORCE INSTALL task to clear any stale container state.