You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.4KB

  1. FROM ubuntu:18.04
  2. MAINTAINER Ray Burgemeestre
  3. RUN apt-get update && \
  4. apt-get -y install g++ git sudo wget gnupg2 && \
  5. apt-get -y install libssl-dev build-essential && \
  6. apt-get -y install vim gdb strace && \
  7. \
  8. echo deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-10 main >> /etc/apt/sources.list && \
  9. echo deb-src http://apt.llvm.org/bionic/ llvm-toolchain-bionic-10 main >> /etc/apt/sources.list && \
  10. wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add - ; \
  11. apt update -y && \
  12. apt-get install -y clang-10 lldb-10 lld-10 && \
  13. apt-get install -y libc++-10-dev libc++-10-dev clang-format-10 && \
  14. \
  15. rm -rf /var/lib/apt/lists/*
  16. # Install newer CMake to avoid some warnings the "FindBoost" script throws on
  17. # more recent versions of boost that the system CMake doesn't now about.
  18. # I chose a bloody new boost, so I need to use the latest RC1 (at the time of writing)
  19. RUN wget https://github.com/Kitware/CMake/releases/download/v3.18.0-rc1/cmake-3.18.0-rc1.tar.gz && \
  20. tar -zxf cmake-3.18.0-rc1.tar.gz && \
  21. cd cmake-3.18.0-rc1 && \
  22. ./bootstrap && \
  23. make -j $(nproc) && \
  24. make install && \
  25. cd .. && \
  26. rm -rf cmake-3.18.0-rc1 && \
  27. rm -rf cmake-3.18.0-rc1.tar.gz
  28. # Fix some weird linker issue CAF build runs into. (fails to link -lc++abi)
  29. RUN cp -prv /usr/lib/llvm-10/lib/libc++abi.so.1.0 /usr/lib/llvm-10/lib/libc++abi.so
  30. CMD "/bin/bash"