Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make sure to pass MYSQL_PREPARED_STATEMENTS to container #128

Merged
merged 1 commit into from
Nov 22, 2024

Conversation

zzak
Copy link
Member

@zzak zzak commented Nov 21, 2024

We have to explicitly allow any environment variables we want to pass through to the container.

How to test

cd ~/code/rails
gh pr checkout 53697
rsync -av --progress /home/zzak/code/buildkite-config/ .buildkite
RUBY_IMAGE="ruby:3.3" docker compose -f .buildkite/docker-compose.yml build base

MYSQL_PREPARED_STATEMENTS=true IMAGE_NAME="buildkite-base" RUBY_IMAGE="ruby:3.3" docker compose -f .buildkite/docker-compose.yml run mysqldb runner activerecord 'rake mysql2:test'

Also tested without the env var.

@kamipo kamipo merged commit 2910727 into rails:main Nov 22, 2024
1 check was pending
@zzak zzak deleted the env-mysql_prepared_statements branch November 22, 2024 07:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants