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

fix missing executable errors in Lambdas #9

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
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
26 changes: 16 additions & 10 deletions layers/process_documents/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ WORKDIR /root

# Leptonica image-reading dependencies
RUN yum install -y \
libjpeg-devel \
libpng-devel \
libtiff-devel \
tar \
gzip \
gcc-c++ \
make \
libtool
libjpeg-devel \
libpng-devel \
libtiff-devel \
tar \
gzip \
gcc-c++ \
make \
libtool

# Clean up YUM caches to keep the image size down
RUN yum clean all
Expand Down Expand Up @@ -114,7 +114,7 @@ RUN make install

WORKDIR /root

RUN yum install -y ghostscript-devel openjpeg2 opentjpeg2-devel openjpeg2-tools
RUN yum install -y ghostscript-devel openjpeg2 openjpeg2-devel openjpeg2-tools

RUN curl -Lo ImageMagick-7.0.10-6.tar.gz \
https://github.com/ImageMagick/ImageMagick/archive/7.0.10-6.tar.gz
Expand Down Expand Up @@ -193,12 +193,18 @@ RUN rm -r /opt/lib64
WORKDIR /opt/share/tessdata/configs
RUN mkdir -p /opt/share/tessdata/configs && curl -LO https://raw.githubusercontent.com/tesseract-ocr/tessconfigs/3decf1c8252ba6dbeef0bf908f4b0aab7f18d113/configs/hocr

# Symlink versioned binary to executable
WORKDIR /opt/lib
RUN ln -s libtiff.so.5.2.0 libtiff.so.5
RUN ln -s libjpeg.so.62.3.0 libjpeg.so.62
RUN ln -s libgomp.so.1.0.0 libgomp.so.1

###############################################################################
# Zip all dependencies
###############################################################################

WORKDIR /opt
RUN zip -r /root/ProcessDocumentLayer.zip *
RUN zip -r -y /root/ProcessDocumentLayer.zip *

###############################################################################
# Entrypoint: Copy zip file to host
Expand Down
Binary file modified layers/process_documents/ProcessDocumentLayer.zip
Binary file not shown.
Loading