0

Build failure with a non-zero code: 2

The docker file is provided below:

FROM ubuntu:bionic

RUN \
 apt-get update \
 && apt-get install -y -q curl gnupg \
 && curl -sSL 'http://p80.pool.sks-keyservers.net/pks/lookup?op=get&search=0x8AA7AF1F1091A5FD' | apt-key add -  \
 && echo 'deb [arch=amd64] http://repo.sawtooth.me/ubuntu/chime/stable bionic universe' >> /etc/apt/sources.list \
 && apt-get update

ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get install -y --allow-unauthenticated -q \
        python3-pip \
        python3-sawtooth-sdk \
        python3-sawtooth-rest-api \
        python3-sawtooth-cli \
        cron-apt \
        curl

RUN curl -sL https://deb.nodesource.com/setup_6.x | bash - \
    && apt-get install -y nodejs

RUN pip3 install \
    pylint \
    pycodestyle \
    grpcio-tools==1.29.0 \
    nose2 \
    bcrypt \
    pycrypto \
    rethinkdb \
    sanic \
    swagger-ui-py \
    itsdangerous

WORKDIR /project/sawtooth-marketplace

COPY sawbuck_app/package.json /project/sawtooth-marketplace/sawbuck_app/

RUN cd sawbuck_app/ && npm install

ENV PATH $PATH:/project/sawtooth-marketplace/bin

# Note that the context must be set to the project's root directory
COPY . .

RUN market-protogen

The following is the LOG from the server that is recorded, I don't know why the build is failing, can anybody guide please?

Service 'market-shell' failed to build: The command '/bin/sh -c apt-get update  && apt-get install -y -q curl gnupg  
&& curl -sSL 'http://p80.pool.sks-keyservers.net/pks/lookup?op=get&search=0x8AA7AF1F1091A5FD' | apt-key add -   
&& echo 'deb [arch=amd64] http://repo.sawtooth.me/ubuntu/chime/stable bionic universe'>> /etc/apt/sources.list  
&& apt-get update' returned a non-zero code: 2

......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................

Olaf115
  • 1
  • 1
  • The interesting error message will be before that. If it's a networking error, there may not be anything you can change in your Dockerfile to fix it; it'll be something with your host network or Docker setup. – David Maze Nov 01 '20 at 12:46

0 Answers0