Skip to content

Silence setlocale warnings in the Docker build - #64

Merged
venkat1701 merged 1 commit into
mainfrom
fix/docker-build-locale
Oct 6, 2026
Merged

venkat1701 merged 1 commit into
mainfrom
fix/docker-build-locale

Conversation

@venkat1701

Copy link
Copy Markdown
Collaborator

Closes #63

The native-image base image sets LANG=en_US.UTF-8 but only ships the C and C.utf8 locales. Every time mvnw runs LC_CTYPE=C printf, bash tries to apply the locale and prints a warning. That's 101 of them for a single ./mvnw --version, and hundreds in a full build.

The build stage now sets LANG=C.UTF-8. The runtime stage isn't touched.

Tested locally with a full image build:

  • setlocale warnings in the build log: 0
  • the runtime image has no LANG override and still runs as hstore
  • with clinical-claims.hql mounted as an init script: becomes healthy, Studio answers, the script runs, it shuts down cleanly, hstore check passes on the volume, and the data is there afterwards (24 patients)

The native-image base image sets LANG=en_US.UTF-8 without having that
locale, so bash printed a setlocale warning every time mvnw set LC_CTYPE.
The runtime stage is unchanged.
@venkat1701
venkat1701 merged commit ebf5b8f into main Oct 6, 2026
@venkat1701
venkat1701 deleted the fix/docker-build-locale branch October 6, 2026 01:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docker build log is flooded with setlocale warnings

1 participant