docker file doesn't build
COPY BUILD *.BUILD *.md *.py LICENSE WORKSPACE $SRC_DIR/ doesn't run because those directories are missing. where are those files suppose to be located?
I should have read your issue before trying to build the docker image. It doesn't work for me either. Were you able to get it to work later on?
I am facing the same issue:
Downloading idna-2.10-py2.py3-none-any.whl (58 kB)
Collecting chardet<4,>=3.0.2
Downloading chardet-3.0.4-py2.py3-none-any.whl (133 kB)
Collecting enum34>=1.0.4; python_version < "3.4"
Downloading enum34-1.1.10-py2-none-any.whl (11 kB)
Collecting pyasn1<0.5.0,>=0.4.6
Downloading pyasn1-0.4.8-py2.py3-none-any.whl (77 kB)
Installing collected packages: pyasn1, pyasn1-modules, rsa, cachetools, setuptools, six, google-auth, protobuf, futures, googleapis-common-protos, certifi, urllib3, idna, chardet, requests, pytz, enum34, grpcio, google-api-core, google-cloud-videointelligence
Attempting uninstall: setuptools
Found existing installation: setuptools 20.7.0
Uninstalling setuptools-20.7.0:
Successfully uninstalled setuptools-20.7.0
Successfully installed cachetools-3.1.1 certifi-2020.6.20 chardet-3.0.4 enum34-1.1.10 futures-3.3.0 google-api-core-1.22.2 google-auth-1.22.0 google-cloud-videointelligence-1.15.0 googleapis-common-protos-1.52.0 grpcio-1.32.0 idna-2.10 protobuf-3.13.0 pyasn1-0.4.8 pyasn1-modules-0.2.8 pytz-2020.1 requests-2.24.0 rsa-4.5 setuptools-44.1.1 six-1.15.0 urllib3-1.25.10
Removing intermediate container 6619f60179e6
---> f62ef16daa78
Step 19/37 : RUN pip install --user psutil
---> Running in 61579217fff9
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Collecting psutil
Downloading psutil-5.7.2.tar.gz (460 kB)
Using legacy 'setup.py install' for psutil, since package 'wheel' is not installed.
Installing collected packages: psutil
Running setup.py install for psutil: started
Running setup.py install for psutil: finished with status 'done'
Successfully installed psutil-5.7.2
Removing intermediate container 61579217fff9
---> 2bca09fbed46
Step 20/37 : ENV SRC_DIR /googlesrc
---> Running in 44fe01860d43
Removing intermediate container 44fe01860d43
---> 0cf6814654d6
Step 21/37 : ENV BIN_DIR /google
---> Running in 0371c6e36aae
Removing intermediate container 0371c6e36aae
---> 5eb8e24cbc4c
Step 22/37 : RUN mkdir -p $SRC_DIR
---> Running in f1711dfd99c5
Removing intermediate container f1711dfd99c5
---> 8c501be5d377
Step 23/37 : COPY BUILD *.BUILD *.md *.py LICENSE WORKSPACE $SRC_DIR/
COPY failed: stat /var/lib/docker/tmp/docker-builder862598094/BUILD: no such file or directory
I could not find an official image on docker hub. But I did find this one. By first glance at the image layers it seems like it is an image based on the env/Dockerfile of this project :sweat_smile:
Ok, correction the docker image build IS working. You have to build the container from within the ingestion/ library. Please use the following steps:
cd ingestion/
docker build -t $DOCKER_IMAGE -f env/Dockerfile .
That should work!