Skip to content

Commit d889b1c

Browse files
committed
Clarify quick-deploy image updates and restore useful command output
1 parent 7578a1a commit d889b1c

5 files changed

Lines changed: 19 additions & 12 deletions

File tree

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ This project uses the opencode fork at https://github.com/pRizz/opencode, which
2121

2222
## Quick Deploy (Docker)
2323

24-
Deploy opencode-cloud with one command. Installs Docker if needed (Linux), downloads or refreshes the Docker Compose config, starts the service, and prints the login credentials:
24+
Deploy opencode-cloud with one command. Installs Docker if needed (Linux), downloads or refreshes the Docker Compose config, pulls the latest `prizz/opencode-cloud-sandbox:latest` image, reconciles services, and prints the login credentials:
2525

2626
```bash
2727
curl -fsSL https://raw.githubusercontent.com/pRizz/opencode-cloud/main/scripts/quick-deploy.sh | bash
@@ -37,6 +37,8 @@ Then open [http://localhost:3000](http://localhost:3000) and enter the Initial O
3737
3838
> **Compose refresh behavior:** By default, the script fetches the latest upstream `docker-compose.yml`. If your local file differs, it is replaced and a backup is written as `docker-compose.yml.bak.<timestamp>`.
3939
40+
> **Image refresh behavior:** By default, the script runs `docker compose pull` before `docker compose up -d`, so rerunning quick deploy updates to the latest image.
41+
4042
## Quick install (cargo)
4143

4244
```bash
@@ -118,7 +120,7 @@ SSH into an Ubuntu 24.04 Droplet and run:
118120
curl -fsSL https://raw.githubusercontent.com/pRizz/opencode-cloud/main/scripts/quick-deploy.sh | bash
119121
```
120122

121-
This installs Docker, by default refreshes the Compose file from upstream (with backup if your local copy differs), starts the service, and prints the IOTP.
123+
This installs Docker, by default refreshes the Compose file from upstream (with backup if your local copy differs), pulls the latest image, reconciles services, and prints the IOTP.
122124

123125
Access via SSH tunnel: `ssh -L 3000:localhost:3000 root@<droplet-ip>`, then open `http://localhost:3000`.
124126

docs/deploy/digitalocean-droplet.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ Use this if you don't want `occ` installed on the Droplet.
234234

235235
Docker Compose configures all 6 named volumes automatically.
236236

237-
The quickest way is the one-liner script, which installs Docker, by default refreshes the Compose file from upstream (with backup if your local copy differs), starts the service, and prints the IOTP:
237+
The quickest way is the one-liner script, which installs Docker, by default refreshes the Compose file from upstream (with backup if your local copy differs), pulls the latest image, reconciles services, and prints the IOTP:
238238

239239
```bash
240240
curl -fsSL https://raw.githubusercontent.com/pRizz/opencode-cloud/main/scripts/quick-deploy.sh | bash

docs/deploy/docker-desktop.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ No cloud account or `occ` CLI installation is required.
1515

1616
## Quick Start (One-Liner)
1717

18-
The fastest path — installs Docker if needed, downloads or refreshes the Compose config, starts the service, and prints the IOTP:
18+
The fastest path — installs Docker if needed, downloads or refreshes the Compose config, pulls the latest image, reconciles services, and prints the IOTP:
1919

2020
```bash
2121
curl -fsSL https://raw.githubusercontent.com/pRizz/opencode-cloud/main/scripts/quick-deploy.sh | bash
@@ -27,6 +27,8 @@ curl -fsSL https://raw.githubusercontent.com/pRizz/opencode-cloud/main/scripts/q
2727
2828
> By default, if local `docker-compose.yml` differs from upstream, the script replaces it and writes a backup as `docker-compose.yml.bak.<timestamp>`.
2929
30+
> By default, the script runs `docker compose pull` before `docker compose up -d`, so rerunning quick deploy updates to the latest image.
31+
3032
## Quick Start (Docker Compose)
3133

3234
The project includes a `docker-compose.yml` that configures all persistent

packages/core/README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ This project uses the opencode fork at https://github.com/pRizz/opencode, which
2121

2222
## Quick Deploy (Docker)
2323

24-
Deploy opencode-cloud with one command. Installs Docker if needed (Linux), downloads or refreshes the Docker Compose config, starts the service, and prints the login credentials:
24+
Deploy opencode-cloud with one command. Installs Docker if needed (Linux), downloads or refreshes the Docker Compose config, pulls the latest `prizz/opencode-cloud-sandbox:latest` image, reconciles services, and prints the login credentials:
2525

2626
```bash
2727
curl -fsSL https://raw.githubusercontent.com/pRizz/opencode-cloud/main/scripts/quick-deploy.sh | bash
@@ -37,6 +37,8 @@ Then open [http://localhost:3000](http://localhost:3000) and enter the Initial O
3737
3838
> **Compose refresh behavior:** By default, the script fetches the latest upstream `docker-compose.yml`. If your local file differs, it is replaced and a backup is written as `docker-compose.yml.bak.<timestamp>`.
3939
40+
> **Image refresh behavior:** By default, the script runs `docker compose pull` before `docker compose up -d`, so rerunning quick deploy updates to the latest image.
41+
4042
## Quick install (cargo)
4143

4244
```bash
@@ -118,7 +120,7 @@ SSH into an Ubuntu 24.04 Droplet and run:
118120
curl -fsSL https://raw.githubusercontent.com/pRizz/opencode-cloud/main/scripts/quick-deploy.sh | bash
119121
```
120122

121-
This installs Docker, by default refreshes the Compose file from upstream (with backup if your local copy differs), starts the service, and prints the IOTP.
123+
This installs Docker, by default refreshes the Compose file from upstream (with backup if your local copy differs), pulls the latest image, reconciles services, and prints the IOTP.
122124

123125
Access via SSH tunnel: `ssh -L 3000:localhost:3000 root@<droplet-ip>`, then open `http://localhost:3000`.
124126

scripts/quick-deploy.sh

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -521,19 +521,20 @@ start_services() {
521521
info "Container '$CONTAINER_NAME' is already running"
522522
info " Container ID: $container_id"
523523
info " Image: $image"
524-
info " Restart: $COMPOSE_CMD restart"
525-
info " Stop: $COMPOSE_CMD down"
526-
return 0
524+
info " Updating image and reconciling services..."
527525
fi
528526

529-
if ! confirm "Start opencode-cloud?"; then
530-
info "Skipping service start. Run manually: $COMPOSE_CMD up -d"
527+
if ! confirm "Pull latest image and ensure opencode-cloud is running?"; then
528+
info "Skipping service start/update. Run manually: $COMPOSE_CMD pull && $COMPOSE_CMD up -d"
531529
return 0
532530
fi
533531

532+
info "Pulling latest image..."
533+
$COMPOSE_CMD pull
534534
$COMPOSE_CMD up -d
535535
container_id="$(get_container_id)"
536-
success "Services started (container: ${container_id:-unknown})"
536+
success "Services ready (container: ${container_id:-unknown})"
537+
display_useful_commands
537538
}
538539

539540
# ---------------------------------------------------------------------------

0 commit comments

Comments
 (0)