【发布时间】: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