Docker image for ChucK rendering as a service
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
server
Dockerfile
LICENSE
README.md
compile.sh

README.md

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