diff --git a/Dockerfile b/Dockerfile index eca97ee..5f62fba 100644 --- a/Dockerfile +++ b/Dockerfile @@ -26,7 +26,7 @@ mkdir -p /home/$USERNAME/.config && \ chown -Rf $USERNAME.$USERNAME /home/$USERNAME -RUN apt-get update && apt-get install -y --no-install-recommends \ +RUN apt-get update && apt-get install -y --no-install-recommends --allow-unauthenticated \ sudo less tmux \ bash-completion \ command-not-found \ @@ -39,13 +39,13 @@ pcl-tools \ openssh-server \ locales && \ - apt-get autoclean -y && apt-get autocremove -y && rm -rf /var/lib/apt/lists/* && \ + apt-get autoclean -y && apt-get autoremove -y && rm -rf /var/lib/apt/lists/* && \ locale-gen en_US.UTF-8 RUN pip install --upgrade pip setuptools RUN packages='libsdl2-2.0 xserver-xorg libvulkan1' && \ - apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y $packages --no-install-recommends && \ + apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y $packages --no-install-recommends --allow-unauthenticated && \ VULKAN_API_VERSION=`dpkg -s libvulkan1 | grep -oP 'Version: [0-9|\.]+' | grep -oP '[0-9|\.]+'` && \ mkdir -p /etc/vulkan/icd.d/ && \ echo \ @@ -56,7 +56,7 @@ \"api_version\" : \"${VULKAN_API_VERSION}\"\ }\ }" > /etc/vulkan/icd.d/nvidia_icd.json && \ - apt-get autoclean -y && apt-get autocremove -y && rm -rf /var/lib/apt/lists/* + apt-get autoclean -y && apt-get autoremove -y && rm -rf /var/lib/apt/lists/* # Error constructing proxy for org.gnome.Terminal:/org/gnome/Terminal/Factory0: Failed to execute child process dbus-launch (No such file or directory) # fix by setting LANG https://askubuntu.com/questions/608330/problem-with-gnome-terminal-on-gnome-3-12-2 @@ -71,7 +71,7 @@ # (1-1) Install prerequisites #RUN dpkg --add-architecture i386 && \ -RUN apt-get update && apt-get install -y --no-install-recommends \ +RUN apt-get update && apt-get install -y --no-install-recommends --allow-unauthenticated \ apt-utils \ build-essential \ ca-certificates \ @@ -86,7 +86,7 @@ pkg-config \ libelf-dev \ gnupg patch xinit && \ - apt-get autoclean -y && apt-get autocremove -y && rm -rf /var/lib/apt/lists/* + apt-get autoclean -y && apt-get autoremove -y && rm -rf /var/lib/apt/lists/* # libc6:i386 \ # (1-2) Install xorg server and xinit BEFORE INSTALLING NVIDIA DRIVER. @@ -104,9 +104,9 @@ wget https://developer.download.nvidia.com/compute/cuda/11.6.0/local_installers/cuda-repo-ubuntu1804-11-6-local_11.6.0-510.39.01-1_amd64.deb && \ dpkg -i cuda-repo-ubuntu1804-11-6-local_11.6.0-510.39.01-1_amd64.deb && \ apt-key add /var/cuda-repo-ubuntu1804-11-6-local/7fa2af80.pub -RUN apt-get update && apt-get install -y --no-install-recommends \ +RUN apt-get update && apt-get install -y --no-install-recommends --allow-unauthenticated \ cuda-drivers && \ - apt-get autoclean -y && apt-get autocremove -y && rm -rf /var/lib/apt/lists/* + apt-get autoclean -y && apt-get autoremove -y && rm -rf /var/lib/apt/lists/* # (2) Configurate Xorg @@ -119,7 +119,7 @@ # # Note: x11vnc in ubuntu18.04 is useless beacuse of stack smashing bug. See below to manual compilation. -RUN apt-get update && apt-get install -y --no-install-recommends \ +RUN apt-get update && apt-get install -y --no-install-recommends --allow-unauthenticated \ mesa-utils lxterminal gnome-tweak-tool x11-apps \ automake autoconf libssl-dev xorg-dev libvncserver-dev \ xdg-user-dirs xdg-utils && \ @@ -132,9 +132,9 @@ # (2-2) Optional vulkan support # vulkan-utils includes vulkan-smoketest, benchmark software of vulkan API -RUN apt-get update && apt-get install -y --no-install-recommends \ +RUN apt-get update && apt-get install -y --no-install-recommends --allow-unauthenticated \ vulkan-utils firefox openbox menu alsa pulseaudio libgtk2.0-0 && \ - apt-get autoclean -y && apt-get autocremove -y && rm -rf /var/lib/apt/lists/* + apt-get autoclean -y && apt-get autoremove -y && rm -rf /var/lib/apt/lists/* # novnc # download websockify as well @@ -147,7 +147,7 @@ # Xorg segfault error # dbus-core: error connecting to system bus: org.freedesktop.DBus.Error.FileNotFound (Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory) # related? https://github.com/Microsoft/WSL/issues/2016 -RUN apt-get update && apt-get install -y --no-install-recommends \ +RUN apt-get update && apt-get install -y --no-install-recommends --allow-unauthenticated \ dbus-x11 libdbus-c++-1-0v5 && \ apt-get autoclean -y && apt-get autocremove -y && rm -rf /var/lib/apt/lists/* @@ -156,23 +156,23 @@ # ROS Melodic RUN sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list' RUN apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654 -RUN apt-get update && apt-get install -y --no-install-recommends \ +RUN apt-get update && apt-get install -y --no-install-recommends --allow-unauthenticated \ ros-melodic-desktop-full \ python-rosdep \ python-rosinstall \ python-rosinstall-generator \ python-wstool && \ - apt-get autoclean -y && apt-get autocremove -y && rm -rf /var/lib/apt/lists/* + apt-get autoclean -y && apt-get autoremove -y && rm -rf /var/lib/apt/lists/* # addtional ROS package -RUN apt-get update && apt-get install -y --no-install-recommends \ +RUN apt-get update && apt-get install -y --no-install-recommends --allow-unauthenticated \ ros-melodic-derived-object-msgs \ ros-melodic-ackermann-msgs \ ros-melodic-ainstein-radar-msgs \ python3-numpy \ libomp-dev \ libomp5 && \ - apt-get autoclean -y && apt-get autocremove -y && rm -rf /var/lib/apt/lists/* + apt-get autoclean -y && apt-get autoremove -y && rm -rf /var/lib/apt/lists/* RUN pip install --upgrade setuptools wheel && \ pip install \ @@ -234,6 +234,12 @@ pip install -r /home/kbkn/CARLA_${CARLA_VERSION}/PythonAPI/util/requirements.txt && \ pip install -r /home/kbkn/CARLA_${CARLA_VERSION}/PythonAPI/carla/requirements.txt && \ pip install -r /home/kbkn/scenario_runner/requirements.txt + + +RUN apt update && \ + apt install -y --no-install-recommends --allow-unauthenticated \ + lxde gtk2-engines-murrine gnome-themes-standard gtk2-engines-pixbuf gtk2-engines-murrine arc-theme \ + apt autoclean -y && apt autoremove -y && rm -rf /var/lib/apt/lists/* USER root WORKDIR /root