尝试在 Vangrant Ubuntu 盒子中设置 ArangoDB 的无人值守安装。我已按照此处的无人值守安装说明进行操作:https://docs.arangodb.com/3.11/operations/installation/linux/
但是,这仅考虑密码提示,而不考虑数据库升级和备份数据库文件提示。如何消除这些声音?
好吧,我明白了。基本上你需要使用以下命令:
sudo debconf-get-selections | grep arangodb3
如果您收到“debconf-get-selections 命令未找到错误”,那么您需要像这样安装 debconf-utils 软件包:
sudo apt-get install -y debconf-utils
这将输出一个如下所示的列表:
arangodb3 arangodb3/password password
arangodb3 arangodb3/password_again password
arangodb3 arangodb3/backup boolean false
arangodb3 arangodb3/password_mismatch error
arangodb3 arangodb3/upgrade boolean true
这些是设置无人值守安装所需的所有密钥和类型。当我说按键和类型时,我指的是:
package/key type
arangodb3/backup boolean
在上面的例子中,包是arangodb3,键是backup,类型是boolean。然后在您的设置脚本中,您需要将其包含在您选择的值中:
echo arangodb3 arangodb3/backup boolean false | debconf-set-selections
echo arangodb3 arangodb3/upgrade boolean true | debconf-set-selections
添加到skinneejoe的答案中,我必须设置以下所有选择才能让版本
3.3.19
的安装在无人值守的情况下运行:
RUN echo arangodb3 arangodb3/password string somepassword | debconf-set-selections
RUN echo arangodb3 arangodb3/password_again string somepassword | debconf-set-selections
RUN echo arangodb3 arangodb3/upgrade boolean true | debconf-set-selections
RUN echo arangodb3 arangodb3/storage_engine string 1 | debconf-set-selections
RUN echo arangodb3 arangodb3/backup boolean false | debconf-set-selections
可以在以下位置找到选择:https://github.com/arangodb/arangodb/blob/master/Installation/debian/config.in