| 
									
										
										
										
											2020-05-30 12:21:22 +01:00
										 |  |  | #!/bin/bash
 | 
					
						
							|  |  |  | set -x | 
					
						
							|  |  |  | set -e | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-10-28 14:19:45 -07:00
										 |  |  | # known good MXE sha | 
					
						
							|  |  |  | MXE_SHA="8966a64" | 
					
						
							| 
									
										
										
										
											2020-05-30 12:21:22 +01:00
										 |  |  | SCRIPTPATH=$(dirname $0) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-10-28 14:19:45 -07:00
										 |  |  | # version of the docker image | 
					
						
							| 
									
										
										
										
											2020-10-30 11:28:00 -07:00
										 |  |  | VERSION=2.1 | 
					
						
							| 
									
										
										
										
											2020-10-28 14:19:45 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-05-30 12:21:22 +01:00
										 |  |  | pushd $SCRIPTPATH | 
					
						
							| 
									
										
										
										
											2020-10-30 11:28:00 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  | # we use the 'experimental' --squash argument to significantly reduce the size of the massively huge | 
					
						
							|  |  |  | # Docker container this produces | 
					
						
							| 
									
										
										
										
											2020-10-28 14:19:45 -07:00
										 |  |  | docker build --squash -t subsurface/mxe-build-container:$VERSION --build-arg=mxe_sha=$MXE_SHA -f Dockerfile . | 
					
						
							| 
									
										
										
										
											2020-05-30 12:21:22 +01:00
										 |  |  | popd |