Docker image doesn't build.
docker build -t pydp:test .
lukasz@lukasz-XPS-15-9570:~/src/OpenMined/PyDP$ docker build -t pydp:test .
Sending build context to Docker daemon 43.09MB
Step 1/20 : ARG PYTHON_VERSION=3.7
Step 2/20 : FROM python:${PYTHON_VERSION}-slim-buster
---> 4cbd5021babc
Step 3/20 : ARG PYTHON_VERSION=$PYTHON_VERSION
---> Using cache
---> 2729569c870d
Step 4/20 : ARG BAZEL_VERSION=3.2.0
---> Using cache
---> f0467b6b0271
Step 5/20 : ARG BAZEL_INSTALLER=bazel-${BAZEL_VERSION}-installer-linux-x86_64.sh
---> Using cache
---> c05067f26094
Step 6/20 : ARG BAZEL_DOWNLOAD_URL=https://github.com/bazelbuild/bazel/releases/download
---> Using cache
---> 849452e5b2bc
Step 7/20 : ENV HOME=/root
---> Using cache
---> ff8b44b2b7ff
Step 8/20 : ENV PROJECT_DIR="${HOME}/PyDP"
---> Using cache
---> 486b6c04e248
Step 9/20 : ENV PATH="/root/bin:${PATH}"
---> Using cache
---> 29a402ea251e
Step 10/20 : WORKDIR ${HOME}
---> Using cache
---> 1c0ceef45215
Step 11/20 : RUN apt-get update && apt-get -y install sudo wget zip git software-properties-common gcc g++ build-essential python3-distutils pkg-config zlib1g-dev
---> Using cache
---> 74d354d49298
Step 12/20 : RUN wget ${BAZEL_DOWNLOAD_URL}/${BAZEL_VERSION}/${BAZEL_INSTALLER} && chmod +x ${BAZEL_INSTALLER} && ./${BAZEL_INSTALLER} --user && rm ${BAZEL_INSTALLER}
---> Using cache
---> 1827a6f0e508
Step 13/20 : RUN pip install --upgrade pip setuptools wheel && pip install pipenv
---> Using cache
---> ff45b0685cda
Step 14/20 : WORKDIR ${PROJECT_DIR}
---> Using cache
---> b15453954d8b
Step 15/20 : COPY . ${PROJECT_DIR}
---> Using cache
---> 91e2f45f8e11
Step 16/20 : RUN mkdir -p third_party && cd third_party && git clone https://github.com/google/differential-privacy.git
---> Using cache
---> 8d8d496297f3
Step 17/20 : RUN rm -rf third_party/differential-privacy/java && rm -rf third_party/differential-privacy/examples/java
---> Using cache
---> 5f5d8d5f8708
Step 18/20 : RUN pipenv --python ${PYTHON_VERSION} && pipenv run bazel build src/python:bindings_test --verbose_failures
---> Running in fce776eb81ec
Creating a virtualenv for this project…
Pipfile: /root/PyDP/Pipfile
Using /usr/local/bin/python3.7m (3.7.7) to create virtualenv…
⠴ Creating virtual environment...created virtual environment CPython3.7.7.final.0-64 in 314ms
creator CPython3Posix(dest=/root/.local/share/virtualenvs/PyDP-22CnszpO, clear=False, global=False)
seeder FromAppData(download=False, pip=latest, setuptools=latest, wheel=latest, via=copy, app_data_dir=/root/.local/share/virtualenv/seed-app-data/v1.0.1)
activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator
✔ Successfully created virtual environment!
Virtualenv location: /root/.local/share/virtualenvs/PyDP-22CnszpO
Extracting Bazel installation...
Starting local Bazel server and connecting to it...
Loading:
Loading: 0 packages loaded
Loading: 0 packages loaded
DEBUG: Rule 'pybind11_bazel' indicated that a canonical reproducible form can be obtained by modifying arguments shallow_since = "1588566482 -0700"
DEBUG: Repository pybind11_bazel instantiated at:
no stack (--record_rule_instantiation_callstack not enabled)
Repository rule git_repository defined at:
/root/.cache/bazel/_bazel_root/4be64fa43ea5ac81198543044285d919/external/bazel_tools/tools/build_defs/repo/git.bzl:195:33: in <toplevel>
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Analyzing: target //src/python:bindings_test (1 packages loaded, 0 targets configured)
Analyzing: target //src/python:bindings_test (17 packages loaded, 60 targets configured)
INFO: SHA256 (https://github.com/pybind/pybind11/archive/v2.5.0.zip) = 1859f121837f6c41b0c6223d617b85a63f2f72132bae3135a2aa290582d61520
DEBUG: Rule 'pybind11' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "1859f121837f6c41b0c6223d617b85a63f2f72132bae3135a2aa290582d61520"
DEBUG: Repository pybind11 instantiated at:
no stack (--record_rule_instantiation_callstack not enabled)
Repository rule http_archive defined at:
/root/.cache/bazel/_bazel_root/4be64fa43ea5ac81198543044285d919/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in <toplevel>
ERROR: /root/PyDP/src/bindings/BUILD:3:17: no such package '@google_dp//differential_privacy/proto': BUILD file not found in directory 'differential_privacy/proto' of external repository @google_dp. Add a BUILD file to a directory to mark it as a package. and referenced by '//src/bindings:pydp.so'
ERROR: Analysis of target '//src/python:bindings_test' failed; build aborted: Analysis failed
INFO: Elapsed time: 13.948s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (19 packages loaded, 80 targets configured)
FAILED: Build did NOT complete successfully (19 packages loaded, 80 targets configured)
The command '/bin/sh -c pipenv --python ${PYTHON_VERSION} && pipenv run bazel build src/python:bindings_test --verbose_failures' returned a non-zero code: 1
lukasz@lukasz-XPS-15-9570:~/src/OpenMined/PyDP$
Description
Docker image doesn't build.
How to Reproduce
System Information
Additional Context
Docker build output: