This repository was archived by the owner on Jan 16, 2024. It is now read-only.
Latest Images; Single Version/Build Refs; Test System; #1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This project was using the LambCI images and AWS SAM along with AWS are using these image name/formats:
The goal of this work is to leverage these images for our static gem builds, but also I want to update the developer experience here some. To that end, here are a few things I did to make this project easier to use and update if needed. Note: The MySQL2 gem is rock solid and has not been updated in a year. So the idea is that we want to easily be able to explore Ruby 3 or other
BUILD
variants when the time comes. For now, this update pushes our version0.5.3.1
to rubygems which still works on both 2.5 and 2.7. As promised, here is the list of newness.VERSION
file that controls which version of mysql2 we are building. Ex:0.5.3
BUILD
variant number for our build variant. Current1
0.5.3.1
docker-compose
to install & test build gem package using RUNTIME images.Docker Compose Test Setup
I am really happy with this pattern! From the outside, I wanted this interface:
If you look under the hood you will notice how I leverage the
COMPOSE_FILE
environment variable to target individualdocker-compose
YAML files. These both pull in MySQL via Docker so our little Ruby test script can be exercised. My favorite thing to do when testing DB is my SELECT 1 AS ONE pattern. Gets the job done.What Is Next?
I hope to duplicate this repo and do exactly the same thing for the
ruby-oci8
gem. I did a quick read of their guides and it appears they expose all the tools needed to build static gems.This means we do not have to have things like "Oracle Images", we just have gems to install.