Automation assistant for the setup of Garage by Deuxfleurs
1.3K
Automation assistant for Garage
Passing the command line argument --init will create a new cluster based on labels from the swarm nodes.
GORDON_EXPECTED_NODE_COUNT (total number of gateway and storage nodes)GORDON_ADMIN_ENDPOINTGORDON_ADMIN_TOKENGORDON_ADMIN_TOKEN (overrides GORDON_ADMIN_TOKEN_FILE)GORDON_CAPACITY_LABEL (e.g. swarm.yachts.garage.capacity, "null" for gateways)GORDON_ZONE_LABEL (e.g. swarm.yachts.garage.zone)GORDON_TAGS_LABEL (e.g. swarm.yachts.garage.tags, space-seperated array)Passing bucket --create <name> creates a new bucket, outputting the required keys.
cat > garage.toml <<EOF
metadata_dir = "/tmp/meta"
data_dir = "/tmp/data"
db_engine = "sqlite"
replication_factor = 1
rpc_bind_addr = "[::]:3901"
rpc_public_addr = "127.0.0.1:3901"
rpc_secret = "$(openssl rand -hex 32)"
[s3_api]
s3_region = "garage"
api_bind_addr = "[::]:3900"
root_domain = ".s3.garage.localhost"
[s3_web]
bind_addr = "[::]:3902"
root_domain = ".web.garage.localhost"
index = "index.html"
[k2v_api]
api_bind_addr = "[::]:3904"
[admin]
api_bind_addr = "[::]:3903"
admin_token = "$(openssl rand -base64 32)"
metrics_token = "$(openssl rand -base64 32)"
EOF
docker run -it --rm --network host -v ./garage.toml:/etc/garage.toml dxflrs/garage:v1.0.0 /garage server
Content type
Image
Digest
sha256:18ab0528f…
Size
394.9 MB
Last updated
about 2 years ago
docker pull coryaent/gordon