Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: sync detectron version #440

Merged
merged 4 commits into from
Apr 3, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Reset whitespace
  • Loading branch information
qued committed Apr 3, 2023
commit 4f42206d75e47ed542067dcdb84671cea66ef0c0
48 changes: 24 additions & 24 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,30 +21,30 @@ SHELL [ "/usr/bin/scl", "enable", "devtoolset-9"]

# Install Tessaract
RUN set -ex && \
$sudo yum install -y opencv opencv-devel opencv-python perl-core clang libpng-devel libtiff-devel libwebp-devel libjpeg-turbo-devel git-core libtool pkgconfig xz && \
wget https://github.com/DanBloomberg/leptonica/releases/download/1.75.1/leptonica-1.75.1.tar.gz && \
tar -xzvf leptonica-1.75.1.tar.gz && \
cd leptonica-1.75.1 || exit && \
./configure && make && $sudo make install && \
cd .. && \
wget http://mirror.squ.edu.om/gnu/autoconf-archive/autoconf-archive-2017.09.28.tar.xz && \
tar -xvf autoconf-archive-2017.09.28.tar.xz && \
cd autoconf-archive-2017.09.28 || exit && \
./configure && make && $sudo make install && \
$sudo cp m4/* /usr/share/aclocal && \
cd .. && \
git clone --depth 1 https://github.com/tesseract-ocr/tesseract.git tesseract-ocr && \
cd tesseract-ocr || exit && \
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig && \
scl enable devtoolset-9 -- sh -c './autogen.sh && ./configure && make && make install' && \
cd .. && \
git clone https://github.com/tesseract-ocr/tessdata.git && \
$sudo cp tessdata/*.traineddata /usr/local/share/tessdata && \
$sudo rm -rf /tesseract-ocr /tessdata /autoconf-archive-2017.09.28* /leptonica-1.75.1* && \
$sudo yum -y remove opencv opencv-devel opencv-python perl-core clang libpng-devel libtiff-devel libwebp-devel libjpeg-turbo-devel git-core libtool && \
$sudo rm -rf /var/cache/yum/* && \
$sudo rm -rf /tmp/* && \
yum clean all
$sudo yum install -y opencv opencv-devel opencv-python perl-core clang libpng-devel libtiff-devel libwebp-devel libjpeg-turbo-devel git-core libtool pkgconfig xz && \
wget https://github.com/DanBloomberg/leptonica/releases/download/1.75.1/leptonica-1.75.1.tar.gz && \
tar -xzvf leptonica-1.75.1.tar.gz && \
cd leptonica-1.75.1 || exit && \
./configure && make && $sudo make install && \
cd .. && \
wget http://mirror.squ.edu.om/gnu/autoconf-archive/autoconf-archive-2017.09.28.tar.xz && \
tar -xvf autoconf-archive-2017.09.28.tar.xz && \
cd autoconf-archive-2017.09.28 || exit && \
./configure && make && $sudo make install && \
$sudo cp m4/* /usr/share/aclocal && \
cd .. && \
git clone --depth 1 https://github.com/tesseract-ocr/tesseract.git tesseract-ocr && \
cd tesseract-ocr || exit && \
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig && \
scl enable devtoolset-9 -- sh -c './autogen.sh && ./configure && make && make install' && \
cd .. && \
git clone https://github.com/tesseract-ocr/tessdata.git && \
$sudo cp tessdata/*.traineddata /usr/local/share/tessdata && \
$sudo rm -rf /tesseract-ocr /tessdata /autoconf-archive-2017.09.28* /leptonica-1.75.1* && \
$sudo yum -y remove opencv opencv-devel opencv-python perl-core clang libpng-devel libtiff-devel libwebp-devel libjpeg-turbo-devel git-core libtool && \
$sudo rm -rf /var/cache/yum/* && \
$sudo rm -rf /tmp/* && \
yum clean all

# Install Python
RUN yum -y install openssl-devel bzip2-devel libffi-devel make git sqlite-devel && \
Expand Down