From e00138e58c12f02ec3d41a194b2738ba8a996aae Mon Sep 17 00:00:00 2001 From: Federico Guerinoni Date: Wed, 30 Nov 2022 10:15:05 +0100 Subject: [PATCH] Doc: Fix command to prime database with docker-compose Signed-off-by: Federico Guerinoni --- CONTRIBUTING.md | 2 +- e2e/tests/integration/helpers/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 40a332892..69533bd35 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -49,7 +49,7 @@ shuttle-secrets = { path = "[base]/shuttle/resources/secrets" } Prime gateway database with an admin user: ```bash -docker compose --file docker-compose.rendered.yml --project-name shuttle-dev exec gateway /usr/local/bin/service --state=/var/lib/shuttle/gateway.sqlite init --name admin --key test-key +docker compose --file docker-compose.rendered.yml --project-name shuttle-dev exec gateway /usr/local/bin/service --state=/var/lib/shuttle init --name admin --key test-key ``` Login to shuttle service in a new terminal window from the main shuttle directory: diff --git a/e2e/tests/integration/helpers/mod.rs b/e2e/tests/integration/helpers/mod.rs index f2c1269fe..b8a0949f1 100644 --- a/e2e/tests/integration/helpers/mod.rs +++ b/e2e/tests/integration/helpers/mod.rs @@ -125,7 +125,7 @@ CARGO_HOME: {} "exec", "gateway", "/usr/local/bin/service", - "--state=/var/lib/shuttle/gateway.sqlite", + "--state=/var/lib/shuttle", "init", "--name", "test",