Skip to content

Docker Build Fails #426

@agroce

Description

@agroce

On Ubuntu 20.04, Docker build of deepstate-base fails:

$ sudo docker build -t deepstate-base -f docker/base/Dockerfile docker/base
[+] Building 0.9s (11/15)
 => [internal] load build definition from Dockerfile                                             0.0s
 => => transferring dockerfile: 1.41kB                                                           0.0s
 => [internal] load .dockerignore                                                                0.0s
 => => transferring context: 2B                                                                  0.0s
 => [internal] load metadata for [docker.io/library/ubuntu:18.04](http://docker.io/library/ubuntu:18.04)                                  0.6s
 => [auth] library/ubuntu:pull token for [registry-1.docker.io](http://registry-1.docker.io/)                                    0.0s
 => [ 1/10] FROM [docker.io/library/ubuntu:18.04@sha256:8aa9c2798215f99544d1ce7439ea9c3a6dfd82de](http://docker.io/library/ubuntu:18.04@sha256:8aa9c2798215f99544d1ce7439ea9c3a6dfd82de)  0.0s
 => [internal] load build context                                                                0.0s
 => => transferring context: 33B                                                                 0.0s
 => CACHED [ 2/10] RUN apt-get update     && apt-get -y install sudo     && useradd -ms /bin/ba  0.0s
 => CACHED [ 3/10] COPY /sudoers.txt /etc/sudoers                                                0.0s
 => CACHED [ 4/10] WORKDIR /home/user                                                            0.0s
 => CACHED [ 5/10] RUN chown -R user:user /home/user                                             0.0s
 => ERROR [ 6/10] RUN sudo apt update && sudo apt-get install -y build-essential     gcc-multil  0.3s
------
 > [ 6/10] RUN sudo apt update && sudo apt-get install -y build-essential     gcc-multilib g++-multilib cmake     python3-setuptools libffi-dev z3 python3-pip     git wget lsb-release software-properties-common     && sudo rm -rf /var/lib/apt/lists/*:
#0 0.246 sudo: /etc/sudoers is world writable
#0 0.246 sudo: no valid sudoers sources found, quitting
#0 0.246 sudo: unable to initialize policy plugin
------
Dockerfile:15
--------------------
  14 |     # Install general dependencies
  15 | >>> RUN sudo apt update && sudo apt-get install -y build-essential \
  16 | >>>     gcc-multilib g++-multilib cmake \
  17 | >>>     python3-setuptools libffi-dev z3 python3-pip \
  18 | >>>     git wget lsb-release software-properties-common \
  19 | >>>     && sudo rm -rf /var/lib/apt/lists/*
  20 |
--------------------
ERROR: failed to solve: process "/bin/sh -c sudo apt update && sudo apt-get install -y build-essential     gcc-multilib g++-multilib cmake     python3-setuptools libffi-dev z3 python3-pip     git wget lsb-release software-properties-common     && sudo rm -rf /var/lib/apt/lists/*" did not complete successfully: exit code: 1

Removing sudo from the relevant location allows build to proceed, but still fails in the DeepState build itself:

$ sudo docker build -t deepstate --build-arg make_j=6 -f ./docker/Dockerfile .
[+] Building 0.3s (9/19)
 => [internal] load build definition from Dockerfile                                             0.0s
 => => transferring dockerfile: 4.28kB                                                           0.0s
 => [internal] load .dockerignore                                                                0.0s
 => => transferring context: 177B                                                                0.0s
 => [internal] load metadata for [docker.io/library/deepstate-base:latest](http://docker.io/library/deepstate-base:latest)                         0.0s
 => CACHED [afl 1/3] FROM [docker.io/library/deepstate-base](http://docker.io/library/deepstate-base)                                       0.0s
 => [internal] load build context                                                                0.0s
 => => transferring context: 4.67kB                                                              0.0s
 => CACHED [afl 2/3] COPY ./docker/install_afl.sh ./                                             0.0s
 => CACHED [afl 3/3] RUN bash install_afl.sh 6                                                   0.0s
 => CACHED [eclipser 2/3] COPY ./docker/install_eclipser.sh ./                                   0.0s
 => ERROR [eclipser 3/3] RUN bash install_eclipser.sh 6                                          0.2s
------
 > [eclipser 3/3] RUN bash install_eclipser.sh 6:
#0 0.237 sudo: /etc/sudoers is world writable
#0 0.237 sudo: no valid sudoers sources found, quitting
#0 0.237 sudo: unable to initialize policy plugin
------
Dockerfile:17
--------------------
  15 |     COPY ./docker/install_eclipser.sh ./
  16 |     ARG make_j
  17 | >>> RUN bash install_eclipser.sh $make_j
  18 |
  19 |     # -- Angora
--------------------
ERROR: failed to solve: process "/bin/sh -c bash install_eclipser.sh $make_j" did not complete successfully: exit code: 1

Removing all obvious 'sudo's doesn't help.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions