• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# This is a docker image with all the tools to build openh264 for linux
2
3# build the docker image with: sudo docker build -t openh264tools - < Dockerfile
4# get the result with: sudo docker run -t -i -v /tmp/openH264:/build openh264tools /bin/cp libopenh264.so log /build
5# the results will be left in /tmp/openH264
6# have a look at log file and if the hash match the "Fluffy got" hashes
7
8FROM ubuntu:14.04
9MAINTAINER Cullen Jennings <fluffy@cisco.com>
10RUN apt-get update
11RUN apt-get upgrade -y
12RUN apt-get install -y bison flex g++ gcc git libgmp3-dev libmpc-dev libmpfr-dev libz-dev make wget
13
14WORKDIR /tmp
15RUN wget http://ftp.gnu.org/gnu/gcc/gcc-4.9.2/gcc-4.9.2.tar.gz
16RUN tar xvfz gcc-4.9.2.tar.gz
17WORKDIR /tmp/gcc-4.9.2/
18RUN mkdir build
19WORKDIR /tmp/gcc-4.9.2/build
20RUN ../configure --disable-checking --enable-languages=c,c++ --enable-multiarch --enable-shared --enable-threads=posix  --with-gmp=/usr/local/lib --with-mpc=/usr/lib --with-mpfr=/usr/lib --without-included-gettext --with-system-zlib --with-tune=generic --disable-multilib --disable-nls
21RUN make -j 8
22RUN make install
23
24WORKDIR	 /tmp
25RUN wget http://www.nasm.us/pub/nasm/releasebuilds/2.11.06/nasm-2.11.06.tar.gz
26RUN tar xvfz nasm-2.11.06.tar.gz
27WORKDIR /tmp/nasm-2.11.06/
28RUN ./configure
29RUN make
30RUN make install
31
32WORKDIR /tmp
33RUN git clone https://github.com/cisco/openh264.git
34WORKDIR /tmp/openh264
35RUN git checkout v1.1
36RUN make ENABLE64BIT=Yes
37
38RUN date > log
39RUN uname -a >> log
40RUN nasm -v >> log
41RUN gcc -v 2>> log
42RUN git status -v >> log
43
44RUN openssl dgst -sha1 libopenh264.so >> log
45RUN echo "Fluffy Got hash of  - 3b6280fce36111ab9c911453f4ee1fd99ce6f841" >> log
46
47
48
49
50
51
52