Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tensorflow/Dockerfile.cpu: no such file or directory #9

Open
tobigithub opened this issue Nov 26, 2015 · 1 comment
Open

tensorflow/Dockerfile.cpu: no such file or directory #9

tobigithub opened this issue Nov 26, 2015 · 1 comment

Comments

@tobigithub
Copy link
Owner

Instructions fail from
https://github.com/tensorflow/tensorflow/tree/master/tensorflow/tools/docker

$ git clone https://github.com/tensorflow/tensorflow
$ docker build -t $USER/tensorflow-full -f Dockerfile.cpu .
ubuntu@ubuntu-virtual-machine:~/tensorflow$ docker build -t $USER/tensorflow-full -f Dockerfile.cpu .
unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /home/ubuntu/tensorflow/Dockerfile.cpu: no such file or directory

then

ubuntu@ubuntu-virtual-machine:~/tensorflow/tensorflow/tools/docker$ ls -l
total 44
-rw-rw-r-- 1 ubuntu ubuntu  569 Nov 26 00:01 BUILD
-rw-rw-r-- 1 ubuntu ubuntu 2379 Nov 26 00:01 Dockerfile.cpu
-rw-rw-r-- 1 ubuntu ubuntu  908 Nov 26 00:01 Dockerfile.gpu_base
-rw-rw-r-- 1 ubuntu ubuntu 1130 Nov 26 00:01 Dockerfile.lite
-rwxrwxr-x 1 ubuntu ubuntu 1359 Nov 26 00:01 docker_run_gpu.sh
-rw-rw-r-- 1 ubuntu ubuntu    0 Nov 26 00:01 __init__.py
-rw-rw-r-- 1 ubuntu ubuntu  815 Nov 26 00:01 jupyter_notebook_config.py
-rw-rw-r-- 1 ubuntu ubuntu  586 Nov 26 00:01 LICENSE
drwxrwxr-x 2 ubuntu ubuntu 4096 Nov 26 00:01 notebooks
-rw-rw-r-- 1 ubuntu ubuntu 3294 Nov 26 00:01 README.md
-rwxrwxr-x 1 ubuntu ubuntu  713 Nov 26 00:01 run_jupyter.sh
-rw-rw-r-- 1 ubuntu ubuntu 1016 Nov 26 00:01 simple_console.py
ubuntu@ubuntu-virtual-machine:~/tensorflow/tensorflow/tools/docker$ 
sudo docker build -t $USER/tensorflow-full -f Dockerfile.cpu .

gives

ubuntu@ubuntu-virtual-machine:~/tensorflow/tensorflow/tools/docker$ sudo docker build -t $USER/tensorflow-full -f Dockerfile.cpu .
Sending build context to Docker daemon 355.8 kB
Step 1 : FROM b.gcr.io/tensorflow/tensorflow
 ---> 217daf2537d2
Step 2 : MAINTAINER Craig Citro <[email protected]>
 ---> Using cache
 ---> c2360ebde114
Step 3 : RUN apt-get update && apt-get install -y         g++         pkg-config         python-dev         python-numpy         python-pip         software-properties-common         swig         unzip         wget         zip         zlib1g-dev         &&     apt-get clean &&     rm -rf /var/lib/apt/lists/*
 ---> Using cache
 ---> 7ec3c49697a3
Step 4 : RUN add-apt-repository -y ppa:openjdk-r/ppa &&     apt-get update &&     apt-get install -y openjdk-8-jdk openjdk-8-jre-headless &&     apt-get clean &&     rm -rf /var/lib/apt/lists/*
 ---> Using cache
 ---> 786647746054
Step 5 : RUN echo "startup --batch" >>/root/.bazelrc
 ---> Using cache
 ---> 99290d26b5eb
Step 6 : RUN echo "build --spawn_strategy=standalone --genrule_strategy=standalone"     >>/root/.bazelrc
 ---> Using cache
 ---> 2d5f8fd5f439
Step 7 : ENV BAZELRC /root/.bazelrc
 ---> Using cache
 ---> 024084c8fcec
Step 8 : ENV BAZEL_VERSION 0.1.1
 ---> Using cache
 ---> d1cea0cd4f37
Step 9 : WORKDIR /
 ---> Using cache
 ---> 1041a88b5eae
Step 10 : RUN mkdir /bazel &&     cd /bazel &&     wget https://github.com/bazelbuild/bazel/releases/download/$BAZEL_VERSION/bazel-$BAZEL_VERSION-installer-linux-x86_64.sh &&     wget -O /bazel/LICENSE.txt https://raw.githubusercontent.com/bazelbuild/bazel/master/LICENSE.txt &&     chmod +x bazel-*.sh &&     ./bazel-$BAZEL_VERSION-installer-linux-x86_64.sh &&     cd / &&     rm -f /bazel/bazel-$BAZEL_VERSION-installer-linux-x86_64.sh
 ---> Using cache
 ---> 8143b28e5a79
Step 11 : WORKDIR /tensorflow
 ---> Using cache
 ---> 760322cf243f
Step 12 : COPY tensorflow /tensorflow
lstat tensorflow: no such file or directory
ubuntu@ubuntu-virtual-machine:~/tensorflow/tensorflow/tools/docker$ sudo docker build -t $USER/tensorflow-full -f Dockerfile.cpu .

or

docker build -t $USER/tensorflow-full -f tensorflow/tensorflow/tools/docker/Dockerfile.cpu .

gives

ubuntu@ubuntu-virtual-machine:~$ docker build -t $USER/tensorflow-full -f tensorflow/tensorflow/tools/docker/Dockerfile.cpu .
Error checking context: 'can't stat '/home/ubuntu/.cache/dconf''.
ubuntu@ubuntu-virtual-machine:~$ 
@tobigithub
Copy link
Owner Author

Documentation at is wrong
it should be

git clone https://github.com/tensorflow/tensorflow
sudo docker build -t $USER/tensorflow-full -f tensorflow/tensorflow/tools/docker/Dockerfile.cpu .

who cares.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant