Skip to content

Add locale to the service container #24923

Answered by airtower-luna
yamap55 asked this question in Actions
Discussion options

You must be logged in to vote

I’ve looked at the “Locale Customization” section of the Docker Hub page for the postgres image. The instructions there suggest to build your own container image with the locale you want.

To do that you will need a Dockerfile like this:

FROM postgres:11.5
RUN localedef -i ja_JP -c -f UTF-8 -A /usr/share/locale/locale.alias ja_JP.UTF-8

To use such an image as a service, you’d need to build it and push it to a public registry (for example GHCR) and refer to it with the image: keyword of the service.

Alternatively, you could commit the Dockerfile to your repository and build the image during your Actions job and then start the service with docker run.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Actions Build, test, and automate your deployment pipeline with world-class CI/CD Product Feedback
2 participants