Jump to content

Launching OSBot in Java Docker container


Maxo

Recommended Posts

So i've been trying to setup a Java docker container for my bots,

following this thread:


My Dockerfile

 

FROM openjdk:8

ENV DISPLAY :0.0

RUN apt-get update

RUN apt-get install libx11-dev libxext-dev libxrender-dev libxrandr-dev libxtst-dev libxt-dev xvfb -y

RUN mkdir -p /root/OSBot/Data
RUN mkdir -p /root/OSBot/Scripts

RUN wget https://osbot.org/mvc/get -O /root/OSBot/osbot.jar

COPY map.bin /root/OSBot/Data
COPY script.jar /root/OSBot/Scripts
COPY entrypoint.sh /

ENTRYPOINT ["/entrypoint.sh"]



Im running into the following error:

Spoiler
Starting OSBot with no interfaces, inherits lowresource
Starting OSBot in low cpu mode
Exception in thread "AWT-EventQueue-0" java.lang.ExceptionInInitializerError
	at org.pushingpixels.neon.api.NeonCortex.getPlatform(NeonCortex.java:72)
	at org.pushingpixels.neon.api.NeonCortex.getDefaultFontPolicy(NeonCortex.java:104)
	at org.pushingpixels.substance.api.SubstanceCortex$GlobalScope.getFontPolicy(SubstanceCortex.java:510)
	at org.pushingpixels.substance.api.SubstanceCortex$GlobalScope.setSkin(SubstanceCortex.java:188)
	at org.pushingpixels.substance.api.SubstanceLookAndFeel.initialize(SubstanceLookAndFeel.java:209)
	at javax.swing.UIManager.setLookAndFeel(UIManager.java:538)
	at org.osbot.BotApplication.IiiiIiIiIII(rt:204)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
	at java.awt.EventQueue.access$500(EventQueue.java:97)
	at java.awt.EventQueue$3.run(EventQueue.java:709)
	at java.awt.EventQueue$3.run(EventQueue.java:703)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Caused by: java.awt.HeadlessException
	at sun.awt.HeadlessToolkit.getScreenResolution(HeadlessToolkit.java:226)
	at org.pushingpixels.neon.internal.contrib.jgoodies.looks.LookUtils.isLowResolution(LookUtils.java:196)
	at org.pushingpixels.neon.internal.contrib.jgoodies.looks.LookUtils.<clinit>(LookUtils.java:142)
	... 21 more
Exception in thread "AWT-EventQueue-0" java.awt.HeadlessException
	at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:204)
	at java.awt.Window.<init>(Window.java:536)
	at java.awt.Frame.<init>(Frame.java:420)
	at java.awt.Frame.<init>(Frame.java:385)
	at javax.swing.JFrame.<init>(JFrame.java:189)
	at org.osbot.oA.<init>(oy:208)
	at org.osbot.Boot.iIIiiiiiIII(mt:338)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
	at java.awt.EventQueue.access$500(EventQueue.java:97)
	at java.awt.EventQueue$3.run(EventQueue.java:709)
	at java.awt.EventQueue$3.run(EventQueue.java:703)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
tail: cannot open '/proc//fd/1' for reading: No such file or directory
tail: no files remaining

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...