Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions .devcontainer/link-playwright-chrome.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,16 @@
set -euo pipefail

browser_root="${PLAYWRIGHT_BROWSERS_PATH:-$HOME/.cache/ms-playwright}"
chrome_bin="$(
find "$browser_root" -path '*/chrome-linux/chrome' -type f 2>/dev/null |
sort -V |
tail -n 1
)"
chrome_bin=""
if [[ -d "$browser_root" ]]; then
chrome_bin="$(
find "$browser_root" \
\( -path '*/chrome-linux/chrome' -o -path '*/chrome-linux64/chrome' \) \
-type f 2>/dev/null |
sort -V |
tail -n 1
)"
fi

if [[ -z "$chrome_bin" ]]; then
for candidate in chromium-browser chromium google-chrome chrome; do
Expand Down
33 changes: 33 additions & 0 deletions .env.azure.development.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Azure VM Remote SSH development scaffold.
# Copy to .env.azure.development, then set the three required Azure values.
# Keep secrets in session variables or .env.azure.development.local.

AZURE_DEV_VM_ALLOWED_SSH_CIDR=auto
AZURE_DEV_VM_AUTO_STOP_ENABLED=true
AZURE_DEV_VM_AUTO_STOP_TIME=2200
AZURE_DEV_VM_AUTO_STOP_TIME_ZONE=UTC
AZURE_DEV_VM_CONNECTIVITY_MODE=public-ssh
AZURE_DEV_VM_DATA_DISK_GIB=256
AZURE_DEV_VM_ENVIRONMENT_ID=personal
AZURE_DEV_VM_FALLBACK_SIZE=Standard_D8as_v5
AZURE_DEV_VM_LOCATION=eastus2
AZURE_DEV_VM_NAME=krav-dev-vm
AZURE_DEV_VM_NAME_PREFIX=krav-dev
AZURE_DEV_VM_RESOURCE_GROUP=rg-krav-dev-personal
AZURE_DEV_VM_SIZE=Standard_D8s_v5
AZURE_DEV_VM_SSH_HOST_ALIAS=kravhantering-azure-dev
AZURE_DEV_VM_SSH_PRIVATE_KEY_PATH=~/.ssh/kravhantering_azure_dev_ed25519
AZURE_DEV_VM_SUBSCRIPTION_ID=00000000-0000-0000-0000-000000000000

# Optional Azure CLI service-principal automation.
# Set these in the shell or .env.azure.development.local when needed.
# If all three are set, real Azure commands use the service principal before
# any existing Azure CLI user login.
# AZURE_TENANT_ID=
# AZURE_CLIENT_ID=
# AZURE_CLIENT_SECRET=

# Optional Tailscale mode.
# AZURE_DEV_VM_CONNECTIVITY_MODE=tailscale
# AZURE_DEV_TAILSCALE_AUTH_KEY=
# AZURE_DEV_TAILSCALE_TAILNET=
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ certificates
.env.sqlserver
.env.local
.env.*.local
.env.azure.development
.azure/

# parcel-bundler cache (https://parceljs.org/)
.cache
Expand Down
9 changes: 8 additions & 1 deletion cspell.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -982,7 +982,14 @@
"kravområdesförvaltningen",
"sessionstoken",
"spinbutton",
"unvalidated"
"unvalidated",
"keyrings",
"graphroot",
"rebuildable",
"deallocates",
"vnet",
"snet",
"computevm"
],
"flagWords": [],
"ignorePaths": [
Expand Down
Loading
Loading