Updating docker file and experimenting with executable path

This commit is contained in:
vandomej 2025-09-11 14:39:41 -07:00
parent 2c42457cfb
commit 797b526f10
2 changed files with 15 additions and 0 deletions

View file

@ -1,17 +1,26 @@
# Use the Epic Games UE runtime as base # Use the Epic Games UE runtime as base
FROM ghcr.io/epicgames/unreal-engine:runtime FROM ghcr.io/epicgames/unreal-engine:runtime
USER root
# Set working directory # Set working directory
WORKDIR /app WORKDIR /app
# Copy your packages into the container # Copy your packages into the container
COPY Packages/ /app/Packages/ COPY Packages/ /app/Packages/
RUN chown -R ue4:ue4 /app && \
chmod -R 755 /app && \
chmod +x /app/Packages/Manager/evolved-npcs && \
chmod u+w /app/Packages/ -R # Add write permissions to Packages directory
# Install any additional dependencies if needed # Install any additional dependencies if needed
# RUN apt-get update && apt-get install -y <your-packages> # RUN apt-get update && apt-get install -y <your-packages>
# Set any environment variables # Set any environment variables
# ENV UE_PROJECT_ROOT=/app # ENV UE_PROJECT_ROOT=/app
USER ue4
# Default command (modify as needed) # Default command (modify as needed)
CMD ["/bin/bash"] CMD ["/bin/bash"]

View file

@ -846,6 +846,12 @@ async fn run_1v1_simulation(
trace!("Running simulation for {} vs {}", nn_1_id, nn_2_id); trace!("Running simulation for {} vs {}", nn_1_id, nn_2_id);
// Validate and log that executable path exists
if !Path::new(GAME_EXECUTABLE_PATH).exists() {
error!("Game executable not found at path: {}", GAME_EXECUTABLE_PATH);
return Err(anyhow!("Game executable not found at path: {}", GAME_EXECUTABLE_PATH).into());
}
// let _output = if display_simulation { // let _output = if display_simulation {
// Command::new(GAME_EXECUTABLE_PATH) // Command::new(GAME_EXECUTABLE_PATH)
// .arg(&config1_arg) // .arg(&config1_arg)