Upgrade covering Rails 5.0 to Rails 8.1 #212
Open
ByteDecoder wants to merge 62 commits intojmazzi:masterfrom
Open
Upgrade covering Rails 5.0 to Rails 8.1 #212ByteDecoder wants to merge 62 commits intojmazzi:masterfrom
ByteDecoder wants to merge 62 commits intojmazzi:masterfrom
Conversation
…ere the main gems are cached.
…n Ruby 3.1+. This fixes the uninitialized constant error that occurs with ActiveSupport 6.x on newer Ruby versions.
…e Rails 6.x for Ruby 2.7, 3.0, 3.1, 3.2, 3.4 requires to be loaded manually, then changed after Rails 7+
…g these in the test build
- Add fix-ssh-mac.sh for immediate SSH config filtering - Add setup-ssh-container.sh to auto-configure SSH on container start - Update docker-compose.yml to mount SSH separately (.ssh-host) - Update devcontainer.json to run SSH setup on container creation - Add comprehensive documentation in MAC_M1_SSH_FIX.md - Update README with Mac M1 SSH troubleshooting section - Update QUICK_REFERENCE with SSH fix commands The issue was macOS-specific UseKeychain option in SSH config which is not supported in Linux containers. The fix filters this option out and sets GIT_SSH_COMMAND to use the filtered config. Works on both Mac M1 and Windows WSL2 without breaking existing setups.
issues_with_mac_m1
The psych gem (YAML parser) requires libyaml development headers to build native extensions. Without this package, ruby-lsp fails to install on Mac M1 with 'yaml.h not found' error. This fix ensures ruby-lsp can install successfully on both Mac M1 and Windows WSL2.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Since this Gem falls behind many Ruby and Rails versions, it is blocking a lot of projects, so this PR covers from Rails 5 to Rails 8.1, Ruby 2.7 to Ruby 3.4.
This pull request sets up a comprehensive VS Code Dev Container environment for CryptKeeper development, enabling seamless local development and testing with pre-configured Ruby, PostgreSQL, MySQL, and SQLite services. It includes all necessary configuration files, scripts, and documentation to streamline setup, database management, and troubleshooting, especially for Mac M1 users.
Dev Container Environment Setup
.devcontainer/Dockerfileto build a custom Ruby 3.4 container with all required system dependencies, user setup, and health checks for CryptKeeper development..devcontainer/docker-compose.ymlto orchestrate the Ruby app, PostgreSQL, and MySQL containers with persistent volumes, health checks, and platform specification for Mac M1 compatibility..devcontainer/devcontainer.jsonto define VS Code Dev Container settings, including extensions, environment variables, port forwarding, and post-creation/startup commands.Database Configuration and Initialization
.devcontainer/database.ymlas a sample database configuration for all supported adapters, and.devcontainer/init-postgres.sqlto initialize the requiredpgcryptoextension in PostgreSQL. [1] [2].devcontainer/.env.templateto set default environment variables for encryption keys and database connection details.Developer Documentation and Tooling
.devcontainer/README.mdwith detailed instructions for setup, database management, troubleshooting (especially for Mac M1 issues), and workflow tips..devcontainer/QUICK_REFERENCE.shas a handy script listing common commands for database access, testing, container management, and troubleshooting.Mac M1 Troubleshooting Scripts
.devcontainer/fix-postgres-mac.shto automate fixing PostgreSQLpgcryptoextension issues on Mac M1, and.devcontainer/fix-ssh-mac.shto resolve SSH configuration incompatibilities between macOS and Linux containers. [1] [2]