Created
October 22, 2018 19:05
-
-
Save uilianries/a568cf498e56ef7825f7e70436fe6814 to your computer and use it in GitHub Desktop.
Docker file for Conan GCC8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:bionic | |
LABEL maintainer="Luis Martinez de Bartolome <[email protected]>" | |
RUN dpkg --add-architecture i386 \ | |
&& apt-get -qq update \ | |
&& apt-get install -y --no-install-recommends \ | |
sudo=1.8.21p2-3ubuntu1 \ | |
binutils=2.* \ | |
wget=1.19.4-1ubuntu2.1 \ | |
git=1:2.17.1-1ubuntu0.3 \ | |
vim=2:8.0.1453-1ubuntu1 \ | |
libc6-dev-i386=2.27-3ubuntu1 \ | |
linux-libc-dev:i386=4.* \ | |
g++-8-multilib \ | |
libgmp-dev=2:6.1.2+dfsg-2 \ | |
libmpfr-dev=4.0.1-1 \ | |
libmpc-dev=1.1.0-1 \ | |
libc6-dev=2.27-3ubuntu1 \ | |
nasm=2.13.02-0.1 \ | |
dh-autoreconf=17 \ | |
valgrind=1:3.13.0-2ubuntu2 \ | |
ninja-build=1.8.2-1 \ | |
libffi-dev=3.2.1-8 \ | |
libssl-dev=1.* \ | |
pkg-config=0.29.1-0ubuntu2 \ | |
subversion=1.9.7-4ubuntu1 \ | |
zlib1g-dev=1:1.2.* \ | |
libbz2-dev=1.* \ | |
libsqlite3-dev=3.* \ | |
libreadline-dev=7.* \ | |
ca-certificates \ | |
&& update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 100 \ | |
&& update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++-8 100 \ | |
&& update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 100 \ | |
&& update-alternatives --install /usr/bin/cc cc /usr/bin/gcc-8 100 \ | |
&& ln -s /usr/include/locale.h /usr/include/xlocale.h \ | |
&& rm -rf /var/lib/apt/lists/* \ | |
&& wget --no-check-certificate --quiet https://cmake.org/files/v3.12/cmake-3.12.1-Linux-x86_64.tar.gz \ | |
&& tar -xzf cmake-3.12.1-Linux-x86_64.tar.gz \ | |
&& cp -fR cmake-3.12.1-Linux-x86_64/* /usr \ | |
&& rm -rf cmake-3.12.1-Linux-x86_64 \ | |
&& rm cmake-3.12.1-Linux-x86_64.tar.gz \ | |
&& groupadd 1001 -g 1001 \ | |
&& groupadd 1000 -g 1000 \ | |
&& groupadd 2000 -g 2000 \ | |
&& groupadd 999 -g 999 \ | |
&& useradd -ms /bin/bash conan -g 1001 -G 1000,2000,999 \ | |
&& printf "conan:conan" | chpasswd \ | |
&& adduser conan sudo \ | |
&& printf "conan ALL= NOPASSWD: ALL\\n" >> /etc/sudoers | |
USER conan | |
WORKDIR /home/conan | |
ENV PATH="/home/conan/.pyenv/versions/3.7.0/bin:${PATH}" | |
RUN mkdir -p /home/conan/.conan \ | |
&& wget --no-check-certificate --quiet -O /tmp/pyenv-installer https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer \ | |
&& chmod +x /tmp/pyenv-installer \ | |
&& /tmp/pyenv-installer bash \ | |
&& sudo ln -s /home/conan/.pyenv/bin/pyenv /usr/local/bin/pyenv \ | |
&& rm /tmp/pyenv-installer \ | |
&& echo 'eval "$(pyenv init -)"' >> ~/.bashrc \ | |
&& echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.bashrc \ | |
&& pyenv install 3.7.0 \ | |
&& pyenv global 3.7.0 | |
RUN pip install conan | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment