├── Dockerfile └── README.md /Dockerfile: -------------------------------------------------------------------------------- 1 | # 2 | # 3 | # 4 | FROM ubuntu:15.10 5 | MAINTAINER Jonas Jongejan "jonas@halfdanj.dk" 6 | 7 | ENV OF_VERSION 0.9.3 8 | 9 | RUN apt-get update && apt-get install -y wget apt-utils 10 | 11 | RUN wget http://openframeworks.cc/versions/v${OF_VERSION}/of_v${OF_VERSION}_linux64_release.tar.gz 12 | RUN tar -xzvf /of_v${OF_VERSION}_linux64_release.tar.gz 13 | RUN mv /of_v${OF_VERSION}_linux64_release /openFrameworks 14 | 15 | RUN cd /openFrameworks/scripts/linux/ubuntu/; ./install_dependencies.sh -y 16 | #RUN cd /openFrameworks/scripts/linux/ubuntu/; ./install_codecs.sh 17 | 18 | RUN apt-get install libmpg123-dev gstreamer1.0 gstreamer1.0-plugins-ugly -y 19 | 20 | RUN cd /openFrameworks/scripts/linux/; ./compileOF.sh -j3 21 | 22 | RUN mkdir /openFrameworks/apps/myApps/app/; ln -s /openFrameworks/apps/myApps/app/ /app 23 | 24 | WORKDIR /openFrameworks/apps/myApps/app 25 | CMD make -j4; make RunRelease 26 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # openFrameworks Docker image 2 | This is an Ubuntu 15.10 docker instance with openFrameworks pre-installed. 3 | 4 | Use this for running openFrameworks apps easily on a headless instance, useful for 5 | image processing services for example. 6 | 7 | ## Usage 8 | The most basic usage is like this: 9 | ``` 10 | cd [YOUR_OF_APP] 11 | docker run -v $(PWD):/app -t -i halfdanj/openframeworks:0.9.3 12 | ``` 13 | 14 | This will download the openframeworks image, and start it with your current 15 | directory mounted. It will then compile your source code, and run it in release. 16 | --------------------------------------------------------------------------------