1ffe3c632Sopenharmony_ciFROM debian:jessie 2ffe3c632Sopenharmony_ci 3ffe3c632Sopenharmony_ci# Install dependencies. We start with the basic ones require to build protoc 4ffe3c632Sopenharmony_ci# and the C++ build 5ffe3c632Sopenharmony_ciRUN apt-get update && apt-get install -y \ 6ffe3c632Sopenharmony_ci autoconf \ 7ffe3c632Sopenharmony_ci autotools-dev \ 8ffe3c632Sopenharmony_ci build-essential \ 9ffe3c632Sopenharmony_ci bzip2 \ 10ffe3c632Sopenharmony_ci ccache \ 11ffe3c632Sopenharmony_ci curl \ 12ffe3c632Sopenharmony_ci gcc \ 13ffe3c632Sopenharmony_ci git \ 14ffe3c632Sopenharmony_ci libc6 \ 15ffe3c632Sopenharmony_ci libc6-dbg \ 16ffe3c632Sopenharmony_ci libc6-dev \ 17ffe3c632Sopenharmony_ci libgtest-dev \ 18ffe3c632Sopenharmony_ci libtool \ 19ffe3c632Sopenharmony_ci make \ 20ffe3c632Sopenharmony_ci parallel \ 21ffe3c632Sopenharmony_ci time \ 22ffe3c632Sopenharmony_ci wget \ 23ffe3c632Sopenharmony_ci && apt-get clean 24ffe3c632Sopenharmony_ci 25ffe3c632Sopenharmony_ci# Install rvm 26ffe3c632Sopenharmony_ciRUN gpg --keyserver hkp://keys.gnupg.net --recv-keys \ 27ffe3c632Sopenharmony_ci 409B6B1796C275462A1703113804BB82D39DC0E3 \ 28ffe3c632Sopenharmony_ci 7D2BAF1CF37B13E2069D6956105BD0E739499BDB 29ffe3c632Sopenharmony_ciRUN \curl -sSL https://get.rvm.io | bash -s stable 30ffe3c632Sopenharmony_ci 31ffe3c632Sopenharmony_ciRUN /bin/bash -l -c "rvm install 2.3.8" 32ffe3c632Sopenharmony_ciRUN /bin/bash -l -c "rvm install 2.4.5" 33ffe3c632Sopenharmony_ciRUN /bin/bash -l -c "rvm install 2.5.1" 34ffe3c632Sopenharmony_ciRUN /bin/bash -l -c "rvm install 2.6.0" 35ffe3c632Sopenharmony_ciRUN /bin/bash -l -c "rvm install 2.7.0" 36ffe3c632Sopenharmony_ci 37ffe3c632Sopenharmony_ciRUN /bin/bash -l -c "echo 'gem: --no-ri --no-rdoc' > ~/.gemrc" 38ffe3c632Sopenharmony_ciRUN /bin/bash -l -c "echo 'export PATH=/usr/local/rvm/bin:$PATH' >> ~/.bashrc" 39