aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorQuentin <quentin@deuxfleurs.fr>2020-11-19 18:16:33 +0100
committerQuentin <quentin@deuxfleurs.fr>2020-11-19 18:16:33 +0100
commit2e94275e68b82f5e685ba7d2e8fcf0a31daf3b6c (patch)
treebd591c325bfa79b1130202a82573a9b545fdceb8 /README.md
parentab710481761fd6b1814b404362a74b7cf3e89572 (diff)
parentb9e6b007a317bf307b209cf01667fa207d62b67d (diff)
downloadgarage-2e94275e68b82f5e685ba7d2e8fcf0a31daf3b6c.tar.gz
garage-2e94275e68b82f5e685ba7d2e8fcf0a31daf3b6c.zip
Merge branch 'master' into feature/website
Diffstat (limited to 'README.md')
-rw-r--r--README.md24
1 files changed, 23 insertions, 1 deletions
diff --git a/README.md b/README.md
index fed129d5..9fd31fb5 100644
--- a/README.md
+++ b/README.md
@@ -18,9 +18,31 @@ Our main use case is to provide a distributed storage layer for small-scale self
## Development
+We propose the following quickstart to setup a full dev. environment as quickly as possible:
+
1. Setup a rust/cargo environment
2. Run `cargo build` to build the project
- 3. Run `RUST_BACKTRACE=1 RUST_LOG=garage=debug ./target/debug/garage server -c ./config.dev.toml` to launch a garage test instance (data will be saved in `/tmp`, no encryption, only one instance)
+ 3. Run `./example/dev-cluster.sh` to launch a test cluster (feel free to read the script)
+ 4. Set a convenient alias `alias grg=./target/debug/garage`
+ 5. Get your node IDs with `grg status`
+ 6. Configure them, eg. `grg node configure -d dc1 -n 10 dd79867e0f5a9e08`
+ 7. Create a bucket, eg. `grg bucket create éprouvette`
+ 8. Create a key, eg. `grg key new --name opérateur`
+ 9. Bind the key with the bucket, eg. `grg bucket allow éprouvette --read --write --key GK108acc0d179b13826e54442b`
+ 10. Install s3cmd, eg. `dnf install s3cmd`
+ 11. s3cmd example command:
+
+```bash
+s3cmd \
+ --host 127.0.0.1:3900 \
+ --access_key=GK108acc0d179b13826e54442b \
+ --secret_key=f52aac5722c48f038ddf8612d1e91e8d0a9535048f1f1cd402cd0416f9f8807f \
+ --region=garage \
+ --no-ssl \
+ ls s3://éprouvette
+```
+
+Now you should be ready to start hacking on garage!
## Setting up Garage