After doing this draft I’m now considering completely rewriting it in fastapi, eventually, as I think it could be much cleaner.
What I mainly like about the current version is the stdout, using websockets, on the right side for direct feedback about the compile.
What is currently missing is being able to upload an entire folder including required related abstractions and such. Also additional options in the build configuration are not in place yet (the DPF exporter in hvcc supports many more settings).
Please test and provide feedback about the procedure if you will
Hey I would really love to try this, but I am a complete noob.
I just downloaded docker.
I ran this command in terminal: git clone https://github.com/Wasted-Audio/modheavy.git
There is a file called .env.example and you can either copy it or rename it. How you do this action will depend on your operating system and environment.
thx! I’m on OSx.
After runnnig the clone command, it made a folder on my computer named modheavy. The .env.example file is not there.
Should I download it from github and then rename it?
EDIT:
the file was hidden. I renamed it in finder.
Still I don’t know how I should run this command now docker compose up -d modgen
Ok I think I run the command line correctly,
but after like 2 minutes I get this error:
=> => # [output clipped, log limit 2MiB reached]
failed to receive status: rpc error: code = Unavailable desc = error reading from server: EOF
simon@MacBook-Air-von-Simon modheavy %
I know you don’t know mac specifics, but any Idea what this could mean?
Well I waited till I got the second error:
failed to receive status: rpc error: code = Unavailable desc = error reading from server: EOF
That was usually after like 4 minutes
I ran the full build of the docker image on my workstation (Debian 11), which includes DuoX and Dwarf environments, and it took about ~1.5 hrs I estimate.
Ah now it worked. But I get this error when trying to run it:
Cannot start Docker Compose application. Reason: compose [start] exit status 1. Container modheavy-modgen-1 Starting Error response from daemon: Ports are not available: exposing port TCP 0.0.0.0:5000 → 0.0.0.0:0: listen tcp 0.0.0.0:5000: bind: address already in use
Since the command drops the container into “daemon” mode it could be that it is running in the background.
Try a docker ps to show all currently running containers.
Otherwise you could change the port number in the docker-compose.yml to something else, say 5001.
Oops, my bad. At the moment I hardcoded the expected input patch name to main.pd (kind of to prepare for being able to upload a whole directory and it automatically picking the correct main patch).
As said this is a super rough port and missing a lot of functionality (you cannot set midi ports yet for instance).