This directory contains configuration for a development container that provides a consistent environment for working on Dalli.
- Ruby 3.3+ environment with all necessary dependencies
- Memcached 1.6.34 installed with TLS support, matching the GitHub Actions CI environment
- VS Code extensions for Ruby development
When the container is built and started, the following setup occurs:
- The container is built with necessary dependencies but without memcached
- The
setup.shscript runs after the container is created which:- Installs memcached 1.6.34 using the same script used in GitHub Actions
- Sets up environment variables needed for tests
- Installs gem dependencies
Once the container is running, you can run tests with:
bundle exec rake testTo run specific test files:
bundle exec ruby -Ilib:test test/path/to/test_file.rbIf you encounter issues with tests:
- Verify memcached is running:
ps aux | grep memcached - Check memcached version:
memcached -h | head -1 - Try restarting memcached:
sudo service memcached restart - Check logs for any errors:
sudo journalctl -u memcached
The following memcached ports are forwarded for testing:
- 11211 - Default memcached port
- 11212-11215 - Additional ports used by tests