Files
linux_docker/Dockerfile
T
2017-10-10 17:48:00 -04:00

65 lines
1.3 KiB
Docker

FROM ubuntu:17.04
RUN apt-get update && apt-get install -y \
gcc \
g++ \
autoconf \
automake \
libtool \
make \
cmake \
pkg-config \
unzip \
gdb \
cgdb \
clang \
llvm \
libclang-dev \
libncurses5-dev \
flex \
texinfo \
libreadline-dev \
sudo \
emacs \
vim \
git \
silversearcher-ag \
tmux \
screen \
htop \
libz-dev \
tcsh \
tree \
tcl \
uuid-dev \
python-pip \
glibc-source \
libc6-dbg \
locales \
openssh-server \
iputils-ping \
net-tools \
ninja-build
run pip install pybars3
# fix locale so we can run tmux
run sed -i 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen
run locale-gen
# expand libc sources
run cd /usr/src/glibc ; tar xvf glibc-2.24.tar.xz
# build rtags
copy rtags.tar.gz /externals/
run cd /externals/ && tar -xvzf rtags.tar.gz && cd rtags && cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=1 && make -j$(nproc) install && rm -rf /externals
# setup ssh
RUN mkdir /var/run/sshd && echo 'root:root' | chpasswd && \
sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config && \
sed -i 's/#PasswordAuthentication yes/PasswordAuthentication yes/' /etc/ssh/sshd_config
# SSH login fix. Otherwise user is kicked off after login
RUN sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd
ENV NOTVISIBLE "in users profile"