-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (19 loc) · 879 Bytes
/
Dockerfile
File metadata and controls
25 lines (19 loc) · 879 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Dockerfile for running Josh simulations with the fat JAR
# This provides a reproducible environment for simulation execution
FROM quay.io/lib/eclipse-temurin:21-jre
# Set metadata
LABEL maintainer="Josh Simulation Project"
LABEL description="Docker image for running Josh simulations"
LABEL version="1.0"
# Create working directory and set it to code directory
WORKDIR /code
# Copy the code directory contents
COPY code/ /code/
# Copy the fat JAR into the same directory
COPY joshsim-fat.jar /code/joshsim-fat.jar
# Default command runs a simulation with configurable parameters
# Can be overridden with docker run command
ENTRYPOINT ["java", "-jar", "joshsim-fat.jar"]
# Default arguments - run with 1 replicate
# Override with: docker run <image> run <your-file.josh> Main --replicates=10
CMD ["run", "invasive_grass_central_utah_local.josh", "Main", "--replicates=1"]