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
{{ message }}
Repository navigation
Commit 8781e68
Browse filesBrowse the repository at this point in the historyBrowse files
Build images, set up the local registry, and deploy the k3s cluster:
82
87
83
88
```console
84
-
$ tasks/scripts/docker-build-image.sh cluster
89
+
mise run cluster:build:full
85
90
```
86
91
87
-
Tag the image for local use:
92
+
This command:
93
+
- Builds the gateway image
94
+
- Starts a local container registry at `127.0.0.1:5000`
95
+
- Builds the cluster image
96
+
- Pushes images to the local registry
97
+
- Bootstraps a k3s cluster inside a Podman container
98
+
- Deploys the OpenShell gateway
99
+
100
+
Or run the script directly:
88
101
89
102
```console
90
-
$ podman tag localhost/openshell/cluster:dev ghcr.io/lobstertrap/openshell/cluster:dev
103
+
tasks/scripts/cluster-bootstrap.sh build
91
104
```
92
105
93
106
## Build and Install the CLI
94
107
108
+
**Note:** If you ran `mise run cluster:build:full` above, a debug version of the CLI was automatically compiled. You can use it directly from the project directory without installing:
109
+
110
+
```console
111
+
./target/debug/openshell --version
112
+
```
113
+
114
+
For a release-optimized binary that works system-wide:
115
+
95
116
```console
96
-
$ cargo build --release -p openshell-cli
97
-
$ mkdir -p ~/.local/bin
98
-
$ cp target/release/openshell ~/.local/bin/
117
+
cargo build --release -p openshell-cli
118
+
mkdir -p ~/.local/bin
119
+
cp target/release/openshell ~/.local/bin/
99
120
```
100
121
101
122
## Create a Sandbox
102
123
103
124
```console
104
-
$ openshell sandbox create
125
+
openshell sandbox create
105
126
```
106
127
107
128
## Cleanup
108
129
109
130
To remove all OpenShell resources and optionally the Podman machine:
110
131
111
132
```console
112
-
$ bash cleanup-openshell-podman-macos.sh
133
+
bash cleanup-openshell-podman-macos.sh
113
134
```
114
135
115
136
## Troubleshooting
116
137
117
138
### Environment variables not set
118
139
119
-
If OpenShell cannot find the Podman socket, set the environment variables manually:
140
+
If OpenShell cannot find the Podman socket, source the environment file:
0 commit comments