Dockerfile not there yet
| FROM debian:latest | |
| # Following https://github.com/monome/norns/blob/master/readme-setup.md | |
| # norns requirements | |
| RUN apt-get update | |
| RUN apt-get update && apt-get install -y git libevdev-dev liblo-dev libudev-dev libcairo2-dev liblua5.3-dev libavahi-compat-libdnssd-dev libasound2-dev | |
| RUN apt-get install -y wget | |
| RUN apt-get -y install build-essential \ | |
| cmake \ | |
| mercurial | |
| RUN apt-get install -y libsndfile1-dev libxt-dev libportaudio2 libportaudiocpp0 | |
| # PortAudio | |
| RUN mkdir /tmp/pa && \ | |
| cd /tmp/pa && \ | |
| wget http://www.portaudio.com/archives/pa_stable_v190600_20161030.tgz && \ | |
| tar xvf pa_stable_v190600_20161030.tgz | |
| RUN cd tmp/pa/portaudio && \ | |
| ./configure && make && make install | |
| ######### Super colider stuff | |
| # Define ENV_VARS | |
| ENV LANG C.UTF-8 | |
| ENV DEBIAN_FRONTEND noninteractive | |
| ENV USER sc | |
| ENV HOME /home/$USER | |
| ENV SC_VERSION=3.9.3 | |
| # Create home and user dirs | |
| RUN mkdir -p $HOME | |
| RUN groupadd -r $USER && useradd -r -g $USER $USER | |
| RUN mkdir -p /tmp/sc && \ | |
| cd /tmp/sc && \ | |
| wget -q https://github.com/supercollider/supercollider/releases/download/Version-$SC_VERSION/SuperCollider-$SC_VERSION-Source-linux.tar.bz2 -O sc.tar.bz2 && \ | |
| tar xvf sc.tar.bz2 | |
| RUN cd /tmp/sc/SuperCollider-Source && \ | |
| mkdir -p build && \ | |
| cd build && \ | |
| cmake -DCMAKE_BUILD_TYPE="Release" \ | |
| -DBUILD_TESTING=OFF \ | |
| -DSUPERNOVA=OFF \ | |
| -DNATIVE=OFF \ | |
| -DSC_WII=OFF \ | |
| -DSC_QT=OFF \ | |
| -DSC_ED=OFF \ | |
| -DSC_EL=OFF \ | |
| -DSC_VIM=OFF \ | |
| -DAUDIOAPI=portaudio \ | |
| .. && \ | |
| make -j 4 && \ | |
| make install && \ | |
| ldconfig | |
| # Norns | |
| RUN cd /tmp && git clone https://github.com/monome/libmonome.git && \ | |
| cd libmonome && ./waf configure && ./waf && ./waf install | |
| RUN cd /tmp && \ | |
| git clone https://github.com/nanomsg/nanomsg.git && \ | |
| cd nanomsg && \ | |
| mkdir build && \ | |
| cd build && \ | |
| cmake .. && \ | |
| cmake --build . && \ | |
| ctest . && \ | |
| cmake --build . --target install && \ | |
| ldconfig | |
| RUN cd /tmp && \ | |
| git clone https://github.com/monome/norns.git && \ | |
| cd /tmp/norns && \ | |
| ./waf configure && \ | |
| ./waf | |
| # && \ | |
| #sc/install.sh | |
| RUN cd /home/$USER && \ | |
| git clone https://github.com/monome/dust | |
| RUN cd /tmp/norns/sc && \ | |
| mkdir /home/sc/.local && \ | |
| mkdir /home/sc/.local/share/ && \ | |
| mkdir /home/sc/.local/share/SuperCollider && \ | |
| mkdir /home/sc/.local/share/SuperCollider/Extensions && \ | |
| mkdir /home/sc/.local/share/SuperCollider/Extensions/norns && \ | |
| ./install.sh | |
| # Must create this directory: /home/sc/.local/share/SuperCollider/Extensions/norns/ | |
| #RUN cd /tmp/norns && ./crone.sh | |
| # Fix permissions | |
| RUN chown -Rh $USER:$USER -- $HOME | |
| # Init | |
| USER $USER | |
| WORKDIR $HOME | |
| #CMD ["/tmp/norns/crone.sh"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment