Skip to content

Commit cda6af6

Browse files
committed
docs: add /etc/hosts pre-setup for local environments
1 parent e3ff3c6 commit cda6af6

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.devcontainer/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,16 @@
33

44
A [VS Code extension](https://marketplace.visualstudio.com/items?itemName=GitHub.codespaces) is available for Codespaces.
55

6+
## Pre-setup: /etc/hosts (local environments only)
7+
8+
When running locally (not in a Codespace/devcontainer where you are root),
9+
the CTST configuration script needs Zenko hostnames to resolve to localhost.
10+
Add them before running setup to avoid a `sudo` prompt mid-run:
11+
12+
```bash
13+
echo "127.0.0.1 iam.zenko.local s3-local-file.zenko.local keycloak.zenko.local sts.zenko.local management.zenko.local s3.zenko.local website.mywebsite.com utilization.zenko.local aws-mock.zenko.local azure-mock.zenko.local blob.azure-mock.zenko.local queue.azure-mock.zenko.local devstoreaccount1.blob.azure-mock.zenko.local devstoreaccount1.queue.azure-mock.zenko.local dr.zenko.local" | sudo tee -a /etc/hosts
14+
```
15+
616
## Running CTST tests in the codespace
717

818
```bash

0 commit comments

Comments
 (0)