Closed petervdonovan closed 1 week ago
The recent changes introduce a mechanism in the DockerGenerator
class to copy user-specified files into Docker images. This is achieved by adding a new method generateCopyOfUserFiles
to generate COPY commands for each specified file. A new test file, RuntimeFilesPropertyContainerized.lf
, has been added to verify the functionality of reading, comparing contents, and printing a message based on the match result.
File Path | Summary |
---|---|
core/src/main/java/org/lflang/generator/... | Added generateCopyOfUserFiles method in DockerGenerator class, which generates COPY commands for user-specified files in Docker images. |
test/C/src/docker/RuntimeFilesPropertyContainerized.lf | Introduced a new test file for reading, comparing file contents, and printing a message based on the result. |
sequenceDiagram
participant User
participant DockerGenerator
participant Dockerfile
User->>DockerGenerator: Specify files to include in Docker image
DockerGenerator->>DockerGenerator: Call generateCopyOfUserFiles()
DockerGenerator->>Dockerfile: Add COPY commands for each file
Dockerfile->>DockerImage: Build Docker image with specified files
DockerImage->>User: Docker image with user-specified files included
Objective | Addressed | Explanation |
---|---|---|
Files specified under the files target property should be included in the Docker image (#2278) | ✅ |
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Closes #2278.
Summary by CodeRabbit
New Features
Tests