Created
April 9, 2024 13:25
-
-
Save lyashevska/324889c574859d720a9f782f08ae6752 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Bootstrap: docker | |
From: openjdk:17 | |
%arguments | |
NETLOGO_VERSION=6.3.0 | |
%setup | |
# Download Netlogo on host if not already present | |
wget -nc https://ccl.northwestern.edu/netlogo/{{NETLOGO_VERSION}}/NetLogo-{{NETLOGO_VERSION}}-64.tgz | |
%files | |
# Add Netlogo tar to container | |
NetLogo-{{NETLOGO_VERSION}}-64.tgz / | |
%environment | |
LC_ALL=C.UTF-8 | |
LANG=C.UTF-8 | |
DISPLAY=:14 | |
export PATH=/app/netlogo:$PATH | |
%post | |
mkdir -p /app/netlogo | |
tar xzf /NetLogo-{{NETLOGO_VERSION}}-64.tgz -C /app/netlogo --strip-components=1 | |
# Increase heap jvm memory to 8G | |
sed -i 's/Xmx1024m/Xmx8g/' /app/netlogo/netlogo-headless.sh | |
%runscript | |
# Command to run when container starts | |
echo "netlogo-headless.sh $*" | |
/bin/bash -c "/app/netlogo/netlogo-headless.sh $*" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment