New question #696914 on SikuliX:
https://answers.launchpad.net/sikuli/+question/696914

Hello.

I would like to display the sikulix gui inside docker using xvfb,but 
unfortunately I get this error :

root@3cc9f4d62538:/addons# xvfb-run java -jar /sikulix/sikulixide-2.0.5.jar

[error] FileManager: writeStringToFile: did not work: 
/root/.Sikulix/SikulixStore/lastUsedJar.txt
/root/.Sikulix/SikulixStore/lastUsedJar.txt (No such file or directory)
[error] SikuliIDEI18N: no locale for en

this is my dockerfile :

FROM nvidia/cudagl:11.3.0-base-ubuntu20.04

LABEL Author="ZioMario <marietto2...@gmail.com>"
LABEL Title="Sikulix/Docker20.10.6/Ubuntu20.04"

# Enviorment variables

ENV HOME /home/sikulix
ENV DEBIAN_FRONTEND noninteractive
ENV LC_ALL C.UTF-8
ENV LANG C.UTF-8
ENV VIRTUAL_ENV=/protected-env
ENV PATH 
"/protected-env/bin:/bin:/bin/2.82/python/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"
ENV HW="GPU"
ENV JAVA_OPTIONS -Duser.home=/home/sikulix

RUN apt-get update && apt-get install -y curl apt-utils wget libopenexr-dev 
bzip2 build-essential zlib1g-dev libxmu-dev libxi-dev libxxf86vm-dev 
libfontconfig1 libxrender1 libgl1-mesa-glx xz-utils firefox default-jdk 
python3-numpy xvfb

RUN echo "Download and install SikuliX"

RUN  mkdir /sikulix
RUN curl -L 
https://launchpad.net/sikuli/sikulix/2.0.5/+download/sikulixide-2.0.5.jar -o 
/sikulix/sikulixide-2.0.5.jar
RUN xvfb-run java -jar /sikulix/sikulixide-2.0.5.jar

# We need the following command to make sure to access /dev/snd/*
 
RUN usermod -aG audio root

# Set the working directory
WORKDIR / 

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for SikuliX.

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to