mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-22 08:40:03 +01:00
8deaf4e8ea
* Swapped to use KAFKA_HOSTS everywhere * Fixed up type of kafka config options and setup separate kafka hosts for blob consumer * allow session recordings to have its own kafka security protocol * remove slash commands from this pr * syntax must be obeyed * Update UI snapshots for `chromium` (2) * Update UI snapshots for `chromium` (2) * fix * Update query snapshots * no empty strings in kafka hosts * fix snapshot * fix test --------- Co-authored-by: Paul D'Ambra <paul@posthog.com> Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
73 lines
2.8 KiB
JSON
73 lines
2.8 KiB
JSON
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
|
|
// https://github.com/microsoft/vscode-dev-containers/tree/v0.183.0/containers/docker-existing-docker-compose
|
|
// If you want to run as a non-root user in the container, see .devcontainer/docker-compose.yml.
|
|
{
|
|
"name": "PostHog codespaces development environment",
|
|
"build": {
|
|
"dockerfile": "Dockerfile",
|
|
"context": "../",
|
|
"cacheFrom": "ghcr.io/posthog/posthog/codespaces:master"
|
|
},
|
|
"remoteUser": "vscode",
|
|
"remoteEnv": {
|
|
"DEBUG": "1",
|
|
"DATABASE_URL": "postgres://posthog:posthog@localhost:5432/posthog",
|
|
"KAFKA_ENABLED": "true",
|
|
"KAFKA_HOSTS": "kafka:9092",
|
|
"CLICKHOUST_HOST": "localhost",
|
|
"CLICKHOUSE_DATABASE": "posthog_test",
|
|
"CLICKHOUSE_VERIFY": "False",
|
|
"REDIS_URL": "redis://localhost:6379",
|
|
"SECRET_KEY": "<randomly generated secret key>"
|
|
},
|
|
"overrideCommand": false,
|
|
"mounts": ["source=codespaces-linux-var-lib-docker,target=/var/lib/docker,type=volume"],
|
|
"runArgs": [
|
|
"--cap-add=SYS_PTRACE",
|
|
"--security-opt",
|
|
"seccomp=unconfined",
|
|
"--privileged",
|
|
"--init",
|
|
"--add-host",
|
|
"kafka:127.0.0.1"
|
|
],
|
|
"workspaceFolder": "/workspaces/posthog",
|
|
// Set *default* container specific settings.json values on container create.
|
|
"settings": {
|
|
/*
|
|
Python settings
|
|
*/
|
|
"python.defaultInterpreterPath": "/usr/local/bin/python",
|
|
// Configure linting
|
|
"python.linting.enabled": true,
|
|
"python.linting.pylintEnabled": false, // We use flake8, disable pylint
|
|
"python.linting.flake8Enabled": true,
|
|
"python.linting.flake8Path": "/usr/local/py-utils/bin/flake8",
|
|
"python.linting.mypyPath": "/usr/local/py-utils/bin/mypy",
|
|
// Configure formatting
|
|
"python.formatting.blackPath": "/usr/local/py-utils/bin/black",
|
|
"python.formatting.provider": "black",
|
|
// Configure testing
|
|
"python.testing.pytestEnabled": true,
|
|
"python.testing.pytestPath": "/usr/local/py-utils/bin/pytest"
|
|
},
|
|
// Add the IDs of extensions you want installed when the container is created.
|
|
"extensions": [
|
|
"ms-python.python",
|
|
"ms-python.vscode-pylance",
|
|
"esbenp.prettier-vscode",
|
|
"ms-azuretools.vscode-docker",
|
|
"stkb.rewrap",
|
|
"GitHub.copilot",
|
|
"KnisterPeter.vscode-github",
|
|
"eamodio.gitlens",
|
|
"wix.vscode-import-cost",
|
|
"Orta.vscode-jest",
|
|
"ckolkman.vscode-postgres",
|
|
"mtxr.sqltools",
|
|
"ultram4rine.sqltools-clickhouse-driver"
|
|
],
|
|
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
|
"forwardPorts": [8000, 5432, 6379, 8123, 8234, 9000, 9092, 9440, 9009]
|
|
}
|