• Tomáš Pecka's avatar
    Use ninja in dockerfiles · e046ef3b
    Tomáš Pecka authored
    We are using alt's docker images based on alpine:edge. As of today (Oct
    31, 2020), strange errors began to come from cmake/make.
     -- Check for working C compiler: /usr/bin/cc
     -- Check for working C compiler: /usr/bin/cc - broken
     CMake Error at /usr/share/cmake/Modules/CMakeTestCCompiler.cmake:66 (message):
       The C compiler
       is not able to compile a simple test program.
       It fails with the following output:
         Change Dir: /app/CMakeFiles/CMakeTmp
         Run Build Command(s):/usr/bin/make cmTC_49c71/fast && /usr/bin/make  -f CMakeFiles/cmTC_49c71.dir/build.make CMakeFiles/cmTC_49c71.dir/build
         make: /usr/bin/make: Operation not permitted
         make: *** [Makefile:140: cmTC_49c71/fast] Error 127
       CMake will not be able to correctly generate this project.
     Call Stack (most recent call first):
       CMakeLists.txt:2 (project)
    However, ninja builds seem fine. In the alpine:edge they have the
    samurai[1] implementation of ninja. Let's use that as a workaround.
    [1] https://pkgs.alpinelinux.org/package/edge/main/x86_64/samurai
Dockerfile 1.04 KB