重复"检查bsd兼容的安装......"用debian jessie在docker容器中运行./configure

时间:2014-06-16 17:13:43

标签: docker autoconf

我在debian:jesse docker容器中运行./configure脚本时遇到问题。当我在ubuntu实例上以交互方式运行脚本时,该脚本可以正常工作。但是,当我将它作为docker构建脚本的一部分运行时,我得到以下内容

checking for a BSD-compatible install...
checking for a BSD-compatible install...
checking for a BSD-compatible install...
checking for a BSD-compatible install...
checking for a BSD-compatible install...

无休止地重复,直到容器空间不足。你知道造成这种情况的原因吗?

这是docker文件

FROM debian:jessie
MAINTAINER Michael Barton, mail@...
RUN apt-get update -y
RUN apt-get install -y wget
RUN wget --quiet http://hku-idba.googlecode.com/files/idba-1.1.1.tar.gz -O /tmp/idba-1.1.1.tar.gz

RUN apt-get install -y gcc build-essential make sed autoconf

ADD install /usr/local/bin/
RUN /usr/local/bin/install

ADD run /usr/local/bin/
ENTRYPOINT ["/usr/local/bin/run"]

这是安装脚本

#!/bin/bash

set -o nounset

VERSION='1.1.1'
DIR="idba-${VERSION}"

TMP=$(mktemp -d)

cd ${TMP}
tar xzf "/tmp/${DIR}.tar.gz"
cd ${DIR}

# Required to allow for longer read lengths
sed --in-place 's/kMaxShortSequence = 128;/kMaxShortSequence = 1024;/' src/sequence/short_sequence.h

./configure
make

mv bin /usr/local/idba

0 个答案:

没有答案