Skip to content

Commit 0e839de

Browse files
committed
remove domain from garage server script, export mycelium for manage buckets script
1 parent 7d142b0 commit 0e839de

File tree

2 files changed

+5
-12
lines changed

2 files changed

+5
-12
lines changed

scripts/README.MD renamed to scripts/README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ cd rfs
6262
rustup target add x86_64-unknown-linux-musl
6363
cargo build --features build-binary --release --target=x86_64-unknown-linux-musl
6464
mv ./target/x86_64-unknown-linux-musl/release/docker2fl /usr/local/bin
65-
mv ./target/x86_64-unknown-linux-musl/release/rfs /usr/local/bin
6665
```
6766

6867
### Install sqlite
@@ -99,7 +98,6 @@ sudo apt install caddy
9998
Run garage server using garage server [script](./deploy_garage.sh)
10099

101100
```bash
102-
export DOMAIN=<"your domain name for example threefold">
103101
chmod +x deploy_garage.sh
104102
./deploy_garage.sh
105103
```
@@ -115,7 +113,7 @@ This script includes:
115113
Manage your buckets using manage buckets [script](./manage_buckets.sh)
116114

117115
```bash
118-
export DOMAIN=<"your domain name for example 'threefold'">
116+
export MYCELIUM_IP=<"your machine mycelium IP which has your garage server">
119117
chmod +x manage_buckets.sh
120118
./manage_buckets.sh
121119
```
@@ -144,15 +142,16 @@ docker2fl -i $IMAGE -s 's3://$WRITE_KEY_ID:$WRITE_KEY_SECRET@$[$MYCELIUM_IP]:390
144142

145143
- Update the key to the read only key
146144

147-
```bash
148-
sqlite3
145+
```bash TODO:
146+
sqlite3
149147
.open "<your flist file name>"
150148
update route set url="s3://<your read key ID>:<your read key secret>@[<your vm mycelium IP>]:3900/blobs?region=garage"
151149
```
152150

153151
- Upload your flist to flist bucket using minio (you can use any other client).
154152

155153
```bash
154+
export PATH=$PATH:$HOME/minio-binaries/
156155
mc alias set \
157156
garage \
158157
"http://[$MYCELIUM_IP]:3900" \

scripts/deploy_garage.sh

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@
22

33
set -ex
44

5-
if [ -z ${DOMAIN+x} ]
6-
then
7-
echo 'Error! $DOMAIN is required.'
8-
exit 64
9-
fi
10-
115
# Deploy a vm for garage server with mycelium for s3 server
126

137
tfcmd deploy vm --name s3_server --ssh ~/.ssh/id_rsa.pub --cpu 8 --memory 16 --disk 50 --rootfs 10
@@ -40,7 +34,7 @@ root_domain = '.s3.garage.localhost'
4034
4135
[s3_web]
4236
bind_addr = '[::]:3902'
43-
root_domain = ".web.garage.localhost"
37+
root_domain = '.web.garage.localhost'
4438
index = 'index.html'
4539
4640
[k2v_api]

0 commit comments

Comments
 (0)