From 0dd5eaca2b6fdfcb49e591bb3f9be57ad9da4adb Mon Sep 17 00:00:00 2001 From: Andy Pfister Date: Tue, 14 Jan 2025 15:21:40 +0100 Subject: [PATCH] Customize FreeTDS configuration --- Dockerfile | 3 ++- bin/start.sh | 3 +++ freetds.conf | 3 +++ 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 freetds.conf diff --git a/Dockerfile b/Dockerfile index f58d178..30e212d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,7 +25,8 @@ FROM ruby:3.4.1-alpine AS app ENV RAILS_ENV="production" \ BUNDLE_PATH="/usr/local/bundle" \ - BUNDLE_WITHOUT="development test" + BUNDLE_WITHOUT="development test" \ + FREETDSCONF=/work/freetds.conf WORKDIR /work diff --git a/bin/start.sh b/bin/start.sh index c483a2d..3c1ff41 100755 --- a/bin/start.sh +++ b/bin/start.sh @@ -10,4 +10,7 @@ sleep 5 bundle exec rails db:migrate || bundle exec rails db:setup +touch /tmp/debug.log +tail -f /tmp/debug.log & + bundle exec puma diff --git a/freetds.conf b/freetds.conf new file mode 100644 index 0000000..479a429 --- /dev/null +++ b/freetds.conf @@ -0,0 +1,3 @@ +[global] +dump file = /tmp/debug.log +debug flags = 0x3008