-
Notifications
You must be signed in to change notification settings - Fork 21
Description
In this line and this line, not all files from the resstock-3.4.0/resources
directory are being copied into the Docker container.
In particular, I was getting "resources/buildstock.rb file could not be found" errors in AWS CloudWatch logs. This file does exist in resstock-3.4.0/resources/
, but wasn’t copied over.
Fix:
I added the following line of code to explicitly include the full resources/ folder:
tar_f.add(buildstock_path / "resources", "resources")
Result:
This successfully copied the missing files. However, this led to the resources folder being added twice:
- once to /var/simdata/resources/
- once to /var/simdata/lib/resources/ as seen in this line
Question:
Can the lib/resources/ path be removed (line 509)? I'm not sure whether it's necessary or legacy since I haven't tested the behavior without it yet.
Platform (please complete the following information):
- Simulation platform: AWS
- BuildStockBatch version, branch, or sha: v2024.11.0
- resstock or comstock repo version, branch, or sha: v3.4.0
- Local Desktop OS: Mac