Containerized robocode! for more info, refer to https://github.com/levankhelo/robocode
170
This is simple containerized application of ROBOCODE.
See repository HERE.
You can simple pull gitlab repository, where docker-compose is stored, build and run it. You will be able to play your favorite game on any GUI supported device!
You can find full description HERE, or run following command:
if ! command -v xquartz > /dev/null; then brew install xquartz; else echo "Xquartz already installed"; fi
if ! command -v socat > /dev/null; then brew install socat; else echo "SOCAT already installed"; fi
kill -9 $(ps aux | grep socat | awk {'print $2'}) > /dev/null;
osascript -e 'tell application "Terminal" to do script "socat TCP-LISTEN:6000,reuseaddr,fork UNIX-CLIENT:\\\"$DISPLAY\\\""';
export ROBOCODE_LOCAL_IP=$(ifconfig | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0.1');
if ! -d ROBOCODE_Container; then mkdir ROBOCODE_Container && cd ROBOCODE_Container; fi
mkdir share;
docker run --hostname robocode --network=host -e DISPLAY=${ROBOCODE_LOCAL_IP}:0 -v share:/root/.local/share levankhelo/robocode:macos robocode
kill -9 $(ps aux | grep socat | awk {'print $2'}) > /dev/null;
Content type
Image
Digest
Size
409.5 MB
Last updated
over 5 years ago
docker pull levankhelo/robocode