【发布时间】:2019-09-07 13:15:41
【问题描述】:
我有一个 Dockerfile 来创建一个 Jenkins 映像,我通过 method described elsewhere on SO 安装了 locale:1.4 插件。
问题在于 Jenkins 倾向于使用浏览器中设置的区域设置显示 UI da_DK
我使用 Locale 插件将其设置为 en_GB 并设置 忽略浏览器首选项并强制所有用户使用此语言(当条款都是英文的)
我的问题是如何在 dockerfile 中设置配置?
我的 Dockerfile
# https://github.com/jenkinsci/docker
#set executors
COPY executors.groovy /usr/share/jenkins/ref/init.groovy.d/executors.groovy
#add plugins
COPY plugins.txt /usr/share/jenkins/plugins.txt
RUN /usr/local/bin/install-plugins.sh < /usr/share/jenkins/plugins.txt
# drop back to the regular jenkins user - good practice
USER jenkins
EXPOSE 8095
【问题讨论】:
标签: jenkins dockerfile jenkins-plugins