mirror of
				https://github.com/simon987/sist2.git
				synced 2025-10-31 16:06:53 +00:00 
			
		
		
		
	arm64 build
This commit is contained in:
		
							parent
							
								
									5e798f9367
								
							
						
					
					
						commit
						0cd2523b05
					
				
							
								
								
									
										22
									
								
								DockerArm64/Dockerfile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								DockerArm64/Dockerfile
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,22 @@ | |||||||
|  | FROM ubuntu:19.10 | ||||||
|  | MAINTAINER simon987 <me@simon987.net> | ||||||
|  | 
 | ||||||
|  | RUN apt update | ||||||
|  | RUN apt install -y libglib2.0-0 libcurl4 libmagic1 libharfbuzz-bin libopenjp2-7 libarchive13 liblzma5 libzstd1 liblz4-1 \ | ||||||
|  |  curl libtiff5 libpng16-16 libpcre3 | ||||||
|  | 
 | ||||||
|  | RUN mkdir -p /usr/share/tessdata && \ | ||||||
|  |     cd /usr/share/tessdata/ && \ | ||||||
|  |     curl -o /usr/share/tessdata/hin.traineddata https://raw.githubusercontent.com/tesseract-ocr/tessdata/master/hin.traineddata &&\ | ||||||
|  |     curl -o /usr/share/tessdata/jpn.traineddata https://raw.githubusercontent.com/tesseract-ocr/tessdata/master/jpn.traineddata &&\ | ||||||
|  |     curl -o /usr/share/tessdata/eng.traineddata https://raw.githubusercontent.com/tesseract-ocr/tessdata/master/eng.traineddata &&\ | ||||||
|  |     curl -o /usr/share/tessdata/fra.traineddata https://raw.githubusercontent.com/tesseract-ocr/tessdata/master/fra.traineddata &&\ | ||||||
|  |     curl -o /usr/share/tessdata/rus.traineddata https://raw.githubusercontent.com/tesseract-ocr/tessdata/master/rus.traineddata &&\ | ||||||
|  |     curl -o /usr/share/tessdata/spa.traineddata https://raw.githubusercontent.com/tesseract-ocr/tessdata/master/spa.traineddata && ls -lh | ||||||
|  | 
 | ||||||
|  | ADD sist2 /root/sist2 | ||||||
|  | 
 | ||||||
|  | ENV LANG C.UTF-8 | ||||||
|  | ENV LC_ALL C.UTF-8 | ||||||
|  | 
 | ||||||
|  | ENTRYPOINT ["/root/sist2"] | ||||||
							
								
								
									
										13
									
								
								DockerArm64/build.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										13
									
								
								DockerArm64/build.sh
									
									
									
									
									
										Executable file
									
								
							| @ -0,0 +1,13 @@ | |||||||
|  | rm ./sist2_arm64 | ||||||
|  | cp ../sist2_arm64.gz . | ||||||
|  | gzip -d sist2_arm64.gz | ||||||
|  | 
 | ||||||
|  | version=$(./sist2_arm64 --version) | ||||||
|  | 
 | ||||||
|  | echo "Version ${version}" | ||||||
|  | docker build . -t simon987/sist2-arm64:"${version}" -t simon987/sist2-arm64:latest | ||||||
|  | 
 | ||||||
|  | docker push simon987/sist2-arm64:"${version}" | ||||||
|  | docker push simon987/sist2-arm64:latest | ||||||
|  | 
 | ||||||
|  | docker run --rm simon987/sist2-arm64 -v | ||||||
							
								
								
									
										12
									
								
								ci/build_arm64.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										12
									
								
								ci/build_arm64.sh
									
									
									
									
									
										Executable file
									
								
							| @ -0,0 +1,12 @@ | |||||||
|  | #!/usr/bin/env bash | ||||||
|  | 
 | ||||||
|  | VCPKG_ROOT="/vcpkg" | ||||||
|  | 
 | ||||||
|  | rm *.gz | ||||||
|  | 
 | ||||||
|  | rm -rf CMakeFiles CMakeCache.txt | ||||||
|  | cmake -DSIST_DEBUG=off -DCMAKE_TOOLCHAIN_FILE="${VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake" . | ||||||
|  | make -j 4 | ||||||
|  | strip sist2 | ||||||
|  | mv sist2 sist2_arm64 | ||||||
|  | gzip -9 sist2_arm64 | ||||||
							
								
								
									
										2
									
								
								third-party/libscan
									
									
									
									
										vendored
									
									
								
							
							
								
								
								
								
								
								
									
									
								
							
						
						
									
										2
									
								
								third-party/libscan
									
									
									
									
										vendored
									
									
								
							| @ -1 +1 @@ | |||||||
| Subproject commit 33f5fb8e2ca8dcbdd60eff7890b30188d42e0ca8 | Subproject commit 3e1f06bdddd345626236afe9e9142b8bef855d19 | ||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user