File tree 2 files changed +5
-12
lines changed 2 files changed +5
-12
lines changed Original file line number Diff line number Diff line change 62
62
rustup target add x86_64-unknown-linux-musl
63
63
cargo build --features build-binary --release --target=x86_64-unknown-linux-musl
64
64
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
66
65
```
67
66
68
67
### Install sqlite
@@ -99,7 +98,6 @@ sudo apt install caddy
99
98
Run garage server using garage server [ script] ( ./deploy_garage.sh )
100
99
101
100
``` bash
102
- export DOMAIN=< " your domain name for example threefold" >
103
101
chmod +x deploy_garage.sh
104
102
./deploy_garage.sh
105
103
```
@@ -115,7 +113,7 @@ This script includes:
115
113
Manage your buckets using manage buckets [ script] ( ./manage_buckets.sh )
116
114
117
115
``` bash
118
- export DOMAIN =< " your domain name for example 'threefold' " >
116
+ export MYCELIUM_IP =< " your machine mycelium IP which has your garage server " >
119
117
chmod +x manage_buckets.sh
120
118
./manage_buckets.sh
121
119
```
@@ -144,15 +142,16 @@ docker2fl -i $IMAGE -s 's3://$WRITE_KEY_ID:$WRITE_KEY_SECRET@$[$MYCELIUM_IP]:390
144
142
145
143
- Update the key to the read only key
146
144
147
- ``` bash
148
- sqlite3
145
+ ``` bash TODO:
146
+ sqlite3
149
147
.open " <your flist file name>"
150
148
update route set url=" s3://<your read key ID>:<your read key secret>@[<your vm mycelium IP>]:3900/blobs?region=garage"
151
149
```
152
150
153
151
- Upload your flist to flist bucket using minio (you can use any other client).
154
152
155
153
``` bash
154
+ export PATH=$PATH :$HOME /minio-binaries/
156
155
mc alias set \
157
156
garage \
158
157
" http://[$MYCELIUM_IP ]:3900" \
Original file line number Diff line number Diff line change 2
2
3
3
set -ex
4
4
5
- if [ -z ${DOMAIN+x} ]
6
- then
7
- echo ' Error! $DOMAIN is required.'
8
- exit 64
9
- fi
10
-
11
5
# Deploy a vm for garage server with mycelium for s3 server
12
6
13
7
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'
40
34
41
35
[s3_web]
42
36
bind_addr = '[::]:3902'
43
- root_domain = " .web.garage.localhost"
37
+ root_domain = ' .web.garage.localhost'
44
38
index = 'index.html'
45
39
46
40
[k2v_api]
You can’t perform that action at this time.
0 commit comments