Closed EncompassingResidential closed 3 months ago
@EncompassingResidential thanks for the thorough write up!
It seems like you have this worked out, so I'm going to close this. Feel free to reopen if I missed something.
Thanks. Can you look at my new issue on Discord… in cloud section today 4/24/24 …
On Wed, Apr 24, 2024 at 11:43 AM Frederick @.***> wrote:
@EncompassingResidential https://github.com/EncompassingResidential thanks for the thorough write up!
It seems like you have this worked out, so I'm going to close this. Feel free to reopen if I missed something.
— Reply to this email directly, view it on GitHub https://github.com/edgedb/edgedb-docker/issues/89#issuecomment-2075598687, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWOLCDO5VTXPM3ACLGIPTCLY674LVAVCNFSM6AAAAABGPQWVOOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANZVGU4TQNRYG4 . You are receiving this because you were mentioned.Message ID: @.***>
Create Docker volume for persistent data
Manually see the volume contents / files:
Create a network for CLI security
Run the EdgeDB server in the Docker network
Run the CLI in the same Docker network
Your are now in your edgedb Container at the EdgeDb prompt.
After you \q out of the Docker edgedb container then you can see your container ID
My original post and errors.
Discord posted on 4/16/24: https://discordapp.com/channels/841451783728529451/1113918639985401896/1229926207974281466 As of 4/19/24 I didn't get a response to this Docker creation question(s):
Hello, trying to get docker image and container created. I have Docker Desktop version 4.28.0 installed. Windows 11 edgedb --version EdgeDB CLI 4.1.1+1520d83
This command works and I see the container running: docker run --name edgedb -d -e EDGEDB_SERVER_SECURITY=insecure_dev_mode edgedb/edgedb
Band_Tree_DB already exists on my local machine, there exists \Band Tree\edgedb.toml and \Band Tree\dbschema\default.esdl and dbschema\migrations\00001.edgeql, etc.:
But then in my BASH shell, this doesn't work.
docker run -it --rm --link=edgedb \ -e EDGEDB_SERVER_PASSWORD=secret \ -v edgedb-cli-config:/.config/edgedb edgedb/edgedb-cli \ -H edgedb instance link my_instance
Unable to find image 'edgedb/edgedb-cli:latest' locally latest: Pulling from edgedb/edgedb-cli dfa24c70b482: Pull complete 37ef7359bc7d: Pull complete Digest: sha256:84428264b4a5aaf338a25c63d718cf78b0e95ffd2dba5c851f7a32b3149c0823 Status: Downloaded newer image for edgedb/edgedb-cli:latest Specify server port [default: 5656]:
Then I replied to my own post with more specific questions on 4/16/24 (https://discordapp.com/channels/841451783728529451/1113918639985401896/1229926207974281466):
when I changed the "docker run -it --rm --link-edgedb ..." DB instance response to: Specify database name [default: edgedb]:
Then it seems to run correctly. But when I run: Successfully linked to remote instance. To connect run: edgedb -I edgedb
John@LAPTOP MINGW64 /c/repos/Band Tree (fly.io-bandtree-2024-03-20) $ edgedb -I edgedb edgedb error: ClientError: cannot read credentials file C:\Users\John\AppData\Local\EdgeDB\config\credentials\edgedb.json: The system cannot find the file specified. (os error 2)
$ date; docker exec -it edgedb bash; date Tue, Apr 16, 2024 3:36:05 PM root@217e064a560d:/# edgedb -I edgedb [2024-04-16T22:36:17Z WARN edgedb::version_check] Newer version of edgedb tool exists 4.1.1+1504ebf (current 4.1.0+127aeb9) edgedb error: ClientError: cannot read credentials file /root/.config/edgedb/credentials/edgedb.json: No such file or directory (os error 2)
Noticed this Discord conversation 2/13/24 about Docker building:
<@224957816681660416> in https://discordapp.com/channels/841451783728529451/1205355511764221962/1206945365530644540 mentions linking the CLI, but I don't think that is working?
When I went inside the edgedb docker Container, edgedb runs but no creation commands work:
root@217e064a560d:/# edgedb [2024-04-16T22:39:16Z WARN edgedb::version_check] Newer version of edgedb tool exists 4.1.1+1504ebf (current 4.1.0+127aeb9)
edgedb error: no
edgedb.toml
found and no connection options are specified Hint: Runedgedb project init
or use any of-H
,-P
,-I
arguments to specify connection parameters. See--help
for detailsroot@217e064a560d:/# edgedb project init [2024-04-16T22:39:26Z WARN edgedb::version_check] Newer version of edgedb tool exists 4.1.1+1504ebf (current 4.1.0+127aeb9)
edgedb error:
edgedb project init
is not supported in Docker containers.