97 lines
3.7 KiB
Docker
97 lines
3.7 KiB
Docker
FROM ubuntu:latest
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
RUN \
|
|
set -eux && \
|
|
apt-get update && \
|
|
apt-get -y upgrade && \
|
|
apt-get -y install \
|
|
aptitude apt-rdepends bash build-essential ccache clang clang-tidy cmake cppcheck curl doxygen diffstat gawk gdb git gnupg gperf iputils-ping \
|
|
libboost-all-dev libfcgi-dev libgfortran5 libgl1-mesa-dev libjemalloc-dev libjemalloc2 libmlpack-dev libtbb-dev libssl-dev libyaml-cpp-dev \
|
|
linux-tools-generic nano nasm ninja-build openjdk-11-jdk openssh-server openssl pkg-config python3 qt5-default spawn-fcgi \
|
|
sudo tini unzip valgrind wget zip texinfo gcc-multilib chrpath socat cpio xz-utils debianutils libegl1-mesa \
|
|
patch perl tar rsync bc libelf-dev libssl-dev libsdl1.2-dev xterm mesa-common-dev whois \
|
|
libx11-xcb-dev libxcb-dri3-dev libxcb-icccm4-dev libxcb-image0-dev libxcb-keysyms1-dev libxcb-randr0-dev libxcb-render-util0-dev \
|
|
libxcb-render0-dev libxcb-shape0-dev libxcb-sync-dev libxcb-util-dev libxcb-xfixes0-dev libxcb-xinerama0-dev libxcb-xkb-dev xorg-dev \
|
|
libconfuse-dev libnl-3-dev libnl-route-3-dev libncurses-dev dh-autoreconf freeglut3 freeglut3-dev libglfw3-dev && \
|
|
apt-get -y autoremove && \
|
|
apt-get -y autoclean && \
|
|
apt-get -y clean && \
|
|
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
|
|
exit 0
|
|
|
|
RUN \
|
|
set -eux && \
|
|
python3 --version && \
|
|
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
|
|
python3 get-pip.py && \
|
|
rm get-pip.py && \
|
|
python3 -m pip install -U pip && \
|
|
pip3 --version && \
|
|
pip3 install --upgrade pip setuptools wheel && \
|
|
pip3 --version && \
|
|
exit 0
|
|
|
|
RUN \
|
|
set -eux && \
|
|
pip3 --version && \
|
|
pip3 install --upgrade pip setuptools wheel && \
|
|
pip3 --version && \
|
|
pip3 install --upgrade autoenv autopep8 cmake-format clang-format conan conan_package_tools meson && \
|
|
pip3 install --upgrade cppclean flawfinder lizard pygments pybind11 GitPython pexpect subunit Jinja2 pylint CLinters && \
|
|
pip3 install --upgrade ipython jupyter matplotlib nose numba numpy pandas pymc3 PyWavelets requests scikit-learn scipy seaborn sympy quandl textblob nltk yfinance && \
|
|
pip3 install --upgrade PyPortfolioOpt && \
|
|
exit 0
|
|
|
|
RUN pip3 install --upgrade dlib
|
|
RUN pip3 install --upgrade frida frida-tools
|
|
|
|
RUN \
|
|
pip3 install --upgrade pystan holidays lunarcalendar convertdate && \
|
|
pip3 install --upgrade fbprophet && \
|
|
exit 0
|
|
|
|
#RUN pip3 install --upgrade --ignore-installed cltk
|
|
|
|
#RUN \
|
|
# set -eux && \
|
|
# cd /root && \
|
|
# git clone https://github.com/Microsoft/vcpkg.git && \
|
|
# cd vcpkg && \
|
|
# ./bootstrap-vcpkg.sh && \
|
|
# ./vcpkg integrate install && \
|
|
# vcpkg install pybind11 && \
|
|
# exit 0
|
|
|
|
RUN \
|
|
set -eux && \
|
|
conan profile new default --detect && \
|
|
conan profile update settings.compiler.libcxx=libstdc++11 default && \
|
|
conan remote list && \
|
|
conan remote add bincrafters https://api.bintray.com/conan/bincrafters/public-conan && \
|
|
exit 0
|
|
|
|
RUN \
|
|
set -eux && \
|
|
mkdir -p /var/run/sshd && \
|
|
mkdir -p /root/.ssh && \
|
|
sed -ri 's/^#?PermitRootLogin\s+.*/PermitRootLogin yes/' /etc/ssh/sshd_config && \
|
|
sed -ri 's/UsePAM yes/#UsePAM yes/g' /etc/ssh/sshd_config && \
|
|
groupadd -g 1000 myuser && \
|
|
useradd --system --no-log-init --create-home --home-dir /home/myuser --gid myuser --groups sudo --uid 1000 --shell /bin/bash myuser && \
|
|
echo 'root:root' | chpasswd && \
|
|
echo 'myuser:myuser' | chpasswd && \
|
|
ssh-keygen -A && \
|
|
exit 0
|
|
|
|
ENV IGNORE_CC_MISMATCH=1
|
|
ENV PATH=$PATH:/usr/local/cuda/bin
|
|
ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib64
|
|
|
|
ENTRYPOINT ["/usr/bin/tini", "--"]
|
|
CMD ["/usr/sbin/sshd", "-D", "-e"]
|
|
|
|
# USER myuser
|
|
# WORKDIR /home/myuser
|