Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

Rust & EdgeDB (rust-edgedb)

Develop applications with Rust and EdgeDB, a next-generation graph-relational database. Includes a Rust application container linked to an EdgeDB Container

Options

Options Id Description Type Default Value
imageVariant Debian OS version (use bookworm, or bullseye on local arm64/Apple Silicon): string bullseye

Notes on Usage

This definition contains 2 containers, one for Rust and one for EdgeDB. You will be connected to the Rust container, and can use the EdgeDB CLI in the Rust container (installed via the edgedb-cli feature) to connect to the instance in the EdgeDB container. The password for the edgedb server is secret.

edgedb instance link edgedb-docker --trust-tls-cert --host=edgedb --port=5656 --password

# Select the defaults when prompted, and type in the password `secret` when prompted

You should now be connected to the edgedb-docker instance. You can list the instances with the following command:

edgedb instance list

# Output
┌────────┬───────────────┬─────────────┬─────────────┬────────┐
│ Kind   │ Name          │ Location    │ Version     │ Status │
├────────┼───────────────┼─────────────┼─────────────┼────────┤
│ remote │ edgedb-docker │ edgedb:5656 │ 4.5+ce8e127 │ up     │
└────────┴───────────────┴─────────────┴─────────────┴────────┘

EdgeDB UI

The EdgeDB Container sets the environment variable EDGEDB_SERVER_ADMIN_UI=enabled, so you can run the integrated UI. To access the UI, run the following command:

edgedb ui --print-url --no-server-check

This should print out a URL that you can open in your browser, something like http://localhost:5656/ui. The default credentials are:

Username: edgedb

Password: secret (same as EDGEDB_SERVER_PASSWORD)


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