Skip to content

Conversation

Siddhant-K-code
Copy link

@Siddhant-K-code Siddhant-K-code commented Sep 21, 2025

Migration from Gitpod Classic to Ona

This PR migrates the RedwoodJS GraphQL repository from Gitpod Classic to Ona. As announced in Gitpod is now Ona.

What's changed

Configuration migration

  • Replaced .gitpod.yml with modern Dev Container configuration (.devcontainer/devcontainer.json)
  • Added Ona Automations configuration (.ona/automations.yaml) for services and tasks
  • Updated documentation from using-gitpod.md to using-ona.md

🔧 Technical details

Environment Configuration

  • Base image: mcr.microsoft.com/devcontainers/javascript-node:1-20-bullseye
  • Node.js version: 20.x with corepack enabled
  • Port forwarding: 8910 (Web), 8911 (API) with HTTPS protocol
  • Persistent volumes: Yarn cache and node_modules for faster rebuilds

Automation Tasks

  • setup-environment: Automatic setup on environment start
  • start-dev-after-setup: Auto-start development server after setup
  • sync-framework-changes: Manual framework synchronization
  • open-ports/close-ports/list-ports: Port management
  • start-dev-server/stop-dev-server/restart-dev-server: Service control

Development Workflow

  1. Environment starts → Dev Container initializes
  2. Setup task runs → Installs framework dependencies and creates test project
  3. Ports open automatically → Development servers accessible via HTTPS
  4. Service starts → RedwoodJS development server ready for use
  5. Framework changes sync → Use sync task to update test project

Documentation

Updated documentation includes:

Try it below

Run in Ona

- Replace .gitpod.yml with Dev Container configuration
- Add automations.yaml for services and tasks
- Implement proper timing coordination between setup and service start
- Move setup logic from postStartCommand to automated task
- Add dependency coordination using completion markers
- Maintain auto-start behavior with proper sequencing
- Fix hanging setup task by removing blocking service start call
- Add separate task for auto-starting service after setup completion
- Simplify service configuration and remove problematic readiness checks
- Add port management with HTTPS protocol for dashboard visibility
- Include manual port control tasks (open/close/list ports)
- Ensure ports 8910 (Web) and 8911 (API) are accessible via HTTPS URLs
- Add video demonstration back to Ona Snapshot section in CONTRIBUTING.md

Co-authored-by: Ona <[email protected]>
@Tobbe
Copy link
Collaborator

Tobbe commented Sep 21, 2025

@Siddhant-K-code Thank you 🙏 I'm leaving for a vacation. I'll take a look at this when I get back.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants