feat: Update Docker configuration for Copilot debugging

This commit updates the Docker configuration in the `.vscode/launch.json` file to improve the debugging experience for Copilot. It modifies the `Debug: Copilot Locally` configuration by changing the `localRoot` to `${workspaceFolder}/TestServer` and updating the `name` to `Copilot: Debug with Docker`. Additionally, it sets the `port` to `9985`, `remoteRoot` to `/usr/src/app`, and enables `restart` and `autoAttachChildProcesses` for better debugging capabilities. These changes enhance the development workflow and make it easier to debug Copilot locally with Docker.
This commit is contained in:
Simon Larsen 2024-07-15 13:31:49 -06:00
parent 2a458ec7e6
commit 4587e3136b
No known key found for this signature in database
GPG Key ID: 96C5DCA24769DBCA
2 changed files with 2 additions and 3 deletions

View File

@ -23,8 +23,7 @@ jobs:
# Run Reliability Copilot in Doker Container
- name: Run Copilot
run: |
docker run --rm \
-e ONEUPTIME_URL='https://test.oneuptime.com' \
docker run --rm -e ONEUPTIME_URL='https://test.oneuptime.com' \
-e ONEUPTIME_REPOSITORY_SECRET_KEY=${{ secrets.COPILOT_ONEUPTIME_REPOSITORY_SECRET_KEY }} \
-e CODE_REPOSITORY_PASSWORD=${{ github.token }} \
-e CODE_REPOSITORY_USERNAME='simlarsen' \

View File

@ -31,7 +31,7 @@ export default class Register {
if (!pingMonitoringCheck && websiteMonitoringCheck) {
// probe is online but ping monitoring is blocked by the cloud provider. Fallback to port monitoring.
logger.warn(
"Ping monitoring is disabled on this machine. Fallback to port monitoring",
"Ping monitoring is disabled on this machine. Ping/ICMP checks are usually disabled by cloud providers (Azure, AWS, GCP, etc.). If you need ICMP checks, please use a different provider or use port checks.",
);
LocalCache.setString("PROBE", "PING_MONITORING", "PORT");
}