You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
terminate called after throwing an instance of 'com::sun::star::container::NoSuchElementException'
0.650 /bin/sh: line 1: 8 Aborted /opt/instdir/program/soffice.bin --headless --norestore --invisible --nodefault --nofirststartwizard --nolockcheck --nologo --convert-to pdf:writer_pdf_Export --outdir /tmp /opt/test-doc.docx
------
Dockerfile:29
--------------------
27 | # CHECK IF IT WORKS
28 | RUN echo "Checking if it works"
29 | >>> RUN export HOME=/tmp && /opt/instdir/program/soffice.bin --headless --norestore --invisible --nodefault --nofirststartwizard --nolockcheck --nologo --convert-to pdf:writer_pdf_Export --outdir /tmp /opt/test-doc.docx
30 |
31 | # Copy the Lambda function code
--------------------
ERROR: failed to solve: process "/bin/sh -c export HOME=/tmp && /opt/instdir/program/soffice.bin --headless --norestore --invisible --nodefault --nofirststartwizard --nolockcheck --nologo --convert-to pdf:writer_pdf_Export --outdir /tmp /opt/test-doc.docx" did not complete successfully: exit code: 134
# Use the Amazon Linux 2 base image
FROM public.ecr.aws/lambda/python:3.8
# Install ClamAV and update the virus definitions
RUN yum -y install clamav clamav-update \
&& freshclam
## Upgrade pip and install the required Python packages
RUN python3.8 -m pip install --upgrade pip
COPY requirements.txt ./
RUN python3.8 -m pip install -r requirements.txt
RUN echo "Installing wget, tar"
# Install wget and download lo.tar.gz, then extract it to /tmp
RUN yum -y install wget
RUN yum -y install tar
RUN echo "Permissions for /tmp and /opt"
RUN wget https://github.com/vladholubiev/serverless-libreoffice/releases/download/v6.4.0.1/lo.tar.gz -P /tmp
# get it from opt and put inside /tmp
RUN tar -xvf /tmp/lo.tar.gz -C /opt
COPY test-doc.docx /opt/test-doc.docx
# CHECK IF IT WORKS
RUN echo "Checking if it works"
RUN export HOME=/tmp && /opt/instdir/program/soffice.bin --headless --norestore --invisible --nodefault --nofirststartwizard --nolockcheck --nologo --convert-to pdf:writer_pdf_Export --outdir /tmp /opt/test-doc.docx
# Copy the Lambda function code
COPY app.py ./
# Set the entry point to use the Lambda runtime interface emulator (RIE)
ENTRYPOINT ["python3.8", "-m", "awslambdaric"]
CMD ["app.lambda_handler"]
can anyone help me out on this.
The text was updated successfully, but these errors were encountered:
can anyone help me out on this.
The text was updated successfully, but these errors were encountered: