You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
			
				
					46 lines
				
				1.6 KiB
			
		
		
			
		
	
	
					46 lines
				
				1.6 KiB
			| 
								 
											5 years ago
										 
									 | 
							
								FROM commaai/openpilot-base:latest
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								ENV PYTHONUNBUFFERED 1
							 | 
						||
| 
								 | 
							
								ENV PYTHONPATH /tmp/openpilot:${PYTHONPATH}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								# install opencv
							 | 
						||
| 
								 | 
							
								RUN export OPENCV_VERSION='4.2.0' && \
							 | 
						||
| 
								 | 
							
								    sudo apt-get -y update && \
							 | 
						||
| 
								 | 
							
								    sudo apt-get install -y build-essential cmake && \
							 | 
						||
| 
								 | 
							
								    sudo apt-get install -y qt5-default libvtk6-dev && \
							 | 
						||
| 
								 | 
							
								    sudo apt-get install -y libdc1394-22-dev libavcodec-dev libavformat-dev libswscale-dev \
							 | 
						||
| 
								 | 
							
								                            libtheora-dev libvorbis-dev libxvidcore-dev libx264-dev yasm \
							 | 
						||
| 
								 | 
							
								                            libopencore-amrnb-dev libopencore-amrwb-dev libv4l-dev libxine2-dev && \
							 | 
						||
| 
								 | 
							
								    sudo apt-get install -y libtbb-dev libeigen3-dev && \
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    wget https://github.com/opencv/opencv/archive/${OPENCV_VERSION}.tar.gz && \
							 | 
						||
| 
								 | 
							
								    tar -xvf ${OPENCV_VERSION}.tar.gz && rm ${OPENCV_VERSION}.tar.gz && \
							 | 
						||
| 
								 | 
							
								    mv opencv-${OPENCV_VERSION} OpenCV && \
							 | 
						||
| 
								 | 
							
								    cd OpenCV && mkdir build && cd build && \
							 | 
						||
| 
								 | 
							
								    cmake -DWITH_OPENGL=ON -DFORCE_VTK=ON -DWITH_TBB=ON -DWITH_GDAL=ON \
							 | 
						||
| 
								 | 
							
								          -DWITH_XINE=ON -DENABLE_PRECOMPILED_HEADERS=OFF .. && \
							 | 
						||
| 
								 | 
							
								    make -j8 && \
							 | 
						||
| 
								 | 
							
								    sudo make install && \
							 | 
						||
| 
								 | 
							
								    sudo ldconfig
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								RUN mkdir -p /tmp/openpilot
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								COPY SConstruct \
							 | 
						||
| 
								 | 
							
								     .pylintrc \
							 | 
						||
| 
								 | 
							
								     .pre-commit-config.yaml \
							 | 
						||
| 
								 | 
							
								     /tmp/openpilot/
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								COPY ./pyextra /tmp/openpilot/pyextra
							 | 
						||
| 
								 | 
							
								COPY ./phonelibs /tmp/openpilot/phonelibs
							 | 
						||
| 
								 | 
							
								COPY ./laika /tmp/openpilot/laika
							 | 
						||
| 
								 | 
							
								COPY ./laika_repo /tmp/openpilot/laika_repo
							 | 
						||
| 
								 | 
							
								COPY ./rednose /tmp/openpilot/rednose
							 | 
						||
| 
								 | 
							
								COPY ./tools /tmp/openpilot/tools
							 | 
						||
| 
								 | 
							
								COPY ./release /tmp/openpilot/release
							 | 
						||
| 
								 | 
							
								COPY ./common /tmp/openpilot/common
							 | 
						||
| 
								 | 
							
								COPY ./opendbc /tmp/openpilot/opendbc
							 | 
						||
| 
								 | 
							
								COPY ./cereal /tmp/openpilot/cereal
							 | 
						||
| 
								 | 
							
								COPY ./panda /tmp/openpilot/panda
							 | 
						||
| 
								 | 
							
								COPY ./selfdrive /tmp/openpilot/selfdrive
							 |