-
Notifications
You must be signed in to change notification settings - Fork 17
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
Update Dockerfile #10
base: master
Are you sure you want to change the base?
Conversation
Remove rar because it does the same (hopefully) job as unrar but is only available for amd64, which makes builds on other platforms break
Fixed in fork https://gitlab.com/the-automation-club/hrconvert2-docker. Let's give a try! |
Does * to rar conversion work ? |
Created an image for testing. Could you pull it and let me know if it works for you? |
2MB zip to rar convertion fails without usefull logs. It successfully unpacks the zip but it just says that it fails to create the rar. (arm64) |
Just reopened the bug (https://gitlab.com/the-automation-club/hrconvert2-docker/-/issues/1) |
Posting followups at https://gitlab.com/the-automation-club/hrconvert2-docker/-/issues/1. Not solved yet |
Sadly the convertion code need rar executable to compress in rar format
My guess is that modifying the code to use another rar version compatible with others architectures is out of the question (zelon88/HRConvert2#27) |
I had success running rar with qemu-user-static on arm64. But HRConvert still fails. The executable is working in bash, is available to the www-data user and even a php shell could create the rar file. My unoptimised code for arm64 only (The total image size is 2.2GB) # https://www.rarlab.com/rar/rarlinux-x64-5.1.1.tar.gz
# https://www.rarlab.com/rar/rarlinux-x64-6.0.2.tar.gz
RUN apt update \
&& apt install wget qemu-user-static -y \
&& wget https://www.rarlab.com/rar/rarlinux-x64-5.1.1.tar.gz \
&& tar -xzvf rarlinux-x64-5.1.1.tar.gz \
&& chmod +x rar/rar
# install needed libaries: /lib64/ld-linux-x86-64.so.2; libstdc++.so.6
RUN wget https://geo.mirror.pkgbuild.com/core/os/x86_64/glibc-2.38-7-x86_64.pkg.tar.zst \
&& apt-get install zstd -y \
&& zstd -d glibc-2.38-7-x86_64.pkg.tar.zst \
&& tar -xvf glibc-2.38-7-x86_64.pkg.tar \
&& mkdir /lib64 \
&& cp lib/ld-linux-x86-64.so.2 /lib64 \
&& wget https://geo.mirror.pkgbuild.com/core/os/x86_64/gcc-libs-13.2.1-3-x86_64.pkg.tar.zst \
&& zstd -d gcc-libs-13.2.1-3-x86_64.pkg.tar.zst \
&& tar -xvf gcc-libs-13.2.1-3-x86_64.pkg.tar
# qemu-x86_64-static rar/rar a test.rar rarlinux-x64-6.0.2.tar.gz
RUN echo "qemu-x86_64-static /rar/rar $@" > /usr/local/bin/rar && chmod +x /usr/local/bin/rar |
Took same approach but using package names instead
|
Created new images for v3.1 with rar compression. Feel free to use it |
Remove rar because it does the same job as unrar but is only available for amd64, which makes builds on other platforms break.
It works on arm64 platform.