| 
									
										
										
										
											2020-06-03 05:33:57 +08:00
										 |  |  | # This GTSAM image connects to the host X-server via VNC to provide a Graphical User Interface for interaction.
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-10-29 05:34:41 +08:00
										 |  |  | # Get the base Ubuntu/GTSAM image from Docker Hub
 | 
					
						
							| 
									
										
										
										
											2021-09-07 04:14:23 +08:00
										 |  |  | FROM borglab/ubuntu-gtsam-python:bionic
 | 
					
						
							| 
									
										
										
										
											2018-10-29 05:34:41 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | # Things needed to get a python GUI
 | 
					
						
							|  |  |  | ENV DEBIAN_FRONTEND noninteractive
 | 
					
						
							| 
									
										
										
										
											2020-06-03 05:33:57 +08:00
										 |  |  | RUN apt install -y python-tk
 | 
					
						
							| 
									
										
										
										
											2020-07-15 05:24:47 +08:00
										 |  |  | RUN python3 -m pip install matplotlib
 | 
					
						
							| 
									
										
										
										
											2018-10-29 05:34:41 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | # Install a VNC X-server, Frame buffer, and windows manager
 | 
					
						
							| 
									
										
										
										
											2020-06-03 05:33:57 +08:00
										 |  |  | RUN apt install -y x11vnc xvfb fluxbox
 | 
					
						
							| 
									
										
										
										
											2018-10-29 05:34:41 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | # Finally, install wmctrl needed for bootstrap script
 | 
					
						
							| 
									
										
										
										
											2020-07-15 05:24:47 +08:00
										 |  |  | RUN apt install -y wmctrl
 | 
					
						
							| 
									
										
										
										
											2018-10-29 05:34:41 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | # Copy bootstrap script and make sure it runs
 | 
					
						
							|  |  |  | COPY bootstrap.sh /
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | CMD '/bootstrap.sh'
 |