ScanTailor-Advanced / scantailor-advanced

ScanTailor Advanced is the version that merges the features of the ScanTailor Featured and ScanTailor Enhanced versions, brings new ones and fixes.
GNU General Public License v3.0
189 stars 7 forks source link

hey can anybody make a dockerfile for windows export? label:question #46

Closed konos93 closed 1 year ago

konos93 commented 1 year ago

for linux ubuntu i used this and worked https://github.com/ryanfb/docker_scantailor/blob/master/Dockerfile.advanced

FriedrichFroebel commented 1 year ago

The file you link seems to have nothing to do with ScanTailor or similar at all, but is used for vulnerability detection only. Why would you use an application running in Docker on Windows when there is a native Windows executable as for ScanTailor?

konos93 commented 1 year ago

The file you link seems to have nothing to do with ScanTailor or similar at all, but is used for vulnerability detection only. Why would you use an application running in Docker on Windows when there is a native Windows executable as for ScanTailor?

my mistake i corrected the link

konos93 commented 1 year ago

i am trying to build a combination on scantailor advanced and experimental because i want advanced with match size scale margins from experimental

FriedrichFroebel commented 1 year ago

Have you tried using the above Dockerfile on Windows? Judging from articles like https://dev.to/darksmile92/run-gui-app-in-linux-docker-container-on-windows-host-4kde, this should be possible in theory. (Disclaimer: I have never used Docker on Windows.)

konos93 commented 1 year ago

no i was trying to modify it and using it on oracle vm with ubuntu 22.04. the modification was this (i repost from an issue i opened there )

ok i run Dockerfile.earlyaccess but could not find DEB output ..still with these command it worked

osboxes@osboxes:~/Downloads/a/ryon$ xhost + access control disabled, clients can connect from any host

osboxes@osboxes:~/Downloads/a/ryon$ docker run -it -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY scantailoraaa

I also tried to make a windows package with NSIS so i run this . the output have something to install but the instalation didnt have all the elements and is not begin . FROM ubuntu:focal

ENV DEBIAN_FRONTEND=noninteractive RUN apt-get update && apt-get install -y gcc-7 g++-7 cmake libjpeg-dev libpng-dev libtiff5 libtiff5-dev libboost-test1.67-dev libboost-test1.67.0 qtbase5-dev libqt5svg5-dev qttools5-dev qttools5-dev-tools libqt5opengl5-dev libpthread-stubs0-dev nsis

added nsis

ENV SCANTAILOR_RELEASE=2019.8.16_EA ENV CXX=g++-7

RUN mkdir /scantailor-advanced ADD https://github.com/4lex4/scantailor-advanced/archive/${SCANTAILOR_RELEASE}.tar.gz /scantailor-advanced/scantailor.tar.gz RUN cd /scantailor-advanced && tar xzvf scantailor.tar.gz RUN cd /scantailor-advanced/scantailor-advanced-${SCANTAILOR_RELEASE} && mkdir build && cd build && cmake -G "Unix Makefiles" --build .. && make RUN cd /scantailor-advanced/scantailor-advanced-${SCANTAILOR_RELEASE}/build && make install

RUN cd /scantailor-advanced/scantailor-advanced-${SCANTAILOR_RELEASE}/build && cpack -G "NSIS64"

added cpack -G "NSIS64"

VOLUME /data WORKDIR /data

CMD ["scantailor"]