You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Config file ../build-config.sh created, please edit it to configure the build
80
80
81
81
vim ./build-config.sh
82
82
```
83
83
84
-
Now edit the configfile. The following configurations values must be changed properly according to your environment:
84
+
Review and customize the `build-config.sh` configuration file according to your environment requirements. The file contains network ports, domain settings, and other important parameters. Once configured, run the build script again to generate the necessary artifacts:
85
85
86
86
```bash
87
-
# The internal port for dstack-vmm to listen to requests from you
88
-
VMM_RPC_LISTEN_PORT=9080
89
-
# The start CID for dstack-vmm to allocate to CVMs
90
-
VMM_CID_POOL_START=20000
91
-
92
-
# The internal port for kms to listen to requests from CVMs
93
-
KMS_RPC_LISTEN_PORT=9043
94
-
# The internal port for dstack-gateway to listen to requests from CVMs
95
-
GATEWAY_RPC_LISTEN_PORT=9070
96
-
97
-
# WireGuard interface name for dstack-gateway
98
-
GATEWAY_WG_INTERFACE=dgw-kvin
99
-
# WireGuard listening port for dstack-gateway
100
-
GATEWAY_WG_LISTEN_PORT=9182
101
-
# WireGuard server IP for dstack-gateway
102
-
GATEWAY_WG_IP=10.0.3.1
103
-
# WireGuard client IP range
104
-
GATEWAY_WG_CLIENT_IP_RANGE=10.0.3.0/24
105
-
# The public port for dstack-gateway to listen to requests that would be forwarded to app in CVMs
106
-
GATEWAY_SERVE_PORT=9443
107
-
108
-
# The public domain name for dstack-gateway. Please set a wildacard DNS record (e.g. *.app.kvin.wang in this example)
109
-
# for this domain that points the IP address of your TDX host.
110
-
GATEWAY_PUBLIC_DOMAIN=app.kvin.wang
111
-
# The path to the TLS certificate for dstack-gateway's public endpoint
112
-
GATEWAY_CERT=/etc/rproxy/certs/cert.pem
113
-
# The path to the TLS key for dstack-gateway's public endpoint
114
-
GATEWAY_KEY=/etc/rproxy/certs/key.pem
87
+
../build.sh hostcfg
88
+
89
+
# If everything is okay, you should see the built artifacts in the `build` directory.
90
+
$ ls
91
+
certs images dstack-kms kms.toml run dstack-vmm vmm.toml dstack-gateway gateway.toml
115
92
```
116
93
117
-
Run build.sh again to build the artifacts.
94
+
### Download guest image or build guest image from source
118
95
119
96
```bash
120
-
../build.sh
97
+
# This will download the guest image from the release page.
98
+
../build.sh dl 0.5.0
99
+
```
121
100
122
-
# If everything is okay, you should see the built artifacts in the `build` directory.
123
-
$ ls
124
-
certs images dstack-kms kms.toml run dstack-vmm vmm.toml dstack-gateway gateway.toml
101
+
Or build guest image from source:
102
+
103
+
```bash
104
+
# This will build the guest image from source using the yocto meta layer. This will take a while.
105
+
../build.sh guest
125
106
```
126
107
108
+
### Run components
127
109
Now you can open 3 terminals to start the components:
0 commit comments