Skip to content

markcerqueira/chuck-renderer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chuck-renderer

Docker Automated build

Docker image for ChucK rendering as a service with .wav to .m4a conversion with FFMPEG.

Build

  1. Install Docker: brew cask install docker
  2. Launch Docker.app from the Applications folder to complete installation
  3. Clone this repository: git clone git@github.com:markcerqueira/chuck-renderer.git
  4. Go into the directory: cd chuck-renderer
  5. Build the image: . ./compile.sh
  6. Any time you make changes you can stop the old image and rebuild the new one by running: . ./compile.sh

ID is now set to the container id of the image and docker ps will show the chuck-renderer running:

~ echo $ID
0b40c14f68de4770c752da68b1092d09390a04eaf252965bcffa31eb51ae4220
~ docker ps
CONTAINER ID        IMAGE               COMMAND                   PORTS 
0b40c14f68de        chuck-renderer      "thin -R config.ru -p"    0.0.0.0:9000->9000/tcp

How to do stuff:

  • The local server in server/app.rb can be accessed with a browser by visiting 0.0.0.0:9000/.
  • Accessing 0.0.0.0:9000/debug displays the debug console.
  • The image can be stopped with docker stop $ID. docker ps will list container ids if $ID is incorrect for some reason.
  • Logs can be access with docker logs $ID.
  • To get shell access to the running image: sudo docker exec -i -t $ID /bin/bash. Type exit in this shell to exit.

Resources