CLI app to automatically start a Warehouse server, and manage files
CLI app to automatically start a Warehouse server, and manage files
I built a CLI app that makes running Warehouse, a distributed object storage system as simple as two basic commands.
I wrote it in go, and it is basically a wrapper around docker that automatically sets Warehouse up, and provides commands to upload, download and list objects.
The most annoying part was using docker. The docker clients for go have some problems:
I found a far simpler solution, which is just to use the docker CLI with docker exec.
My favourite part is that it automatically parses the logs to find the generated API keys, saving it for usage when starting the volume server and using commands that manage files
I added a download and list command! Guess I’m basically ready to ship now…
v0.4.0 Binaries
Commit 0e978cd481 - List
Commit 2a40b86431 - Download
Log in to leave a comment
I’m writing a CLI script that will make setting up my project Warehouse - distributed object storage even easier by making setup a single command, so you don’t have to worry about docker.
Right now I just made it so it automatically runs the docker container with volumes, then listens for the API keys to be logged and store it in a config file.
Next I need to add a command to run it.
I’ll also probably add commands for uploading and downloading files
Log in to leave a comment