:question: shell functions for bash based on CURL requests: only for power users, limited functionality, see below
function bucketfs-password() {
if [ -z "$1" ]; then
echo "usage: bucketfs-password <container>"
return 1
fi
BUCKETFS_PASSWORD=$(
docker exec -it $1 \
grep WritePass /exa/etc/EXAConf \
| sed -e "s/.* = //" \
| tr -d '\r' \
| base64 -d)
}
function bucketfs-upload() {
if [ -z "$1" ]; then
echo "usage: bucketfs-upload <file> [path/in/bucket-fs]"
return 1
fi
if [ -z "$BUCKETFS_PASSWORD" ]; then
echo "Please set environment variable BUCKETFS_PASSWORD"
return 1
fi
A=2580 # port
B=$(echo default/$2 | sed -e 's/\/$//') # path
curl -v -X PUT -T $1 http://w:$BUCKETFS_PASSWORD@localhost:$A/$B/$1
}
Still users struggle and need help from time to time. The current ticket therefore requests to create a minimal CLI solution
convenient and easy to use
acceptable usability with sufficient functionality and at least some guidance for unexperienced users
lightweight with minimal footprint and prerequisites, e.g. frameworks and installations
In summary bucketfs-python seems to be the best candidate. It is used anyway for test automation of various python projects. Currently issue #4 requires to enhance bucketfs-python to list the contents of a folder in BucketFS which could be another building block in order to provide a minimal CLI with very limited effort.
In the past numerous attempts have been made to mitigate interaction with Exasol's BucketFS:
Still users struggle and need help from time to time. The current ticket therefore requests to create a minimal CLI solution
In summary bucketfs-python seems to be the best candidate. It is used anyway for test automation of various python projects. Currently issue #4 requires to enhance bucketfs-python to list the contents of a folder in BucketFS which could be another building block in order to provide a minimal CLI with very limited effort.