@solcreek/dew 0.7.36 → 0.7.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -35,6 +35,11 @@ npm install -g dew
|
|
|
35
35
|
irm https://github.com/solcreek/dew/releases/latest/download/install.ps1 | iex
|
|
36
36
|
```
|
|
37
37
|
|
|
38
|
+
> One-off try-out without installing: `npx dew run -- uname -a` works too.
|
|
39
|
+
> Once dew is installed (brew, install.sh, or `npm install -g`), call `dew`
|
|
40
|
+
> directly — `npx dew` always resolves the npm package and ignores the
|
|
41
|
+
> binary already on your PATH, adding startup overhead on every call.
|
|
42
|
+
|
|
38
43
|
Then try:
|
|
39
44
|
|
|
40
45
|
```bash
|
|
@@ -149,6 +154,22 @@ dew dew (deploy receiver)
|
|
|
149
154
|
| python | Python projects |
|
|
150
155
|
| standard | Containers, services |
|
|
151
156
|
|
|
157
|
+
### Running x86_64 (amd64) containers on Apple Silicon
|
|
158
|
+
|
|
159
|
+
Add `--rosetta` to mount Apple's Rosetta translator into the guest and register
|
|
160
|
+
`binfmt_misc`, so amd64 binaries and containers run transparently under
|
|
161
|
+
translation:
|
|
162
|
+
|
|
163
|
+
```bash
|
|
164
|
+
dew run --profile standard --network --rosetta -- \
|
|
165
|
+
nerdctl run --rm --platform linux/amd64 alpine uname -m # -> x86_64
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
Apple Silicon only (Intel Macs have no Rosetta-for-Linux). Performance depends
|
|
169
|
+
on the workload's hot path: roughly 70-80% of native for ordinary compiled
|
|
170
|
+
code, less for interpreter-heavy or crypto/SIMD-heavy code. For peak
|
|
171
|
+
performance prefer a native `linux/arm64` image.
|
|
172
|
+
|
|
152
173
|
## Security
|
|
153
174
|
|
|
154
175
|
- Hardware-VM isolation. Network off until you flip `--network`. Input validated against path traversal, control characters, and injection.
|