@opencode-cloud/core 4.2.5 → 4.2.7
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/Cargo.toml +1 -1
- package/README.md +13 -0
- package/package.json +1 -1
- package/src/docker/Dockerfile +3 -2
package/Cargo.toml
CHANGED
package/README.md
CHANGED
|
@@ -143,6 +143,19 @@ occ stop
|
|
|
143
143
|
# Restart the service
|
|
144
144
|
occ restart
|
|
145
145
|
|
|
146
|
+
# Update the opencode-cloud CLI binary
|
|
147
|
+
occ update cli
|
|
148
|
+
|
|
149
|
+
# Update the opencode-cloud container image
|
|
150
|
+
occ update container
|
|
151
|
+
|
|
152
|
+
# Update opencode inside the container
|
|
153
|
+
occ update opencode
|
|
154
|
+
|
|
155
|
+
# Update opencode using a specific branch or commit
|
|
156
|
+
occ update opencode --branch dev
|
|
157
|
+
occ update opencode --commit <sha>
|
|
158
|
+
|
|
146
159
|
# Install as a system service (starts on login/boot)
|
|
147
160
|
occ install
|
|
148
161
|
|
package/package.json
CHANGED
package/src/docker/Dockerfile
CHANGED
|
@@ -516,7 +516,7 @@ RUN echo 'export PATH="/home/opencode/.local/bin:$PATH"' >> /home/opencode/.zshr
|
|
|
516
516
|
# Clone the fork and build opencode from source (as non-root user)
|
|
517
517
|
# Pin to specific commit for reproducibility
|
|
518
518
|
# Build opencode from source (BuildKit cache mounts disabled for now)
|
|
519
|
-
RUN OPENCODE_COMMIT="
|
|
519
|
+
RUN OPENCODE_COMMIT="df9b40be451372e5473b22b33a68fb359267ca7e" \
|
|
520
520
|
&& rm -rf /tmp/opencode-repo \
|
|
521
521
|
&& git clone --depth 1 https://github.com/pRizz/opencode.git /tmp/opencode-repo \
|
|
522
522
|
&& cd /tmp/opencode-repo \
|
|
@@ -526,11 +526,12 @@ RUN OPENCODE_COMMIT="c7fb116c1cf59a76b184f842ed3eb0113d93196b" \
|
|
|
526
526
|
&& export PATH="/home/opencode/.bun/bin:${PATH}" \
|
|
527
527
|
&& bun install --frozen-lockfile \
|
|
528
528
|
&& cd packages/opencode \
|
|
529
|
-
&& export VITE_OPENCODE_SERVER_URL="http://localhost:3000" \
|
|
530
529
|
&& bun run build-single-ui \
|
|
531
530
|
&& rm -rf /home/opencode/.bun/install/cache /home/opencode/.bun/cache /home/opencode/.cache/bun \
|
|
532
531
|
&& cd /tmp/opencode-repo \
|
|
533
532
|
&& sudo mkdir -p /opt/opencode/bin /opt/opencode/ui \
|
|
533
|
+
&& echo "${OPENCODE_COMMIT}" | sudo tee /opt/opencode/COMMIT >/dev/null \
|
|
534
|
+
&& sudo chown opencode:opencode /opt/opencode/COMMIT \
|
|
534
535
|
&& sudo cp /tmp/opencode-repo/packages/opencode/dist/opencode-*/bin/opencode /opt/opencode/bin/opencode \
|
|
535
536
|
&& sudo cp -R /tmp/opencode-repo/packages/opencode/dist/opencode-*/ui/. /opt/opencode/ui/ \
|
|
536
537
|
&& sudo chown -R opencode:opencode /opt/opencode \
|