diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..bd76c69 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,47 @@ +FROM ruby:2.5.5-alpine + +RUN apk update && apk add \ + qt5-qtbase-dev \ + fftw-dev \ + cmake \ + pkgconfig \ + build-base \ + gcc \ + g++ \ + git \ + make \ + automake \ + autoconf \ + nodejs \ + tzdata + +WORKDIR /opt/liquid + +RUN git clone https://github.com/jgaeddert/liquid-dsp.git . && \ + sh ./bootstrap.sh && \ + sh ./configure --prefix=/usr && \ + make && \ + make install + +WORKDIR /opt/inpsectrum + +RUN git clone https://github.com/miek/inspectrum . && \ + mkdir build && \ + cd build && \ + cmake .. && \ + make && \ + make install + +WORKDIR /opt/DSpectrumGUI + +COPY . . + +RUN gem install nokogiri -v '1.10.3' &&\ + gem install bundler && \ + bundle config build.nokogiri --use-system-libraries && \ + bundle && \ + rake db:setup && rake db:migrate && rake db:seed + +EXPOSE 3001 + +CMD rails s -p 3001 --binding 0.0.0.0 \ No newline at end of file diff --git a/README.md b/README.md index 2c84cf8..be44ce6 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,8 @@ The goal of this app is to make it trivial to demodulate common RF signals, and Step by step instructions for Kali Linux (Debian based OS), and MAC OSX, are both available in the wiki: +# Docker +Build with `docker build -t dspectrumgui .`, run with `docker run --rm -it -p 3001:3001 dspectrumgui`, then visit `http://127.0.0.1:3001` in your browser. # Features * Community can trivially donate reverse engineering worksheet templates