alpine-mpich
alpine-mpich copied to clipboard
README instructions not working
Hi,
The instruction on README fail right after cloning the repository:
$ docker build -t nlknguyen/alpine-mpich base/
[+] Building 1.4s (10/21) docker:default
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 1.84kB 0.0s
=> [internal] load metadata for docker.io/library/alpine:3.4 0.9s
=> [internal] load build context 0.0s
=> => transferring context: 118B 0.0s
=> [ 1/18] FROM docker.io/library/alpine:3.4@sha256:b733d4a32c4da6a00a84 0.0s
=> CACHED [ 2/18] RUN apk update && apk upgrade && apk add --no-ca 0.0s
=> CACHED [ 3/18] RUN apk update && apk add ca-certificates && update-ca 0.0s
=> CACHED [ 4/18] RUN mkdir /tmp/mpich-src 0.0s
=> CACHED [ 5/18] WORKDIR /tmp/mpich-src 0.0s
=> ERROR [ 6/18] RUN wget http://www.mpich.org/static/downloads/3.2/mpic 0.4s
------
> [ 6/18] RUN wget http://www.mpich.org/static/downloads/3.2/mpich-3.2.tar.gz && tar xfz mpich-3.2.tar.gz && cd mpich-3.2 && ./configure --disable-fortran && make ${MPICH_MAKE_OPTIONS} && make install && rm -rf /tmp/mpich-src:
0.260 Connecting to www.mpich.org (172.64.150.140:80)
0.316 Connecting to www.mpich.org (172.64.150.140:443)
0.402 wget: error getting response: Connection reset by peer
------
Dockerfile:27
--------------------
26 | WORKDIR /tmp/mpich-src
27 | >>> RUN wget http://www.mpich.org/static/downloads/${MPICH_VERSION}/mpich-${MPICH_VERSION}.tar.gz \
28 | >>> && tar xfz mpich-${MPICH_VERSION}.tar.gz \
29 | >>> && cd mpich-${MPICH_VERSION} \
30 | >>> && ./configure ${MPICH_CONFIGURE_OPTIONS} \
31 | >>> && make ${MPICH_MAKE_OPTIONS} && make install \
32 | >>> && rm -rf /tmp/mpich-src
33 |
--------------------
ERROR: failed to solve: process "/bin/sh -c wget http://www.mpich.org/static/downloads/${MPICH_VERSION}/mpich-${MPICH_VERSION}.tar.gz && tar xfz mpich-${MPICH_VERSION}.tar.gz && cd mpich-${MPICH_VERSION} && ./configure ${MPICH_CONFIGURE_OPTIONS} && make ${MPICH_MAKE_OPTIONS} && make install && rm -rf /tmp/mpich-src" did not complete successfully: exit code: 1
This error is documented here:
https://github.com/Yelp/dumb-init/issues/73
I have fixed it by changing the Base Dockerfile from (line 11):
RUN apk update && apk add ca-certificates && update-ca-certificates && apk add openssl
To
RUN apk update\
&& apk add ca-certificates wget \
&& update-ca-certificates \
&& apk add openssl
Note change to apk add ca-certificates wget
Although is not working yet, as there is no python 3. More changes seem to be commited
Cheers