Warning, /sdk/clazy/dev-scripts/docker/AppImage/Dockerfile is written in an unsupported language. File is not indexed.
0001 FROM centos:6.8 0002 MAINTAINER Sergio Martins (sergio.martins@kdab.com) 0003 0004 WORKDIR / 0005 RUN yum update -y 0006 RUN yum install -y git wget zip texinfo bison flex svn boost-regex boost-devel 0007 0008 RUN wget http://people.centos.org/tru/devtools-2/devtools-2.repo -O /etc/yum.repos.d/devtools-2.repo 0009 RUN yum install -y devtoolset-2-gcc devtoolset-2-binutils devtoolset-2-gcc-c++ 0010 0011 ENV PATH=/opt/rh/devtoolset-2/root/usr/bin/:$PATH 0012 0013 # Build GCC 0014 WORKDIR / 0015 RUN svn co svn://gcc.gnu.org/svn/gcc/tags/gcc_5_4_0_release/ 0016 WORKDIR /gcc_5_4_0_release/ 0017 RUN ./contrib/download_prerequisites 0018 RUN mkdir /gcc_5_4_0_release_build/ 0019 WORKDIR /gcc_5_4_0_release_build/ 0020 RUN ../gcc_5_4_0_release/configure --disable-multilib 0021 RUN make -j12 0022 RUN make install 0023 RUN echo "/usr/local/lib64" > /etc/ld.so.conf.d/newStdLib.conf 0024 RUN ldconfig 0025 0026 ENV CXX=/usr/local/bin/g++ 0027 ENV CC=/usr/local/bin/gcc 0028 0029 # Copy appdir template 0030 ADD clazy.AppDir /clazy.AppDir/ 0031 0032 # Build Python 0033 WORKDIR / 0034 RUN wget https://www.python.org/ftp/python/2.7.16/Python-2.7.16.tgz 0035 RUN tar xzf Python-2.7.16.tgz 0036 WORKDIR /Python-2.7.16 0037 RUN ./configure --enable-optimizations 0038 RUN make -j8 altinstall 0039 RUN ln -sf /usr/local/bin/python2.7 /usr/local/bin/python 0040 0041 #Build CMake 0042 WORKDIR / 0043 RUN git clone https://github.com/Kitware/CMake.git 0044 WORKDIR /CMake 0045 RUN git checkout v3.15.4 0046 RUN ./configure --prefix=/usr/ 0047 RUN make -j8 0048 RUN make install 0049 0050 #Build LLVM 0051 WORKDIR / 0052 RUN wget -O - https://github.com/llvm/llvm-project/tarball/llvmorg-11.0.0 | tar xz 0053 RUN mv llvm-llvm-project-* llvm-project 0054 WORKDIR /llvm-project/ 0055 RUN echo "LLVM sha1: `git rev-parse HEAD`" > /clazy.AppDir/sha1 0056 0057 RUN mkdir /root/build_llvm/ 0058 WORKDIR /root/build_llvm/ 0059 RUN cmake -DCMAKE_INSTALL_PREFIX=/usr/ -DLLVM_INCLUDE_EXAMPLES=OFF -DLLVM_TARGETS_TO_BUILD="X86" -DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra" -DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=Release -DLLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN=ON -DCLANG_ENABLE_CLANGD=OFF /llvm-project/llvm/ 0060 RUN make -j8 0061 RUN make install 0062 RUN make DESTDIR=/clazy.AppDir install 0063 RUN rm -rf /clazy.AppDir/usr/include/ 0064 RUN rm -rf /clazy.AppDir/usr/share/ 0065 RUN rm -rf /clazy.AppDir/usr/lib/*.a 0066 RUN rm -rf /clazy.AppDir/usr/lib/*.so* 0067 RUN rm -rf /clazy.AppDir/usr/lib/cmake 0068 RUN rm -rf /clazy.AppDir/usr/bin/ll* 0069 WORKDIR /clazy.AppDir/usr/bin/ 0070 RUN rm -rf bugpoint clang-change-namespace clang-doc clang-format verify-uselistorder c-index-test clang-include-fixer clang-query clang-rename clang-scan-deps diagtool find-all-symbols hmaptool obj2yaml sancov scan-build verify-uselistorderc-index-test clang-check clang-extdef-mapping clang-import-test clang-offload-bundler clang-refactor clang-reorder-fields clang-tidy dsymutil git-clang-format modularize opt sanstats scan-view yaml2obj 0071 RUN chmod +x * 0072 0073 #Clone clazy 0074 WORKDIR / 0075 RUN git clone https://github.com/KDE/clazy.git