Skip to content

Conversation

@AntoniaSzecsi
Copy link
Contributor

Issue #, if available:

Description of changes:

This PR removes the broken docker-compose template that referenced missing ../docker-helpers/ files and implements a simple approach for testing local RIC changes.

Changes:

  • Added Dockerfile.rie - Uses official Lambda Ruby base image to build and test RIC
  • Added scripts/test-rie.sh - Script to build Docker image and run RIE on port 9000
  • Added make test-rie target - One-command setup for RIC testing
  • Updated README - Added "Automated Local Testing" section with usage instructions
  • Removed test/integration/docker-compose.template.yml - Deleted broken template with missing dependencies

Target (OCI, Managed Runtime, both):

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@AntoniaSzecsi AntoniaSzecsi changed the title Implement automated local testing with RIE Implement local RIC running Sep 4, 2025
Dockerfile.rie Outdated
@@ -0,0 +1,16 @@
FROM public.ecr.aws/lambda/ruby:3.2
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's use the latest one?

COPY . ${LAMBDA_TASK_ROOT}/
WORKDIR ${LAMBDA_TASK_ROOT}

# Build and install the RIC gem
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we uninstall the previous gem just to be sure we're starting from a clean state?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right, it's a good practice

@AntoniaSzecsi AntoniaSzecsi requested a review from maxday September 4, 2025 15:59
Dockerfile.rie Outdated
@@ -0,0 +1,19 @@
FROM public.ecr.aws/lambda/ruby:3.3.2025.08.26.15
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's use public.ecr.aws/lambda/ruby:3.3 as this tag will be overiden every time we will release a new image for 3.3.

@AntoniaSzecsi AntoniaSzecsi merged commit 70a2045 into main Sep 5, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants