|
| 1 | + |
| 2 | +# Gel CLI (gel-cli) |
| 3 | + |
| 4 | +Gel CLI (previously EdgeDB) via the official installation script. Includes the VSCode extension and mounts the config and data folder. |
| 5 | + |
| 6 | +## Example Usage |
| 7 | + |
| 8 | +```json |
| 9 | +"features": { |
| 10 | + "ghcr.io/joshuanianji/devcontainer-features/gel-cli:1": {} |
| 11 | +} |
| 12 | +``` |
| 13 | + |
| 14 | +## Options |
| 15 | + |
| 16 | +| Options Id | Description | Type | Default Value | |
| 17 | +|-----|-----|-----|-----| |
| 18 | + |
| 19 | + |
| 20 | +## Customizations |
| 21 | + |
| 22 | +### VS Code Extensions |
| 23 | + |
| 24 | +- `magicstack.edgedb` |
| 25 | + |
| 26 | +## Usage |
| 27 | + |
| 28 | +**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: |
| 29 | + |
| 30 | +1. Use a docker-compose template with two services: one for the CLI and one for the Gel database instance. |
| 31 | + |
| 32 | + You can either use the [javascript-node-edgedb](https://github.com/joshuanianji/devcontainer-templates/blob/main/src/javascript-node-edgedb) or the [rust-edgedb](https://github.com/joshuanianji/devcontainer-templates/blob/main/src/rust-edgedb) templates, or use them as references to make your own. |
| 33 | + |
| 34 | + Once inside the devcontainer, you can run `gel instance link` to connect the CLI to the instance. Check the templates above for more details. |
| 35 | + |
| 36 | +2. Connect to a cloud instance [with `gel cloud`](https://docs.edgedb.com/cloud/cli). |
| 37 | + |
| 38 | +## Notes on Volume Mounts |
| 39 | + |
| 40 | +This feature mounts the gel config and data folder for persistence. To do so, it makes some assumptions about `gel info`: |
| 41 | + |
| 42 | +```bash |
| 43 | +$ gel info |
| 44 | + |
| 45 | +Gel uses the following local paths: |
| 46 | +┌────────────┬────────────────────────────────────────┐ |
| 47 | +│ Cache │ /home/<user>/.cache/gel/ │ |
| 48 | +│ Config │ /home/<user>/.config/gel/ │ |
| 49 | +│ CLI Binary │ /home/<user>/.local/bin/gel │ |
| 50 | +│ Data │ /home/<user>/.local/share/gel/data/ │ |
| 51 | +│ Service │ /home/<user>/.config/systemd/gel/ │ |
| 52 | +└────────────┴────────────────────────────────────────┘ |
| 53 | +``` |
| 54 | + |
| 55 | +**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. |
| 56 | + |
| 57 | +## OS and Architecture Support |
| 58 | + |
| 59 | +Architectures: `amd` and `arm` |
| 60 | + |
| 61 | +OS: `ubuntu`, `debian` |
| 62 | + |
| 63 | +Shells: `bash`, `zsh`, `fish` |
| 64 | + |
| 65 | +## Changelog |
| 66 | + |
| 67 | +| Version | Notes | |
| 68 | +| ------- | ------------------------------------- | |
| 69 | +| 1.0.0 | Initial Version (migrate from EdgeDB) | |
| 70 | + |
| 71 | + |
| 72 | +--- |
| 73 | + |
| 74 | +_Note: This file was auto-generated from the [devcontainer-feature.json](https://github.com/joshuanianji/devcontainer-features/blob/main/src/gel-cli/devcontainer-feature.json). Add additional notes to a `NOTES.md`._ |
0 commit comments