Docker init script does not create any type
- Dominant language
- Shell
- Stars
- 87
- Forks
- 14
- PR merge metrics
- No merged PRs in 30d
Description
While starting a new project I decide to use this database as I quiet like the idea and the features you added on top of postgreSQL. I try using your provided docker as I prefer my team to be able to start our whole stack by a simple `docker-compose up` but I cant get it to work.
Here is the relevant part of the docker-compose :
```
gateway-db:
build:
dockerfile: dockers/gatewayDB-Dockerfile
context: .
restart: unless-stopped
container_name: gateway-db
ports:
- "5656:5656"
environment:
EDGEDB_AUTH_METHOD: "trust"
EDGEDB_GENERATE_SELF_SIGNED_CERT: 1
```
The dockerfile :
```
FROM edgedb/edgedb
COPY ./dockers/gatewayDB-default.esdl /edgedb-bootstrap.d/default.esdl
```
And finally the esdl :
```
module default {
type Subscription {
required property libraryUrl -> str;
}
};
using extension graphql;
using extension edgeql_http;
```
The container do start and everything seams ok but I cant get a request to work.
I use the official edgeDb cli to connect to my container and can execute requests. For example I can list all tables :
```
edgedb> SELECT name := schema::ObjectType.name;
{
'std::BaseObject',
'std::Object',
'std::FreeObject',
'schema::Object',
'schema::SubclassableObject',
'schema::Type',
'schema::PseudoType',
'schema::Module',
'schema::CollectionType',
'schema::Array',
'schema::TupleElement',
'schema::Tuple',
'schema::Delta',
'schema::Annotation',
'schema::AnnotationSubject',
'schema::InheritingObject',
'schema::Parameter',
'schema::CallableObject',
'schema::VolatilitySubject',
'schema::Constraint',
'schema::ConsistencySubject',
'schema::Index',
'schema::Source',
'schema::Pointer',
'schema::Alias',
'schema::ScalarType',
'schema::ObjectType',
'schema::Link',
'schema::Property',
'schema::Function',
'schema::Operator',
'schema::Cast',
'schema::Migration',
'schema::Extension',
'sys::SystemObject',
'sys::Database',
'sys::ExtensionPackage',
'sys::Role',
'cfg::ConfigObject',
'cfg::AuthMethod',
'cfg::Trust',
'cfg::SCRAM',
'cfg::Auth',
'cfg::AbstractConfig',
'cfg::Config',
'cfg::InstanceConfig',
'cfg::DatabaseConfig',
}
```
But, as you see, the Subscription type does not seams to have been created and I cant do any request on it :
```
edgedb> SELECT Subscription;
error: object type or alias 'default::Subscription' does not exist
┌─ query:1:8
│
1 │ SELECT Subscription;
│ ^^^^^^^^^^^^ error
```
Therefore I think there is a problem in your docker or maybe further inside, I dunno :(
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with dockers/gatewayDB-Dockerfile and dockers/gatewayDB-default.esdl, then run the provided docker-compose configuration and inspect the initialized schema through the EdgeDB CLI. Verify whether the default::Subscription type is created and whether requests against it work after container startup.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker
- Domain
- databases, devops
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100