Newer
Older
wiiuse / Dockerfile.20210620
FROM tiryoh/ros-desktop-vnc:noetic

ENV DEBCONF_NOWARNINGS=yes
ENV DEBIAN_FRONTEND noninteractive
ENV ROS_PYTHON_VERSION 3
SHELL ["/bin/bash", "-c"]

RUN sed -i 's@archive.ubuntu.com@ftp.jaist.ac.jp/pub/Linux@g' /etc/apt/sources.list && \
    apt-get update && \
    apt-get upgrade -y && \
    apt-get install --no-install-recommends -y \
    build-essential \
    dkms wget git \
    python3-dev python3-pip libglib2.0-dev \
    libbluetooth-* \
    libsdl1.2-dev \
    libsdl-image1.2-dev \
    libsdl-mixer1.2-dev \
    libsdl-ttf2.0-dev \
    libsdl-gfx1.2-dev \
    bluez* blueman \
    openssh-server && \
    apt-get autoremove -y && \
    apt-get -y clean && \
    rm -rf /var/lib/apt/lists/* && \
    mkdir -p /var/run/sshd && \
    echo 'root:kobaken' | chpasswd && \
    sed -i 's/PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config && \
    sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd && \
    cd /home/ubuntu && \
    git clone https://github.com/wiiuse/wiiuse.git && \
    pip3 install bluepy datetime && \
    cd /home/ubuntu/wiiuse && \
    mkdir build && \
    cd build && \
    cmake .. && \
    make 

EXPOSE 22

COPY ./startup.sh /startup.sh