Command line client for SAGE
pip install git+https://github.com/sagecontinuum/sage-cli.git
export SAGE_STORE_URL="http://localhost:8080"
export SAGE_USER_TOKEN="user:testuser"
sage-cli.py storage bucket create --datatype model
Optionally wit docker (--net
only for local test instance):
docker run -ti -e SAGE_STORE_URL="http://sage-api:8080" -e SAGE_USER_TOKEN="user:testuser" --net sage-storage-api_default sagecontinuum/sage-cli
sage-cli.py storage bucket create --datatype model
Create test environment:
git clone https://github.com/sagecontinuum/sage-storage-api.git
cd sage-storage-api
docker-compose up -d
cd ..
Wait a few seconds, run test:
export SAGE_USER_TOKEN=user:testuser
export SAGE_STORE_URL=http://localhost:8080
./tests.sh
Clean-up:
cd sage-storage-api
docker-compose down
cd ..
rm -rf ./sage-storage-api