"Fossies" - the Fresh Open Source Software Archive

Member "sysdig-0.26.1/docker/dev/Dockerfile" (24 May 2019, 6302 Bytes) of package /linux/misc/sysdig-0.26.1.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "Dockerfile": 0.24.2_vs_0.25.

    1 FROM debian:unstable
    2 
    3 MAINTAINER Sysdig <support@sysdig.com>
    4 
    5 ENV SYSDIG_REPOSITORY dev
    6 
    7 LABEL RUN="docker run -i -t -v /var/run/docker.sock:/host/var/run/docker.sock -v /dev:/host/dev -v /proc:/host/proc:ro -v /boot:/host/boot:ro -v /lib/modules:/host/lib/modules:ro -v /usr:/host/usr:ro --name NAME IMAGE"
    8 
    9 ENV SYSDIG_HOST_ROOT /host
   10 
   11 ENV HOME /root
   12 
   13 RUN cp /etc/skel/.bashrc /root && cp /etc/skel/.profile /root
   14 
   15 ADD http://download.draios.com/apt-draios-priority /etc/apt/preferences.d/
   16 
   17 RUN apt-get update \
   18  && apt-get upgrade -y \
   19  && apt-get install -y --no-install-recommends \
   20 	bash-completion \
   21 	bc \
   22 	clang-7 \
   23 	curl \
   24 	dkms \
   25 	gnupg2 \
   26 	ca-certificates \
   27 	gcc \
   28 	libc6-dev \
   29 	libelf-dev \
   30 	libelf1 \
   31 	less \
   32 	llvm-7 \
   33 	procps \
   34 	xz-utils \
   35  && rm -rf /var/lib/apt/lists/*
   36 
   37 # gcc 6 is no longer included in debian unstable, but we need it to
   38 # build kernel modules on the default debian-based ami used by
   39 # kops. So grab copies we've saved from debian snapshots with the
   40 # prefix https://snapshot.debian.org/archive/debian/20170517T033514Z
   41 # or so.
   42 
   43 RUN curl -o cpp-6_6.3.0-18_amd64.deb https://s3.amazonaws.com/download.draios.com/dependencies/gcc-6-debs/cpp-6_6.3.0-18_amd64.deb \
   44     && curl -o gcc-6-base_6.3.0-18_amd64.deb https://s3.amazonaws.com/download.draios.com/dependencies/gcc-6-debs/gcc-6-base_6.3.0-18_amd64.deb \
   45     && curl -o gcc-6_6.3.0-18_amd64.deb https://s3.amazonaws.com/download.draios.com/dependencies/gcc-6-debs/gcc-6_6.3.0-18_amd64.deb \
   46     && curl -o libasan3_6.3.0-18_amd64.deb https://s3.amazonaws.com/download.draios.com/dependencies/gcc-6-debs/libasan3_6.3.0-18_amd64.deb \
   47     && curl -o libcilkrts5_6.3.0-18_amd64.deb https://s3.amazonaws.com/download.draios.com/dependencies/gcc-6-debs/libcilkrts5_6.3.0-18_amd64.deb \
   48     && curl -o libgcc-6-dev_6.3.0-18_amd64.deb https://s3.amazonaws.com/download.draios.com/dependencies/gcc-6-debs/libgcc-6-dev_6.3.0-18_amd64.deb \
   49     && curl -o libubsan0_6.3.0-18_amd64.deb https://s3.amazonaws.com/download.draios.com/dependencies/gcc-6-debs/libubsan0_6.3.0-18_amd64.deb \
   50     && curl -o libmpfr4_3.1.3-2_amd64.deb https://s3.amazonaws.com/download.draios.com/dependencies/gcc-6-debs/libmpfr4_3.1.3-2_amd64.deb \
   51     && curl -o libisl15_0.18-1_amd64.deb https://s3.amazonaws.com/download.draios.com/dependencies/gcc-6-debs/libisl15_0.18-1_amd64.deb \
   52     && dpkg -i cpp-6_6.3.0-18_amd64.deb gcc-6-base_6.3.0-18_amd64.deb gcc-6_6.3.0-18_amd64.deb libasan3_6.3.0-18_amd64.deb libcilkrts5_6.3.0-18_amd64.deb libgcc-6-dev_6.3.0-18_amd64.deb libubsan0_6.3.0-18_amd64.deb libmpfr4_3.1.3-2_amd64.deb libisl15_0.18-1_amd64.deb \
   53     && rm -f cpp-6_6.3.0-18_amd64.deb gcc-6-base_6.3.0-18_amd64.deb gcc-6_6.3.0-18_amd64.deb libasan3_6.3.0-18_amd64.deb libcilkrts5_6.3.0-18_amd64.deb libgcc-6-dev_6.3.0-18_amd64.deb libubsan0_6.3.0-18_amd64.deb libmpfr4_3.1.3-2_amd64.deb libisl15_0.18-1_amd64.deb
   54 
   55 # gcc 5 is no longer included in debian unstable, but we need it to
   56 # build centos kernels, which are 3.x based and explicitly want a gcc
   57 # version 3, 4, or 5 compiler. So grab copies we've saved from debian
   58 # snapshots with the prefix https://snapshot.debian.org/archive/debian/20190122T000000Z.
   59 
   60 RUN curl -o cpp-5_5.5.0-12_amd64.deb https://s3.amazonaws.com/download.draios.com/dependencies/cpp-5_5.5.0-12_amd64.deb \
   61  && curl -o gcc-5-base_5.5.0-12_amd64.deb https://s3.amazonaws.com/download.draios.com/dependencies/gcc-5-base_5.5.0-12_amd64.deb \
   62  && curl -o gcc-5_5.5.0-12_amd64.deb https://s3.amazonaws.com/download.draios.com/dependencies/gcc-5_5.5.0-12_amd64.deb \
   63  && curl -o libasan2_5.5.0-12_amd64.deb https://s3.amazonaws.com/download.draios.com/dependencies/libasan2_5.5.0-12_amd64.deb \
   64  && curl -o libgcc-5-dev_5.5.0-12_amd64.deb https://s3.amazonaws.com/download.draios.com/dependencies/libgcc-5-dev_5.5.0-12_amd64.deb \
   65  && curl -o libisl15_0.18-4_amd64.deb https://s3.amazonaws.com/download.draios.com/dependencies/libisl15_0.18-4_amd64.deb \
   66  && curl -o libmpx0_5.5.0-12_amd64.deb https://s3.amazonaws.com/download.draios.com/dependencies/libmpx0_5.5.0-12_amd64.deb \
   67  && dpkg -i cpp-5_5.5.0-12_amd64.deb gcc-5-base_5.5.0-12_amd64.deb gcc-5_5.5.0-12_amd64.deb libasan2_5.5.0-12_amd64.deb libgcc-5-dev_5.5.0-12_amd64.deb libisl15_0.18-4_amd64.deb libmpx0_5.5.0-12_amd64.deb \
   68  && rm -f cpp-5_5.5.0-12_amd64.deb gcc-5-base_5.5.0-12_amd64.deb gcc-5_5.5.0-12_amd64.deb libasan2_5.5.0-12_amd64.deb libgcc-5-dev_5.5.0-12_amd64.deb libisl15_0.18-4_amd64.deb libmpx0_5.5.0-12_amd64.deb
   69 
   70 # Since our base Debian image ships with GCC 7 which breaks older kernels, revert the
   71 # default to gcc-5.
   72 RUN rm -rf /usr/bin/gcc && ln -s /usr/bin/gcc-5 /usr/bin/gcc
   73 
   74 RUN rm -rf /usr/bin/clang \
   75  && rm -rf /usr/bin/llc \
   76  && ln -s /usr/bin/clang-7 /usr/bin/clang \
   77  && ln -s /usr/bin/llc-7 /usr/bin/llc
   78 
   79 RUN curl -s https://s3.amazonaws.com/download.draios.com/DRAIOS-GPG-KEY.public | apt-key add - \
   80  && curl -s -o /etc/apt/sources.list.d/draios.list http://download.draios.com/$SYSDIG_REPOSITORY/deb/draios.list \
   81  && apt-get update \
   82  && apt-get install -y --no-install-recommends sysdig \
   83  && apt-get clean \
   84  && rm -rf /var/lib/apt/lists/*
   85 
   86 # Some base images have an empty /lib/modules by default
   87 # If it's not empty, docker build will fail instead of
   88 # silently overwriting the existing directory
   89 RUN rm -df /lib/modules \
   90  && ln -s $SYSDIG_HOST_ROOT/lib/modules /lib/modules
   91 
   92 # debian:unstable head contains binutils 2.31, which generates
   93 # binaries that are incompatible with kernels < 4.16. So manually
   94 # forcibly install binutils 2.30-22 instead.
   95 RUN curl -s -o binutils_2.30-22_amd64.deb http://snapshot.debian.org/archive/debian/20180622T211149Z/pool/main/b/binutils/binutils_2.30-22_amd64.deb \
   96  && curl -s -o libbinutils_2.30-22_amd64.deb http://snapshot.debian.org/archive/debian/20180622T211149Z/pool/main/b/binutils/libbinutils_2.30-22_amd64.deb \
   97  && curl -s -o binutils-x86-64-linux-gnu_2.30-22_amd64.deb http://snapshot.debian.org/archive/debian/20180622T211149Z/pool/main/b/binutils/binutils-x86-64-linux-gnu_2.30-22_amd64.deb \
   98  && curl -s -o binutils-common_2.30-22_amd64.deb http://snapshot.debian.org/archive/debian/20180622T211149Z/pool/main/b/binutils/binutils-common_2.30-22_amd64.deb \
   99  && dpkg -i *binutils*.deb
  100 
  101 COPY ./docker-entrypoint.sh /
  102 
  103 ENTRYPOINT ["/docker-entrypoint.sh"]
  104 
  105 CMD ["bash"]