在phusion / baseimage上找不到的守望者Docker图像与烬cli

您好,我正在使用Docker镜像上的ember-cli应用程序。 当我运行使用的应用程序应用程序

ember server 

我收到以下消息

 version: 0.2.6 0.2.7 "Could not find watchman, falling back to NodeWatcher for file system events." 

我试过在Dockerfile

 #install homebrew RUN git clone https://github.com/Homebrew/linuxbrew.git ~/.linuxbrew ENV PATH="$HOME/.linuxbrew/bin:$HOME/local/m4/bin:$PATH" ENV MANPATH="$HOME/.linuxbrew/share/man:$MANPATH" ENV INFOPATH="$HOME/.linuxbrew/share/info:$INFOPATH" RUN brew install watchman 

它似乎已经正确安装..但我仍然收到消息说,它无法find“守望者”

我错过了什么?

另外,我按照安装看守人的方式尝试了以下内容

 RUN apt-get install -y automake RUN cd /tmp \ git clone https://github.com/facebook/watchman.git \ cd watchman \ ./autogen.sh \ ./configure \ make \ make install 

然后我得到一个警告..并抛出以下错误

 log.c: In function 'w_set_thread_name': log.c:47:12: error: ignoring return value of 'vasprintf', declared with attribute warn_unused_result [-Werror=unused-result] vasprintf(&name, fmt, ap); ^ cc1: all warnings being treated as errors make[1]: *** [watchman-log.o] Error 1 make: *** [all] Error 2 

你们有没有遇到过这个? 我怎么能得到这个固定..任何指针将是真棒。

看起来目前看守人的构build失败了,我尝试了最新的稳定构架,而且看起来像上面的步骤一样。 只要抓住v3.1,它应该工作:

 RUN git clone https://github.com/facebook/watchman.git \ && cd watchman \ && git checkout v3.1 \ && ./autogen.sh \ && ./configure \ && make \ && make install 
Interesting Posts