Skip to content

Latest commit

 

History

History

gel-cli

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Gel CLI (gel-cli)

Gel CLI (previously EdgeDB) via the official installation script. Includes the VSCode extension and mounts the config and data folder.

Example Usage

"features": {
    "ghcr.io/joshuanianji/devcontainer-features/gel-cli:1": {}
}

Options

Options Id Description Type Default Value

Customizations

VS Code Extensions

  • magicstack.edgedb

Usage

The Gel database instance should not be in the same container as the CLI. My experience doing so makes the gel ui command start failing once you restart the container. I recommend the following options:

  1. Use a docker-compose template with two services: one for the CLI and one for the Gel database instance.

    You can either use the javascript-node-edgedb or the rust-edgedb templates, or use them as references to make your own.

    Once inside the devcontainer, you can run gel instance link to connect the CLI to the instance. Check the templates above for more details.

  2. Connect to a cloud instance with gel cloud.

Notes on Volume Mounts

This feature mounts the gel config and data folder for persistence. To do so, it makes some assumptions about gel info:

$ gel info

Gel uses the following local paths:
┌────────────┬────────────────────────────────────────┐
│ Cache      │ /home/<user>/.cache/gel/               │
│ Config     │ /home/<user>/.config/gel/              │
│ CLI Binary │ /home/<user>/.local/bin/gel            │
│ Data       │ /home/<user>/.local/share/gel/data/    │
│ Service    │ /home/<user>/.config/systemd/gel/      │
└────────────┴────────────────────────────────────────┘

These paths may change based on the OS! This feature is tested on Ubuntu and Debian and the paths match up, but may not work for others.

OS and Architecture Support

Architectures: amd and arm

OS: ubuntu, debian

Shells: bash, zsh, fish

Changelog

Version Notes
1.0.0 Initial Version (migrate from EdgeDB)

Note: This file was auto-generated from the devcontainer-feature.json. Add additional notes to a NOTES.md.