@@ -72,11 +72,16 @@ This repository uses Dev Container for a unifying local development environment.
72
72
- Dev Container requires [ VS Code] ( https://code.visualstudio.com/download ) and
73
73
[ Docker] ( https://www.docker.com/get-started/ ) to be pre-installed to use it.
74
74
75
- - Install the
75
+ - It is recommended to increase the maximum memory allocated to the Dev
76
+ Container to at least 24GB, otherwise you may run into spurious errors while
77
+ compiling. This can be configured via the Docker CLI or the Docker Desktop at
78
+ ` Settings -> Resources -> Advanced -> Memory ` .
79
+
80
+ * Install the
76
81
[ Dev Containers extension] ( https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers )
77
82
to VS Code.
78
83
79
- - Open the command palette, and select
84
+ * Open the command palette, and select
80
85
` Dev Containers: Open Folder in Container... `
81
86
82
87
![ figure-vscode] ( assets/dev-container-vscode.gif )
@@ -113,10 +118,10 @@ After running the script, `k6` should run normally as shown below.
113
118
``` sh
114
119
vscode ➜ /workspaces/edge-runtime/k6/scripts $ k6 --help
115
120
116
- /\ | ‾‾| /‾‾/ /‾‾/
117
- /\ / \ | | / / / /
118
- / \/ \ | ( / ‾‾\
119
- / \ | | \ \ | (‾) |
121
+ /\ | ‾‾| /‾‾/ /‾‾/
122
+ /\ / \ | | / / / /
123
+ / \/ \ | ( / ‾‾\
124
+ / \ | | \ \ | (‾) |
120
125
/ __________ \ | __| \_ _\ \_ ____/ .io
121
126
122
127
Usage:
@@ -138,7 +143,7 @@ Once you've confirmed that k6 is run properly, you can proceed to load testing.
138
143
vscode ➜ /workspaces/edge-runtime $ pwd
139
144
/workspaces/edge-runtime
140
145
141
- vscode ➜ /workspaces/edge-runtime $ cat ./scripts/run.sh
146
+ vscode ➜ /workspaces/edge-runtime $ cat ./scripts/run.sh
142
147
#!/usr/bin/env bash
143
148
144
149
GIT_V_TAG=0.1.1 cargo build && EDGE_RUNTIME_PORT=9998 RUST_BACKTRACE=full ./target/debug/edge-runtime "$@" start --main-service ./examples/main --event-worker ./examples/event-manager
@@ -157,10 +162,10 @@ Once you've confirmed that k6 is run properly, you can proceed to load testing.
157
162
```sh
158
163
vscode ➜ /workspaces/edge-runtime $ k6 run ./k6/dist/specs/simple.js
159
164
160
- /\ |‾‾| /‾‾/ /‾‾/
161
- /\ / \ | |/ / / /
162
- / \/ \ | ( / ‾‾\
163
- / \ | |\ \ | (‾) |
165
+ /\ |‾‾| /‾‾/ /‾‾/
166
+ /\ / \ | |/ / / /
167
+ / \/ \ | ( / ‾‾\
168
+ / \ | |\ \ | (‾) |
164
169
/ __________ \ |__| \__\ \_____/ .io
165
170
166
171
execution: local
0 commit comments