@@ -20,73 +20,73 @@ RUN apt-get update \
20
20
21
21
# remove deprecated nvidia key
22
22
RUN apt install -y wget && wget -qO - https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub | apt-key add - \
23
- && apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/3bf863cc.pub
23
+ && apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/3bf863cc.pub
24
24
25
25
RUN apt update && apt-get install -y software-properties-common && \
26
- add-apt-repository ppa:ubuntu-toolchain-r/test && \
27
- apt-get update && apt-get install -y --no-install-recommends \
28
- sudo \
29
- gcc-9 \
30
- g++-9 \
31
- dialog \
32
- apt-utils \
33
- libeigen3-dev \
34
- git \
35
- mercurial \
36
- pkg-config \
37
- mesa-utils \
38
- libxau-dev \
39
- libxdmcp-dev \
40
- libxcb1-dev \
41
- libxext-dev \
42
- libx11-dev \
43
- git \
44
- tmux \
45
- wget \
46
- curl \
47
- cmake \
48
- vim \
49
- build-essential \
50
- unzip \
51
- autoconf \
52
- autogen \
53
- automake \
54
- libtool \
55
- mlocate \
56
- zlib1g-dev \
57
- libopenblas-dev \
58
- qt5-default \
59
- libflann-dev \
60
- libopencv-dev \
61
- libpcl-dev \
62
- libboost-all-dev \
63
- libsuitesparse-dev \
64
- libatlas-base-dev \
65
- libtbb-dev \
66
- libusb-1.0-0-dev \
67
- libgtest-dev \
68
- libgoogle-glog-dev \
69
- pkg-config \
70
- software-properties-common \
71
- cmake-curses-gui \
72
- gdb
26
+ add-apt-repository ppa:ubuntu-toolchain-r/test && \
27
+ apt-get update && apt-get install -y --no-install-recommends \
28
+ sudo \
29
+ gcc-9 \
30
+ g++-9 \
31
+ dialog \
32
+ apt-utils \
33
+ libeigen3-dev \
34
+ git \
35
+ mercurial \
36
+ pkg-config \
37
+ mesa-utils \
38
+ libxau-dev \
39
+ libxdmcp-dev \
40
+ libxcb1-dev \
41
+ libxext-dev \
42
+ libx11-dev \
43
+ git \
44
+ tmux \
45
+ wget \
46
+ curl \
47
+ cmake \
48
+ vim \
49
+ build-essential \
50
+ unzip \
51
+ autoconf \
52
+ autogen \
53
+ automake \
54
+ libtool \
55
+ mlocate \
56
+ zlib1g-dev \
57
+ libopenblas-dev \
58
+ qt5-default \
59
+ libflann-dev \
60
+ libopencv-dev \
61
+ libpcl-dev \
62
+ libboost-all-dev \
63
+ libsuitesparse-dev \
64
+ libatlas-base-dev \
65
+ libtbb-dev \
66
+ libusb-1.0-0-dev \
67
+ libgtest-dev \
68
+ libgoogle-glog-dev \
69
+ pkg-config \
70
+ software-properties-common \
71
+ cmake-curses-gui \
72
+ gdb
73
73
74
74
# ####### Install Eigen 3.3.9
75
75
RUN mkdir -p /home/root/tmp/ \
76
- && wget https://gitlab.com/libeigen/eigen/-/archive/3.3.9/eigen-3.3.9.tar.bz2 \
77
- && tar -xf eigen-3.3.9.tar.bz2 && rm eigen-3.3.9.tar.bz2 \
78
- && mv eigen-3.3.9 /home/root/tmp/eigen-3.3.9 \
79
- && cd /home/root/tmp/eigen-3.3.9 \
80
- && export CC=gcc-9 && export CXX=g++-9 \
81
- && mkdir build && cd build && cmake .. && make -j && make install
76
+ && wget https://gitlab.com/libeigen/eigen/-/archive/3.3.9/eigen-3.3.9.tar.bz2 \
77
+ && tar -xf eigen-3.3.9.tar.bz2 && rm eigen-3.3.9.tar.bz2 \
78
+ && mv eigen-3.3.9 /home/root/tmp/eigen-3.3.9 \
79
+ && cd /home/root/tmp/eigen-3.3.9 \
80
+ && export CC=gcc-9 && export CXX=g++-9 \
81
+ && mkdir build && cd build && cmake .. && make -j && make install
82
82
83
83
# ####### Install sophus
84
84
RUN mkdir -p /home/root/tmp/ \
85
- && wget https://github.com/strasdat/Sophus/archive/v1.0.0.tar.gz \
86
- && tar -xf v1.0.0.tar.gz \
87
- && mv Sophus-1.0.0 /home/root/tmp/Sophus-1.0.0 \
88
- && cd /home/root/tmp/Sophus-1.0.0 \
89
- && mkdir build && cd build && cmake .. && make -j && make install
85
+ && wget https://github.com/strasdat/Sophus/archive/v1.0.0.tar.gz \
86
+ && tar -xf v1.0.0.tar.gz \
87
+ && mv Sophus-1.0.0 /home/root/tmp/Sophus-1.0.0 \
88
+ && cd /home/root/tmp/Sophus-1.0.0 \
89
+ && mkdir build && cd build && cmake .. && make -j && make install
90
90
91
91
# ########## Install gtsam
92
92
# RUN cd /home/root/tmp/ \
@@ -96,33 +96,33 @@ RUN mkdir -p /home/root/tmp/ \
96
96
97
97
# ########## Install ceres
98
98
RUN cd /home/root/tmp && export CC=gcc-9 && export CXX=g++-9 \
99
- && wget https://github.com/ceres-solver/ceres-solver/archive/refs/tags/2.1.0.tar.gz \
100
- && export CC=gcc-9 && export CXX=g++-9 \
101
- && tar zxf 2.1.0.tar.gz && mkdir ceres-bin && cd ceres-bin && cmake ../ceres-solver-2.1.0 \
102
- && make -j4 && make install
99
+ && wget https://github.com/ceres-solver/ceres-solver/archive/refs/tags/2.1.0.tar.gz \
100
+ && export CC=gcc-9 && export CXX=g++-9 \
101
+ && tar zxf 2.1.0.tar.gz && mkdir ceres-bin && cd ceres-bin && cmake ../ceres-solver-2.1.0 \
102
+ && make -j8 && make install
103
103
104
104
# ########## Install yaml-cpp
105
105
RUN cd /home/root/tmp \
106
- && wget https://github.com/jbeder/yaml-cpp/archive/refs/tags/yaml-cpp-0.7.0.zip \
107
- && unzip yaml-cpp-0.7.0.zip && rm yaml-cpp-0.7.0.zip \
108
- && mv yaml-cpp-yaml-cpp-0.7.0/ yaml-cpp-0.7.0/
106
+ && wget https://github.com/jbeder/yaml-cpp/archive/refs/tags/yaml-cpp-0.7.0.zip \
107
+ && unzip yaml-cpp-0.7.0.zip && rm yaml-cpp-0.7.0.zip \
108
+ && mv yaml-cpp-yaml-cpp-0.7.0/ yaml-cpp-0.7.0/
109
109
110
110
COPY CMakeLists.txt.yaml-cpp /home/root/tmp/yaml-cpp-0.7.0/CMakeLists.txt
111
111
112
- RUN cd /home/root/tmp/yaml-cpp-0.7.0/ && mkdir build && cd build && cmake .. && make -j && make install
112
+ RUN cd /home/root/tmp/yaml-cpp-0.7.0/ && mkdir build && cd build && cmake .. && make -j8 && make install
113
113
114
114
# ########## Install pcl-1.9.1
115
115
RUN cd /home/root/tmp/ && export CC=gcc-9 && export CXX=g++-9 \
116
- && wget https://github.com/PointCloudLibrary/pcl/archive/pcl-1.9.1.tar.gz \
117
- && tar -xf pcl-1.9.1.tar.gz && rm pcl-1.9.1.tar.gz \
118
- && mv pcl-pcl-1.9.1 pcl-1.9.1 \
119
- && mkdir -p pcl-1.9.1/build
116
+ && wget https://github.com/PointCloudLibrary/pcl/archive/pcl-1.9.1.tar.gz \
117
+ && tar -xf pcl-1.9.1.tar.gz && rm pcl-1.9.1.tar.gz \
118
+ && mv pcl-pcl-1.9.1 pcl-1.9.1 \
119
+ && mkdir -p pcl-1.9.1/build
120
120
121
121
COPY boost.h /home/root/tmp/pcl-1.9.1/io/include/pcl/io/boost.h
122
122
123
123
RUN cd /home/root/tmp/pcl-1.9.1/build \
124
- && export CC=gcc-9 && export CXX=g++-9 \
125
- && cmake .. && make -j4 && make install
124
+ && export CC=gcc-9 && export CXX=g++-9 \
125
+ && cmake .. && make -j8 && make install
126
126
127
127
RUN rm -rf /home/root/tmp/*
128
128
@@ -142,14 +142,27 @@ ENV NVIDIA_DRIVER_CAPABILITIES \
142
142
${NVIDIA_DRIVER_CAPABILITIES:+$NVIDIA_DRIVER_CAPABILITIES,}graphics
143
143
144
144
# emacs tools. Feel free to comment them out of you don't use emacs and llvm tools
145
- RUN apt update && \
146
- add-apt-repository ppa:kelleyk/emacs && \
147
- wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | apt-key add - && \
148
- wget --no-check-certificate -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - && \
149
- add-apt-repository 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-10 main' && \
150
- apt-add-repository 'deb https://apt.kitware.com/ubuntu/ bionic main' && apt update &&\
151
- apt install -y emacs27 python3-pip clang-10 clangd-10 llvm-10 lldb-10 llvm-10-dev libllvm10 llvm-10-runtime bear mlocate global cmake && \
152
- apt clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
145
+ # RUN apt update && \
146
+ # add-apt-repository ppa:kelleyk/emacs && \
147
+ # wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | apt-key add - && \
148
+ # wget --no-check-certificate -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - && \
149
+ # add-apt-repository 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-10 main' && \
150
+ # apt-add-repository 'deb https://apt.kitware.com/ubuntu/ bionic main' && apt update &&\
151
+ # apt install -y emacs27 python3-pip clang-10 clangd-10 llvm-10 lldb-10 llvm-10-dev libllvm10 llvm-10-runtime bear mlocate global cmake && \
152
+ # apt clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
153
153
154
154
RUN updatedb
155
155
# USER original_user
156
+
157
+ # install zsh
158
+ RUN git clone https://github.com/tccoin/easy-linux.git /root/easy-linux \
159
+ && cd /root/easy-linux \
160
+ && bash zsh.sh \
161
+ && touch /root/.z \
162
+ && rm -r /root/easy-linux
163
+
164
+ # install gitstatus
165
+ # https://github.com/romkatv/gitstatus/releases/tag/v1.3.1
166
+ RUN mkdir -p /root/.cache/gitstatus \
167
+ && wget https://github.com/romkatv/gitstatus/releases/download/v1.5.1/gitstatusd-linux-x86_64.tar.gz -O - \
168
+ | tar -zx -C /root/.cache/gitstatus/
0 commit comments