Warehouse Manager banner

Warehouse Manager

5 devlogs
5h 42m 8s

CLI app to automatically start a Warehouse server, and manage files

Demo Repository

Loading README...

ultraviolet.asdf

Shipped this project!

Hours: 5.7
Cookies: 🍪 138
Multiplier: 20.25 cookies/hr

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:

  • Moby client is very annoying to use and I couldn’t get it working.
  • docker/go-sdk is a lot nicer, but has zero docs, so I couldn’t figure out how to add a volume…

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

ultraviolet.asdf

Documentation update

I updated README with full install and usage information. Guess its time to ship!

Attachment
0
ultraviolet.asdf

Feature: Start command

I added the start command.

I’ve been trying to make binaries, but I think codeberg releases is down or something.

Commit 09fec44e9b

Attachment
0
ultraviolet.asdf

Warehouse Manager

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

Attachment
0