From 9e93c2425ae039ef6b8bc18b9514b6041543abcb Mon Sep 17 00:00:00 2001 From: Jeroen Bransen Date: Mon, 14 Aug 2023 11:30:06 +0200 Subject: [PATCH] Update Dockerfiles to 2.12.0 --- README.md | 4 ++-- ci_build/Dockerfile | 6 +++--- docker/Dockerfile | 8 ++++---- docker/gpu/Dockerfile | 8 ++++---- stack.yaml | 2 +- 5 files changed, 14 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 75f0ef3..e6e447b 100644 --- a/README.md +++ b/README.md @@ -72,7 +72,7 @@ working, the following commands will compile and run the tests. ``` git clone --recursive https://github.com/tensorflow/haskell.git tensorflow-haskell cd tensorflow-haskell -docker build -t tensorflow/haskell:2.10.1 docker +docker build -t tensorflow/haskell:2.12.0 docker # TODO: move the setup step to the docker script. stack --docker setup stack --docker test @@ -90,7 +90,7 @@ stack --docker build --exec Main If you want to use GPU you can do: ``` -IMAGE_NAME=tensorflow/haskell:2.10.1-gpu +IMAGE_NAME=tensorflow/haskell:2.12.0-gpu docker build -t $IMAGE_NAME docker/gpu # TODO: move the setup step to the docker script. stack --docker --docker-image=$IMAGE_NAME setup diff --git a/ci_build/Dockerfile b/ci_build/Dockerfile index 9928e7e..c6b99f0 100644 --- a/ci_build/Dockerfile +++ b/ci_build/Dockerfile @@ -3,7 +3,7 @@ # stack to be installed on the host. This comes at the expense of # flexibility. -FROM tensorflow/tensorflow:2.10.1 +FROM tensorflow/tensorflow:2.12.0 LABEL maintainer="TensorFlow authors " # The build context directory is the top of the tensorflow-haskell @@ -36,8 +36,8 @@ RUN \ curl -O -L https://github.com/google/protobuf/releases/download/v3.13.0/protoc-3.13.0-linux-x86_64.zip && \ unzip -d /usr/local protoc-3.13.0-linux-x86_64.zip bin/protoc && \ chmod 755 /usr/local/bin/protoc && \ - curl -O https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-linux-x86_64-2.10.1.tar.gz && \ - tar zxf libtensorflow-cpu-linux-x86_64-2.10.1.tar.gz -C /usr/local && \ + curl -O https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-linux-x86_64-2.12.0.tar.gz && \ + tar zxf libtensorflow-cpu-linux-x86_64-2.12.0.tar.gz -C /usr/local && \ ldconfig && \ stack setup && \ stack test --only-dependencies diff --git a/docker/Dockerfile b/docker/Dockerfile index 32898a0..d8734aa 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,6 +1,6 @@ # Prepare the image with: -# docker build -t tensorflow/haskell:2.10.1 docker -FROM tensorflow/tensorflow:2.10.1 +# docker build -t tensorflow/haskell:2.12.0 docker +FROM tensorflow/tensorflow:2.12.0 LABEL maintainer="TensorFlow authors " RUN apt-get update @@ -31,8 +31,8 @@ RUN \ curl -O -L https://github.com/google/protobuf/releases/download/v3.13.0/protoc-3.13.0-linux-x86_64.zip && \ unzip -d /usr/local protoc-3.13.0-linux-x86_64.zip bin/protoc && \ chmod 755 /usr/local/bin/protoc && \ - curl -O https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-linux-x86_64-2.10.1.tar.gz && \ - tar zxf libtensorflow-cpu-linux-x86_64-2.10.1.tar.gz -C /usr/local && \ + curl -O https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-linux-x86_64-2.12.0.tar.gz && \ + tar zxf libtensorflow-cpu-linux-x86_64-2.12.0.tar.gz -C /usr/local && \ ldconfig ENV LANG en_US.UTF-8 diff --git a/docker/gpu/Dockerfile b/docker/gpu/Dockerfile index 3836d56..2594fba 100644 --- a/docker/gpu/Dockerfile +++ b/docker/gpu/Dockerfile @@ -1,6 +1,6 @@ # Prepare the image with: -# docker build -t tensorflow/haskell:2.10.1-gpu docker/gpu -FROM tensorflow/tensorflow:2.10.1-gpu +# docker build -t tensorflow/haskell:2.12.0-gpu docker/gpu +FROM tensorflow/tensorflow:2.12.0-gpu LABEL maintainer="TensorFlow authors " RUN apt-get update @@ -31,8 +31,8 @@ RUN \ curl -O -L https://github.com/google/protobuf/releases/download/v3.13.0/protoc-3.13.0-linux-x86_64.zip && \ unzip -d /usr/local protoc-3.13.0-linux-x86_64.zip bin/protoc && \ chmod 755 /usr/local/bin/protoc && \ - curl -O https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-gpu-linux-x86_64-2.10.1.tar.gz && \ - tar zxf libtensorflow-gpu-linux-x86_64-2.10.1.tar.gz -C /usr/local && \ + curl -O https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-gpu-linux-x86_64-2.12.0.tar.gz && \ + tar zxf libtensorflow-gpu-linux-x86_64-2.12.0.tar.gz -C /usr/local && \ ldconfig ENV LANG en_US.UTF-8 diff --git a/stack.yaml b/stack.yaml index 7cad120..ee53ca8 100644 --- a/stack.yaml +++ b/stack.yaml @@ -29,7 +29,7 @@ extra-include-dirs: docker: enable: false - image: tensorflow/haskell:2.10.1 + image: tensorflow/haskell:2.12.0 nix: enable: false