website: update scripts/run-blobserver to use a config file

also include the example blobs in the git repo

Change-Id: Iaf24cf8ddb32505dcaa5753dc38479b1247a3645
This commit is contained in:
Brad Fitzpatrick 2011-06-20 19:42:30 -07:00
parent b723a50ad8
commit d2b1a71887
6 changed files with 52 additions and 7 deletions

View File

@ -0,0 +1,14 @@
{ "_for-emacs": "-*- mode: js2;-*-",
"baseURL": ["_env", "http://camlistore.org:3179"],
"password": ["_env", "${CAMLI_PASSWORD}"],
"prefixes": {
"/": {
"handler": "storage-filesystem",
"handlerArgs": {
"path": ["_env", "${CAMLI_ROOT}"]
}
}
}
}

View File

@ -0,0 +1,7 @@
{"camliVersion": 1,
"authType": "haveref",
"camliSigner": "sha1-f019d17dd308eebbd49fd94536eb67214c2f0587",
"camliType": "share",
"target": "sha1-0e5e60f367cc8156ae48198c496b2b2ebdf5313d",
"transitive": true
,"camliSig":"iQEcBAABAgAGBQJNQJGuAAoJEIUeCLJL7Fq1EuAIAL/nGoX8caGaANnam0bcIQT7C61wXMRW4qCCaFW+w67ys5z4ztfnTPKwL9ErzMF8Hd32Xe/bVcF6ZL38x/axqI7ehxN8lneKGQNoEdZDA9i752aAr0fkAba6eDehoOj9F4XxOzk3iVrq445jEXtu/+twamHV3UfRozWK1ZQb57dM+cRff47M/Y6VIBRSgW2BrABjuBs8G6PiKxycgh1mb+RL8f9KG+HB/yFuK37YJqZ0zU2OTRp6ELiOgTxbeg99koV9Duy4f4mQgxQgli46077Sv/ujzIeVbmdFL3OenGEzQnyKG0fhf8fa5WkED0XfH7zibAHLiSq3O7x11Q0406U==ANug"}

View File

@ -0,0 +1,17 @@
{"camliVersion": 1,
"camliType": "file",
"contentParts": [
{
"blobRef": "sha1-3dc1d1cfe92fce5f09d194ba73a0b023102c9b25",
"size": 14
}
],
"fileName": "Hi.txt",
"size": 14,
"unixGroup": "camli",
"unixGroupId": 1000,
"unixMtime": "2011-01-26T21:11:22.152868825Z",
"unixOwner": "camli",
"unixOwnerId": 1000,
"unixPermission": "0644"
}

View File

@ -0,0 +1,7 @@
{"camliVersion": 1,
"authType": "haveref",
"camliSigner": "sha1-f019d17dd308eebbd49fd94536eb67214c2f0587",
"camliType": "share",
"target": "sha1-0e5e60f367cc8156ae48198c496b2b2ebdf5313d",
"transitive": true
,"camliSig":"iQEcBAABAgAGBQJNQJBmAAoJEIUeCLJL7Fq1WTcH/RAqjIkij769LpbmPneDNvDzAS7WjIebnhH54PqzGl++HNUAMalTVWhOX6gJ34juszc7hF4JhhZoC/MX7n9W4TTgsoE/W1d1thfhsk+Cxh9KEpJ+kppNLlCPE1ldA5G0ZF+A3oit/bHFaiXIL2bKz2SHDuJcUrcRPDsWCUqdRInB8ZzCToPmvTOxKOIOW5xXH4DqQEBjimElt9VHNRPbBNqHOa3QluWVMnMPXsOWh4FjmnplysAEjkuNrjYal1beBeVlCO2xDLmWQxLHPBPgoY4yLfDTTW3opS4INB7hxv2+JP2lDHSa7HlmnrOacVmVAoTR6ocYF9ZKm2UJNefO+Lk==vP6t"}

View File

@ -3,12 +3,11 @@
set -e
Bin=$(dirname $( readlink -f $0))
ROOT=$HOME/blobroot
if [ ! -d $ROOT ]; then
mkdir $ROOT
fi
chmod 0700 $ROOT
export CAMLI_PASSWORD=`cat $HOME/.camli/camorg-blobserver.pass`
export CAMLI_ROOT=$Bin/../blobserver-example/root
$Bin/../../build.pl server/go/camlistored && \
$Bin/../../server/go/camlistored/camlistored \
-configfile=$Bin/../blobserver-example/example-blobserver-config.json \
-listen=:3179 "$@"
$Bin/../../build.pl server/go/camlistored && $Bin/../../server/go/camlistored/camlistored -root=$ROOT -listen=:3179 "$@"