a lot of fixes

This commit is contained in:
2024-10-05 13:52:44 +03:00
parent 640337d420
commit d2afa8c9dd
32 changed files with 909 additions and 104 deletions

View File

@@ -0,0 +1,39 @@
FROM archlinux
#Update
RUN pacman --noconfirm -Sy
#Build dependencies
RUN pacman --noconfirm -S sudo cmake git coreutils base-devel eigen
#Dependencies from repos
RUN pacman --noconfirm -S qt5-base mbedtls
RUN echo "MAKEFLAGS=\"-j${nproc}\"" >> /etc/makepkg.conf
RUN useradd -ms /bin/bash checks-parser
RUN usermod -a -G wheel checks-parser
RUN echo "checks-parser ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
USER checks-parser
WORKDIR /home/checks-parser
#Dependencies from sources
RUN git clone https://aur.archlinux.org/yay.git && \
cd yay && \
makepkg -si --noconfirm && \
cd .. && sudo rm -rf yay
RUN yay -Sy --noconfirm gtkglext
RUN yay -S --noconfirm cpr opencv opencv2 nlohmann-json tesseract tesseract-data-rus
#building
WORKDIR /home/checks-parser
RUN git clone https://git.foxarmy.org/leca/checks-parser && \
cd checks-parser && \
mkdir build && cd build && \
cmake .. && \
make -j ${nproc} && \
sudo make install
ENTRYPOINT ["checks-parser"]

View File

@@ -0,0 +1,34 @@
FROM debian:bullseye
#Update
RUN apt update -y && apt upgrade -y
#Build dependencies
RUN apt install -y git build-essential cmake
#Dependencies from repos (qt5, openssl, tesseract and lang package)
RUN apt install -y qtbase5-dev openssl libmbedtls-dev tesseract-ocr tesseract-ocr-rus libopencv-dev
#Dependencies from sources
#cpr
WORKDIR /root
RUN git clone https://github.com/whoshuu/cpr.git && \
cd cpr && \
mkdir build && cd build && \
cmake .. && \
make -j ${nproc} && \
make install && \
cd /root && rm -rf cpr
#building
WORKDIR /root
RUN git clone https://git.foxarmy.org/leca/checks-parser && \
cd checks-parser && \
mkdir build && cd build &&\
cmake .. && \
make -j ${nproc} && \
make install && \
ENTRYPOINT ["checks-parser"]

View File

@@ -0,0 +1 @@
checks-parser.png

View File

@@ -0,0 +1 @@
usr/bin/checks-parser

View File

@@ -0,0 +1,8 @@
[Desktop Entry]
Name=Checks parser
Type=Application
Terminal=false
NoDisplay=false
Exec=checks-parser
Categories=Utility;
Icon=checks-parser

Binary file not shown.

After

Width:  |  Height:  |  Size: 627 KiB

Binary file not shown.