Skip to content

resource files incorrectly uploaded to Docker container #507

@phgupta

Description

@phgupta

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:

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions