【问题标题】:Ignore redmine prompt when building dockerfile构建dockerfile时忽略redmine提示
【发布时间】:2016-05-06 09:56:33
【问题描述】:

我正在构建 docker 文件:

FROM ubuntu:wily

RUN apt-get update
RUN apt-get install -y ruby 1.9.3
RUN apt-get install -y apache2 libapache2-mod-passenger
RUN apt-get install -y mysql-client
RUN apt-get install -y redmine redmine-mysql

最后一个命令将安装 Redmine,它会提示要求配置数据库连接,如下所示: 包配置

 ┌──────────────────────────┤ Configuring redmine ├──────────────────────────┐  
 │                                                                           │  
 │ The redmine/instances/default package must have a database installed and  │  
 │ configured before it can be used.  This can be optionally handled with    │  
 │ dbconfig-common.                                                          │  
 │                                                                           │  
 │ If you are an advanced database administrator and know that you want to   │  
 │ perform this configuration manually, or if your database has already      │  
 │ been installed and configured, you should refuse this option.  Details    │  
 │ on what needs to be done should most likely be provided in                │  
 │ /usr/share/doc/redmine/instances/default.                                 │  
 │                                                                           │  
 │ Otherwise, you should probably choose this option.                        │  
 │                                                                           │  
 │ Configure database for redmine/instances/default with dbconfig-common?    │  
 │                                                                           │  
 │                    <Yes>                       <No>                       │  
 │                                                                           │  
 └───────────────────────────────────────────────────────────────────────────┘  

问:在构建 Dockerfile 时,我不知道如何拒绝。我只想忽略这一点,继续运行其他命令并延迟配置数据库连接。

【问题讨论】:

    标签: docker redmine dockerfile


    【解决方案1】:

    RUN apt-get install -y redmine redmine-mysql => RUN DEBIAN_FRONTEND=noninteractive apt-get install -y redmine redmine-mysql

    【讨论】:

      猜你喜欢
      • 2015-08-23
      • 1970-01-01
      • 2021-03-26
      • 1970-01-01
      • 1970-01-01
      • 2018-01-02
      • 1970-01-01
      • 2020-06-27
      • 2014-06-17
      相关资源
      最近更新 更多