From 611984599d8cfc5c9164ca33d015b0951b87dd4b Mon Sep 17 00:00:00 2001 From: draichi Date: Thu, 10 Jan 2019 09:51:48 -0200 Subject: [PATCH 1/3] adding sonnet version and tensorflow_probability to 'pip install dependencies' --- Dockerfile | 30 +++++++++++++++++++++++------- 1 file changed, 23 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1710816..4a0f404 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,6 +4,7 @@ FROM ubuntu:18.04 # g++ (v. 5.4) does not work: https://github.com/tensorflow/tensorflow/issues/13308 RUN apt-get update && apt-get install -y \ curl \ + wget \ zip \ unzip \ software-properties-common \ @@ -28,14 +29,29 @@ RUN apt-get update && apt-get install -y \ libjpeg-dev # Install bazel -RUN echo "deb [arch=amd64] http://storage.googleapis.com/bazel-apt stable jdk1.8" | \ - tee /etc/apt/sources.list.d/bazel.list && \ - curl https://bazel.build/bazel-release.pub.gpg | \ - apt-key add - && \ - apt-get update && apt-get install -y bazel + # The Following Breaks for bazel 0.17.1 + # + # RUN echo "deb [arch=amd64] http://storage.googleapis.com/bazel-apt stable jdk1.8" | \ + # tee /etc/apt/sources.list.d/bazel.list && \ + # curl https://bazel.build/bazel-release.pub.gpg | \ + # apt-key add - && \ + # apt-get update && apt-get install -y bazel + # + # +RUN export BAZEL_VERSION=0.16.1 && \ + wget https://github.com/bazelbuild/bazel/releases/download/$BAZEL_VERSION/bazel-$BAZEL_VERSION-installer-linux-x86_64.sh && \ + sed -i 's@sudo@, @g' bazel-$BAZEL_VERSION-installer-linux-x86_64.sh && \ + chmod +x bazel-$BAZEL_VERSION-installer-linux-x86_64.sh &&\ + ./bazel-$BAZEL_VERSION-installer-linux-x86_64.sh --user + +ENV PATH="/root/bin:${PATH}" # Install TensorFlow and other dependencies -RUN pip install tensorflow==1.9.0 dm-sonnet +# ................................. +# sonnet's last version isn't stable yet +# see https://github.com/deepmind/scalable_agent/issues/28 +# see https://github.com/deepmind/graph_nets/issues/2 +RUN pip install tensorflow==1.9.0 tensorflow_probability dm-sonnet==1.23 # Build and install DeepMind Lab pip package. # We explicitly set the Numpy path as shown here: @@ -80,4 +96,4 @@ CMD ["sh", "-c", "python experiment.py --total_environment_frames=10000 --datase # Docker commands: # docker rm scalable_agent -v # docker build -t scalable_agent . -# docker run --name scalable_agent scalable_agent +# docker run --name scalable_agent scalable_agent \ No newline at end of file From fdf4bbbb0e448a8414c55bf1a46667f49217d6cf Mon Sep 17 00:00:00 2001 From: draichi Date: Fri, 11 Jan 2019 07:46:48 -0200 Subject: [PATCH 2/3] Revert "adding sonnet version and tensorflow_probability to 'pip install dependencies'" This reverts commit 611984599d8cfc5c9164ca33d015b0951b87dd4b. --- Dockerfile | 30 +++++++----------------------- 1 file changed, 7 insertions(+), 23 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4a0f404..1710816 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,6 @@ FROM ubuntu:18.04 # g++ (v. 5.4) does not work: https://github.com/tensorflow/tensorflow/issues/13308 RUN apt-get update && apt-get install -y \ curl \ - wget \ zip \ unzip \ software-properties-common \ @@ -29,29 +28,14 @@ RUN apt-get update && apt-get install -y \ libjpeg-dev # Install bazel - # The Following Breaks for bazel 0.17.1 - # - # RUN echo "deb [arch=amd64] http://storage.googleapis.com/bazel-apt stable jdk1.8" | \ - # tee /etc/apt/sources.list.d/bazel.list && \ - # curl https://bazel.build/bazel-release.pub.gpg | \ - # apt-key add - && \ - # apt-get update && apt-get install -y bazel - # - # -RUN export BAZEL_VERSION=0.16.1 && \ - wget https://github.com/bazelbuild/bazel/releases/download/$BAZEL_VERSION/bazel-$BAZEL_VERSION-installer-linux-x86_64.sh && \ - sed -i 's@sudo@, @g' bazel-$BAZEL_VERSION-installer-linux-x86_64.sh && \ - chmod +x bazel-$BAZEL_VERSION-installer-linux-x86_64.sh &&\ - ./bazel-$BAZEL_VERSION-installer-linux-x86_64.sh --user - -ENV PATH="/root/bin:${PATH}" +RUN echo "deb [arch=amd64] http://storage.googleapis.com/bazel-apt stable jdk1.8" | \ + tee /etc/apt/sources.list.d/bazel.list && \ + curl https://bazel.build/bazel-release.pub.gpg | \ + apt-key add - && \ + apt-get update && apt-get install -y bazel # Install TensorFlow and other dependencies -# ................................. -# sonnet's last version isn't stable yet -# see https://github.com/deepmind/scalable_agent/issues/28 -# see https://github.com/deepmind/graph_nets/issues/2 -RUN pip install tensorflow==1.9.0 tensorflow_probability dm-sonnet==1.23 +RUN pip install tensorflow==1.9.0 dm-sonnet # Build and install DeepMind Lab pip package. # We explicitly set the Numpy path as shown here: @@ -96,4 +80,4 @@ CMD ["sh", "-c", "python experiment.py --total_environment_frames=10000 --datase # Docker commands: # docker rm scalable_agent -v # docker build -t scalable_agent . -# docker run --name scalable_agent scalable_agent \ No newline at end of file +# docker run --name scalable_agent scalable_agent From 44626b47ec6839fa911aaa36474f196f5063ed05 Mon Sep 17 00:00:00 2001 From: draichi Date: Fri, 11 Jan 2019 07:50:58 -0200 Subject: [PATCH 3/3] updating just the dm-sonnet version to 1.23 --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 1710816..3db781f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -35,7 +35,7 @@ RUN echo "deb [arch=amd64] http://storage.googleapis.com/bazel-apt stable jdk1.8 apt-get update && apt-get install -y bazel # Install TensorFlow and other dependencies -RUN pip install tensorflow==1.9.0 dm-sonnet +RUN pip install tensorflow==1.9.0 dm-sonnet==1.23 # Build and install DeepMind Lab pip package. # We explicitly set the Numpy path as shown here: