versioning
This commit is contained in:
parent
a73bf1fc53
commit
5f4a86cee8
|
@ -3,6 +3,9 @@ FROM checks_parser_base_ubuntu
|
||||||
RUN DEBIAN_FRONTEND=noninteractive apt update
|
RUN DEBIAN_FRONTEND=noninteractive apt update
|
||||||
RUN DEBIAN_FRONTEND=noninteractive apt install -y wget git cmake make gcc g++ fuse libboost-regex-dev
|
RUN DEBIAN_FRONTEND=noninteractive apt install -y wget git cmake make gcc g++ fuse libboost-regex-dev
|
||||||
|
|
||||||
|
ARG pkgname=$name
|
||||||
|
ARG pkgver=$version
|
||||||
|
ARG revision
|
||||||
|
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
|
|
||||||
|
@ -23,4 +26,6 @@ RUN cp build/checks-parser /app/AppDir/usr/bin
|
||||||
|
|
||||||
RUN PATH=/usr/lib/qt5/bin/:$PATH linuxdeployqt --appimage-extract-and-run AppDir/usr/bin/checks-parser -no-copy-copyright-files -appimage
|
RUN PATH=/usr/lib/qt5/bin/:$PATH linuxdeployqt --appimage-extract-and-run AppDir/usr/bin/checks-parser -no-copy-copyright-files -appimage
|
||||||
RUN mkdir -p /output
|
RUN mkdir -p /output
|
||||||
ENTRYPOINT ["cp", "Checks_parser-x86_64.AppImage", "/output"]
|
RUN echo "cp Checks_parser-x86_64.AppImage /output/Checks_parser-x86_64_${pkgver}-${revision}.AppImage" > /deploy.sh
|
||||||
|
RUN chmod +x /deploy.sh
|
||||||
|
ENTRYPOINT ["bash", "/deploy.sh"]
|
||||||
|
|
|
@ -1,31 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
rm -rf AppDir
|
|
||||||
|
|
||||||
mkdir -p AppDir
|
|
||||||
mkdir -p AppDir/usr/bin
|
|
||||||
mkdir -p AppDir/usr/lib
|
|
||||||
mkdir -p AppDir/usr/share/tesseract-ocr/4.00/tessdata
|
|
||||||
cp -r /usr/share/tesseract-ocr/4.00/tessdata/* AppDir/usr/share/tesseract-ocr/4.00/tessdata
|
|
||||||
cp ../../checks-parser AppDir/usr/bin
|
|
||||||
|
|
||||||
echo \
|
|
||||||
"[Desktop Entry]
|
|
||||||
Name=Checks parser
|
|
||||||
Exec=usr/bin/checks-parser
|
|
||||||
Icon=checks-parser
|
|
||||||
Type=Application
|
|
||||||
Categories=Utility;" \
|
|
||||||
> AppDir/checks-parser.desktop
|
|
||||||
|
|
||||||
echo \
|
|
||||||
"#!/bin/bash
|
|
||||||
export TESSDATA_PREFIX=\$APPDIR/usr/share/tesseract-ocr/4.00/tessdata
|
|
||||||
|
|
||||||
\$APPDIR/usr/bin/checks-parser" \
|
|
||||||
> AppDir/AppRun
|
|
||||||
|
|
||||||
cp ../../icon.png AppDir/checks-parser.png
|
|
||||||
|
|
||||||
chmod +x AppDir/AppRun
|
|
||||||
cp ../../checks-parser AppDir/usr/bin
|
|
||||||
linuxdeployqt AppDir/usr/bin/checks-parser -no-copy-copyright-files -appimage
|
|
|
@ -3,7 +3,7 @@ FROM ubuntu:18.04
|
||||||
# Installing dependencies
|
# Installing dependencies
|
||||||
RUN apt update
|
RUN apt update
|
||||||
|
|
||||||
RUN DEBIAN_FRONTEND=noninteractive apt install -y qtbase5-dev openssl libmbedtls-dev tesseract-ocr tesseract-ocr-rus libopencv-dev libzbar-dev qttools5-dev nlohmann-json-dev libcurl4-openssl-dev libtesseract-dev libqrencode-dev
|
RUN DEBIAN_FRONTEND=noninteractive apt install -y qtbase5-dev openssl libmbedtls-dev libopencv-dev libzbar-dev qttools5-dev nlohmann-json-dev libcurl4-openssl-dev libqrencode-dev
|
||||||
RUN DEBIAN_FRONTEND=noninteractive apt install -y wget git cmake make gcc g++ fuse libboost-regex-dev
|
RUN DEBIAN_FRONTEND=noninteractive apt install -y wget git cmake make gcc g++ fuse libboost-regex-dev
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
@ -13,10 +13,8 @@ COPY assets ./assets
|
||||||
COPY check ./check
|
COPY check ./check
|
||||||
COPY exceptions ./exceptions
|
COPY exceptions ./exceptions
|
||||||
COPY goods ./goods
|
COPY goods ./goods
|
||||||
COPY image ./image
|
|
||||||
COPY image_redactor ./image_redactor
|
COPY image_redactor ./image_redactor
|
||||||
COPY output ./output
|
COPY output ./output
|
||||||
COPY parser ./parser
|
|
||||||
COPY settings ./settings
|
COPY settings ./settings
|
||||||
COPY scenes ./scenes
|
COPY scenes ./scenes
|
||||||
COPY net ./net
|
COPY net ./net
|
||||||
|
|
|
@ -3,9 +3,9 @@ FROM checks_parser_base_ubuntu
|
||||||
#for envsubst
|
#for envsubst
|
||||||
RUN DEBIAN_FRONTEND=noninteractive apt install -y gettext
|
RUN DEBIAN_FRONTEND=noninteractive apt install -y gettext
|
||||||
|
|
||||||
ARG pkgname=checks-parser
|
ARG pkgname=$name
|
||||||
ARG pkgver=1.0
|
ARG pkgver=$version
|
||||||
ARG revision=1
|
ARG revision
|
||||||
|
|
||||||
ARG pkg=${pkgname}_$pkgver-$revision
|
ARG pkg=${pkgname}_$pkgver-$revision
|
||||||
|
|
||||||
|
|
|
@ -6,18 +6,28 @@ services:
|
||||||
dockerfile: deploy/base-docker/ubuntu/Dockerfile
|
dockerfile: deploy/base-docker/ubuntu/Dockerfile
|
||||||
appimage:
|
appimage:
|
||||||
image: checks_parser_appimage:latest
|
image: checks_parser_appimage:latest
|
||||||
|
env_file: .env
|
||||||
build:
|
build:
|
||||||
dockerfile: deploy/appimage/Dockerfile
|
dockerfile: deploy/appimage/Dockerfile
|
||||||
context: .
|
context: .
|
||||||
|
args:
|
||||||
|
- pkgname=$name
|
||||||
|
- pkgver=$version
|
||||||
|
- revision=$revision
|
||||||
volumes:
|
volumes:
|
||||||
- ./binaries:/output
|
- ./binaries:/output
|
||||||
depends_on:
|
depends_on:
|
||||||
- base_ubuntu
|
- base_ubuntu
|
||||||
debian:
|
debian:
|
||||||
image: checks_parser_debian:latest
|
image: checks_parser_debian:latest
|
||||||
|
env_file: .env
|
||||||
build:
|
build:
|
||||||
dockerfile: deploy/debian/Dockerfile
|
dockerfile: deploy/debian/Dockerfile
|
||||||
context: .
|
context: .
|
||||||
|
args:
|
||||||
|
- pkgname=$name
|
||||||
|
- pkgver=$version
|
||||||
|
- revision=$revision
|
||||||
volumes:
|
volumes:
|
||||||
- ./binaries:/output
|
- ./binaries:/output
|
||||||
depends_on:
|
depends_on:
|
||||||
|
|
Loading…
Reference in New Issue