0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

openxpkiをdockerで動かした際にI18N_OPENXPKI_UI_APPLICATION_ERRORが出る問題

Last updated at Posted at 2023-10-21

問題

image.png

WebUIの言語を日本語に設定するとI18N_OPENXPKI_UI_APPLICATION_ERRORが表示される。

openxpki-config/webui/default.conf
...
locale_directory: /usr/share/locale/
# default_language: en_US <-- デフォルト(コメントアウト)
default_language: ja_JP   <-- 追加

[logger]
...

原因

openxpki3に日本語のロケールが入っていない

解決

  1. 日本語のロケールを追加するDockerfileを作成

    FROM whiterabbitsecurity/openxpki3
    
    RUN rm /etc/locale.gen && \
        (for lang in "en_US" "de_DE" "ja_JP"; do echo "$lang.UTF-8 UTF-8" >> /etc/locale.gen; done) && \
        dpkg-reconfigure --frontend=noninteractive locales
    
  2. docker-compose.ymlで使用するdocker imageを修正

    docker-compose.yml
    ...
      openxpki-server:
    #    restart: always
        # image: whiterabbitsecurity/openxpki3 <-- コメントアウト
        build:                                 <-- 追加
          context: .                           <-- 追加
          dockerfile: Dockerfile               <-- 追加
      command: /usr/bin/openxpkictl start --no-detach
    
    ...
    
      openxpki-client:
    #    restart: always
        # image: whiterabbitsecurity/openxpki3 <-- コメントアウト
        build:                                 <-- 追加
          context: .                           <-- 追加
          dockerfile: Dockerfile               <-- 追加
        command: /usr/bin/start-apache
    

参考

追記

Dockerfileを修正したらdocker compose buildしましょう!

docker compose build
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?