wix-toolset icon indicating copy to clipboard operation
wix-toolset copied to clipboard

on build error

Open sukeyisme opened this issue 7 years ago • 2 comments

Application tried to create a window, but no driver could be loaded. Make sure that your X server is running and that $DISPLAY is set correctly. Note: command 'wine dotnetfx.exe /q /c:install.exe /q' returned status 43. Aborting.

dockerfile : FROM suchja/wine ENV WINEDEBUG -all,err+all USER root COPY waitonprocess.sh /scripts/ RUN chmod +x /scripts/waitonprocess.sh COPY docker-entrypoint.sh /scripts/ RUN chmod +x /scripts/docker-entrypoint.sh RUN /scripts/docker-entrypoint.sh USER xclient RUN wine wineboot --init
&& /scripts/waitonprocess.sh wineserver
&& rm -rf ~/.wine
&& wine wineboot
&& winetricks --unattended dotnet20
&& /scripts/waitonprocess.sh wineserver

and run command: docker build --network=x11 --rm -f Dockerfile -t xxxxx

while x11 is my network created.

sukeyisme avatar Jan 18 '18 06:01 sukeyisme

@sukeyisme I'm no longer maintaining this package and thus forgot most of the details, sorry.

However, based on the error message and your dockerfile, I assume that wine tries to open a window and this is not allowed/possible during docker build!?! By saying that, have you tried to start and link to an x11-server? Maybe you get some additional information there. I'm really not sure whether it is possible to connect to x11server during docker build.

Another difference between your dockerfile and mine is that you call wine wineboot twice. My original file looks (at that part) like this:

RUN wine wineboot --init \
		&& /scripts/waitonprocess.sh wineserver \
		&& winetricks --unattended dotnet40 dotnet_verifier \
		&& /scripts/waitonprocess.sh wineserver

The call to the waitonwineprocess script is required after each call to wine or Winetricks, because those commands might start some work in the background and we need to wait before we can proceed.

Hope you have some luck on getting it to work.

suchja avatar Jan 18 '18 10:01 suchja

on building ,docker can not set --volumes-from ,only can set --network to link network.

sukeyisme avatar Jan 18 '18 11:01 sukeyisme