Hello,
I followed the Linux install instructions, dockerized it, VRS runs and works -nogui. Webserver works, everything. However, If I pass -createAdmin:admin -password:password so I can configure, it crashes.
....
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for 'System.Windows.Forms.XplatUI' threw an exception. ---> System.ArgumentNullException: Could not open display (X-Server required. Check your DISPLAY environment variable)
Parameter name: Display
at System.Windows.Forms.XplatUIX11.SetDisplay (System.IntPtr display_handle) [0x00408] in <f947c35ec06140ada7cad327eaf76f28>:0
at System.Windows.Forms.XplatUIX11..ctor () [0x00077] in <f947c35ec06140ada7cad327eaf76f28>:0
at System.Windows.Forms.XplatUIX11.GetInstance () [0x00019] in <f947c35ec06140ada7cad327eaf76f28>:0
at System.Windows.Forms.XplatUI..cctor () [0x00066] in <f947c35ec06140ada7cad327eaf76f28>:0
--- End of inner exception stack trace ---
at System.Windows.Forms.Application.EnableVisualStyles () [0x00006] in <f947c35ec06140ada7cad327eaf76f28>:0
at VirtualRadar.Program.Main (System.String[] args) [0x0001c] in <40366e5021b540f4a01d12b58a1880a9>:0
--
It's trying to open a window. Happens with both the current and preview. Since it's headless with no X11, obviously crashes and exits.
Is there documentation on the Configuration.xml?
====
Dockerfile
====
FROM arm32v7/mono:latest
RUN mkdir -p /opt/vrs \
&& curl -SL http://www.virtualradarserver.co.uk/Fil ... dar.tar.gz \
| tar -xzC /opt/vrs
RUN curl -SL http://www.virtualradarserver.co.uk/Fil ... gin.tar.gz \
| tar -xzC /opt/vrs
RUN curl -SL http://www.virtualradarserver.co.uk/Fil ... fig.tar.gz \
| tar -xC /opt/vrs
RUN curl -SL http://www.virtualradarserver.co.uk/Fil ... gin.tar.gz \
| tar -xzC /opt/vrs
RUN curl -SL http://www.virtualradarserver.co.uk/Fil ... gin.tar.gz \
| tar -xzC /opt/vrs
RUN curl -SL http://www.virtualradarserver.co.uk/Fil ... gin.tar.gz \
| tar -xzC /opt/vrs
RUN curl -SL http://www.virtualradarserver.co.uk/Fil ... gin.tar.gz \
| tar -xzC /opt/vrs
ADD ./logos.tar.gz /opt/vrs/Flags
ADD ./sideviews.tar.gz /opt/vrs/Silhouettes
RUN mkdir -p /config \
&& mkdir -p /root/.local/share \
&& ln -sf /config /root/.local/share/VirtualRadar
RUN chown -R root:root /opt/vrs
#ADD ./Configuration.xml /config
WORKDIR /opt/vrs
VOLUME /config
EXPOSE 8080
CMD ["mono", "/opt/vrs/VirtualRadar.exe", "-nogui"]
===
docker build -t vrs-arm-v5 .
Sending build context to Docker daemon 6.115MB
Step 1/16 : FROM arm32v7/mono:latest
---> 77f5874e5bb5
Step 2/16 : RUN mkdir -p /opt/vrs && curl -SL http://www.virtualradarserver.co.uk/Fil ... dar.tar.gz | tar -xzC /opt/vrs
---> Using cache
---> 89376da4a0a3
Step 3/16 : RUN curl -SL http://www.virtualradarserver.co.uk/Fil ... gin.tar.gz | tar -xzC /opt/vrs
---> Using cache
---> ead5ad760ab3
Step 4/16 : RUN curl -SL http://www.virtualradarserver.co.uk/Fil ... fig.tar.gz | tar -xC /opt/vrs
---> Using cache
---> e7d4298c7b64
Step 5/16 : RUN curl -SL http://www.virtualradarserver.co.uk/Fil ... gin.tar.gz | tar -xzC /opt/vrs
---> Using cache
---> a5fac5a308b1
Step 6/16 : RUN curl -SL http://www.virtualradarserver.co.uk/Fil ... gin.tar.gz | tar -xzC /opt/vrs
---> Using cache
---> ee0950b4410c
Step 7/16 : RUN curl -SL http://www.virtualradarserver.co.uk/Fil ... gin.tar.gz | tar -xzC /opt/vrs
---> Using cache
---> 9a5effe6963e
Step 8/16 : RUN curl -SL http://www.virtualradarserver.co.uk/Fil ... gin.tar.gz | tar -xzC /opt/vrs
---> Using cache
---> 73fb0caf33b1
Step 9/16 : ADD ./logos.tar.gz /opt/vrs/Flags
---> Using cache
---> 222e09f09a19
Step 10/16 : ADD ./sideviews.tar.gz /opt/vrs/Silhouettes
---> Using cache
---> dc42c868be2a
Step 11/16 : RUN mkdir -p /config && mkdir -p /root/.local/share && ln -sf /config /root/.local/share/VirtualRadar
---> Using cache
---> 9f469a762967
Step 12/16 : RUN chown -R root:root /opt/vrs
---> Using cache
---> 0d390bda8957
Step 13/16 : WORKDIR /opt/vrs
---> Using cache
---> a3e43e390aea
Step 14/16 : VOLUME /config
---> Using cache
---> c48f63d93cd9
Step 15/16 : EXPOSE 8080
---> Using cache
---> 44d375ada043
Step 16/16 : CMD ["mono", "/opt/vrs/VirtualRadar.exe", "-nogui"]
---> Running in 63e1964c1b29
---> 1e46ebb6b9ec
Removing intermediate container 63e1964c1b29
Successfully built 1e46ebb6b9ec
Successfully tagged vrs-arm-v5:latest
VRS mono headless inside Docker
-
- Posts: 28
- Joined: Wed Apr 08, 2015 6:51 pm
Re: VRS mono headless inside Docker
Hello
Did you get this sorted please? As I would love to put it into a docker.
Cheers
Mark
Did you get this sorted please? As I would love to put it into a docker.
Cheers
Mark
-
- Posts: 3
- Joined: Fri Dec 01, 2017 4:05 pm
Re: VRS mono headless inside Docker
No, and deeper testing showed the code is terribly inefficient. SQLite disk i/o is atrocious. Needs to be activated with :memory
No response from Dev or Community.
No response from Dev or Community.
-
- Posts: 1
- Joined: Fri Jul 20, 2018 4:10 pm
Re: VRS mono headless inside Docker
Hi all,
I have a working Docker image running on arm32v7 (Raspberry Pi 3 Model B). It is not perfect but it is currently working and I aim to improve it for my own uses.
Please see:
* https://github.com/TheBiggerGuy/docker-ads-b
* https://hub.docker.com/r/thebiggerguy/d ... tualradar/
Guy
ps. There is a dev branch with a container 1/3 the size (105Mb vs 306Mb) I am working on.
I have a working Docker image running on arm32v7 (Raspberry Pi 3 Model B). It is not perfect but it is currently working and I aim to improve it for my own uses.
Please see:
* https://github.com/TheBiggerGuy/docker-ads-b
* https://hub.docker.com/r/thebiggerguy/d ... tualradar/
Guy
ps. There is a dev branch with a container 1/3 the size (105Mb vs 306Mb) I am working on.