Commit bf27c029 authored by Tobias Lasser's avatar Tobias Lasser

add docker files

parent 94f38d7f
Pipeline #185607 passed with stages
in 4 minutes and 48 seconds
FROM clang:6
MAINTAINER Tobias Lasser <lasser@in.tum.de>
LABEL Description="clang6 on Debian with cmake/git"
# install wget
RUN apt-get -qq update \
&& apt-get install -qqy wget ca-certificates pkg-config
# install CMAKE
ARG cmake_version=3.14.3
ARG cmake_version_short=3.14
ARG cmake_dir=cmake-${cmake_version}
RUN wget https://cmake.org/files/v${cmake_version_short}/${cmake_dir}.tar.gz \
&& tar -xvzf ${cmake_dir}.tar.gz \
&& rm ${cmake_dir}.tar.gz \
&& cd ${cmake_dir} \
&& export CC=clang \
&& export CXX=clang++ \
&& export CXXFLAGS="-std=c++17 -stdlib=libc++" \
&& export LDFLAGS="-lc++ -lc++abi" \
&& ./configure \
&& make -j${nproc} && make install \
&& cd .. && rm -rf ${cmake_dir} && ldconfig
# fix libc++ paths
RUN ln -sf /usr/local/lib/libc++.a /usr/lib/x86_64-linux-gnu/libc++.a \
&& ln -sf /usr/local/lib/libc++.so.1.0 /usr/lib/x86_64-linux-gnu/libc++.so.1.0
CMD bash
FROM clang:7
MAINTAINER Tobias Lasser <lasser@in.tum.de>
LABEL Description="clang7 on Debian with cmake/git"
# install wget
RUN apt-get -qq update \
&& apt-get install -qqy wget ca-certificates pkg-config
# install CMAKE
ARG cmake_version=3.14.3
ARG cmake_version_short=3.14
ARG cmake_dir=cmake-${cmake_version}
RUN wget https://cmake.org/files/v${cmake_version_short}/${cmake_dir}.tar.gz \
&& tar -xvzf ${cmake_dir}.tar.gz \
&& rm ${cmake_dir}.tar.gz \
&& cd ${cmake_dir} \
&& export CC=clang \
&& export CXX=clang++ \
&& export CXXFLAGS="-std=c++17 -stdlib=libc++" \
&& export LDFLAGS="-lc++ -lc++abi" \
&& ./configure \
&& make -j${nproc} && make install \
&& cd .. && rm -rf ${cmake_dir} && ldconfig
# fix libc++ paths
RUN ln -sf /usr/local/lib/libc++.a /usr/lib/x86_64-linux-gnu/libc++.a \
&& ln -sf /usr/local/lib/libc++.so.1.0 /usr/lib/x86_64-linux-gnu/libc++.so.1.0
CMD bash
FROM clang:8
MAINTAINER Tobias Lasser <lasser@in.tum.de>
LABEL Description="clang8 on Debian with cmake/git"
# install wget
RUN apt-get -qq update \
&& apt-get install -qqy wget ca-certificates pkg-config
# install CMAKE
ARG cmake_version=3.14.3
ARG cmake_version_short=3.14
ARG cmake_dir=cmake-${cmake_version}
RUN wget https://cmake.org/files/v${cmake_version_short}/${cmake_dir}.tar.gz \
&& tar -xvzf ${cmake_dir}.tar.gz \
&& rm ${cmake_dir}.tar.gz \
&& cd ${cmake_dir} \
&& export CC=clang \
&& export CXX=clang++ \
&& export CXXFLAGS="-std=c++17 -stdlib=libc++" \
&& export LDFLAGS="-lc++ -lc++abi" \
&& ./configure \
&& make -j${nproc} && make install \
&& cd .. && rm -rf ${cmake_dir} && ldconfig
# fix libc++ paths
RUN ln -sf /usr/local/lib/libc++.a /usr/lib/x86_64-linux-gnu/libc++.a \
&& ln -sf /usr/local/lib/libc++.so.1.0 /usr/lib/x86_64-linux-gnu/libc++.so.1.0
CMD bash
FROM nvidia/cuda:9.2-devel-ubuntu18.04
MAINTAINER Tobias Lasser <lasser@in.tum.de>
LABEL Description="cuda9.2 develop with cmake/git"
# install wget
RUN apt-get -qq update \
&& apt-get install -qqy wget git pkg-config
# install CMAKE
ARG cmake_version=3.14.3
ARG cmake_version_short=3.14
ARG cmake_dir=cmake-${cmake_version}
RUN wget https://cmake.org/files/v${cmake_version_short}/${cmake_dir}.tar.gz \
&& tar -xvzf ${cmake_dir}.tar.gz \
&& rm ${cmake_dir}.tar.gz \
&& cd ${cmake_dir} \
&& ./configure \
&& make -j${nproc} && make install \
&& cd .. && rm -rf ${cmake_dir} && ldconfig
CMD bash
FROM gcc:6
MAINTAINER Tobias Lasser <lasser@in.tum.de>
LABEL Description="gcc6 on Debian with cmake/git"
# install wget
RUN apt-get -qq update \
&& apt-get install -qqy wget
# install CMAKE
ARG cmake_version=3.14.3
ARG cmake_version_short=3.14
ARG cmake_dir=cmake-${cmake_version}
RUN wget https://cmake.org/files/v${cmake_version_short}/${cmake_dir}.tar.gz \
&& tar -xvzf ${cmake_dir}.tar.gz \
&& rm ${cmake_dir}.tar.gz \
&& cd ${cmake_dir} \
&& ./configure \
&& make -j${nproc} && make install \
&& cd .. && rm -rf ${cmake_dir} && ldconfig
CMD bash
FROM gcc:7
MAINTAINER Tobias Lasser <lasser@in.tum.de>
LABEL Description="gcc7 on Debian with cmake/git"
# install wget
RUN apt-get -qq update \
&& apt-get install -qqy wget pkg-config
# install CMAKE
ARG cmake_version=3.14.3
ARG cmake_version_short=3.14
ARG cmake_dir=cmake-${cmake_version}
RUN wget https://cmake.org/files/v${cmake_version_short}/${cmake_dir}.tar.gz \
&& tar -xvzf ${cmake_dir}.tar.gz \
&& rm ${cmake_dir}.tar.gz \
&& cd ${cmake_dir} \
&& ./configure \
&& make -j${nproc} && make install \
&& cd .. && rm -rf ${cmake_dir} && ldconfig
CMD bash
FROM gcc:8
MAINTAINER Tobias Lasser <lasser@in.tum.de>
LABEL Description="gcc8 on Debian with cmake/git"
# install wget
RUN apt-get -qq update \
&& apt-get install -qqy wget pkg-config
# install CMAKE
ARG cmake_version=3.14.3
ARG cmake_version_short=3.14
ARG cmake_dir=cmake-${cmake_version}
RUN wget https://cmake.org/files/v${cmake_version_short}/${cmake_dir}.tar.gz \
&& tar -xvzf ${cmake_dir}.tar.gz \
&& rm ${cmake_dir}.tar.gz \
&& cd ${cmake_dir} \
&& ./configure \
&& make -j${nproc} && make install \
&& cd .. && rm -rf ${cmake_dir} && ldconfig
CMD bash
FROM gcc:9
MAINTAINER Tobias Lasser <lasser@in.tum.de>
LABEL Description="gcc9 on Debian with cmake/git"
# install wget
RUN apt-get -qq update \
&& apt-get install -qqy wget pkg-config
# install CMAKE
ARG cmake_version=3.14.3
ARG cmake_version_short=3.14
ARG cmake_dir=cmake-${cmake_version}
RUN wget https://cmake.org/files/v${cmake_version_short}/${cmake_dir}.tar.gz \
&& tar -xvzf ${cmake_dir}.tar.gz \
&& rm ${cmake_dir}.tar.gz \
&& cd ${cmake_dir} \
&& ./configure \
&& make -j${nproc} && make install \
&& cd .. && rm -rf ${cmake_dir} && ldconfig
CMD bash
FROM ubuntu:18.04
MAINTAINER Tobias Lasser <lasser@in.tum.de>
LABEL Description="default Ubuntu 18.04 with build essentials"
# install build tools, cmake, git
RUN apt-get -qq update; \
DEBIAN_FRONTEND=noninteractive apt-get install -qqy \
build-essential software-properties-common \
cmake git pkg-config
CMD bash
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment