Add locale to the service container #24923
-
I used PostgreSQL service container.
Please tell me how to settings. github actions yaml settings
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
I’ve looked at the “Locale Customization” section of the Docker Hub page for the To do that you will need a Dockerfile like this:
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 Alternatively, you could commit the Dockerfile to your repository and build the image during your Actions job and then start the service with |
Beta Was this translation helpful? Give feedback.
-
thanks! I understood that this could not be achieved with a service container. I was able to run PostgreSQL with a github action. Dockerfile
GitHub Actions setting file
output
sample repository |
Beta Was this translation helpful? Give feedback.
-
Nice, thank you for sharing your solution! 🐱 |
Beta Was this translation helpful? Give feedback.
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:
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
.