mirror of
https://github.com/tensorflow/haskell.git
synced 2024-11-23 03:19:44 +01:00
Update Dockerfiles to 2.10.1
This commit is contained in:
parent
d9a32ad2bd
commit
66fb0ac625
5 changed files with 14 additions and 14 deletions
|
@ -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
|
git clone --recursive https://github.com/tensorflow/haskell.git tensorflow-haskell
|
||||||
cd tensorflow-haskell
|
cd tensorflow-haskell
|
||||||
docker build -t tensorflow/haskell:2.3.0 docker
|
docker build -t tensorflow/haskell:2.10.1 docker
|
||||||
# TODO: move the setup step to the docker script.
|
# TODO: move the setup step to the docker script.
|
||||||
stack --docker setup
|
stack --docker setup
|
||||||
stack --docker test
|
stack --docker test
|
||||||
|
@ -90,7 +90,7 @@ stack --docker build --exec Main
|
||||||
If you want to use GPU you can do:
|
If you want to use GPU you can do:
|
||||||
|
|
||||||
```
|
```
|
||||||
IMAGE_NAME=tensorflow/haskell:2.3.0-gpu
|
IMAGE_NAME=tensorflow/haskell:2.10.1-gpu
|
||||||
docker build -t $IMAGE_NAME docker/gpu
|
docker build -t $IMAGE_NAME docker/gpu
|
||||||
# TODO: move the setup step to the docker script.
|
# TODO: move the setup step to the docker script.
|
||||||
stack --docker --docker-image=$IMAGE_NAME setup
|
stack --docker --docker-image=$IMAGE_NAME setup
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
# stack to be installed on the host. This comes at the expense of
|
# stack to be installed on the host. This comes at the expense of
|
||||||
# flexibility.
|
# flexibility.
|
||||||
|
|
||||||
FROM tensorflow/tensorflow:2.3.0
|
FROM tensorflow/tensorflow:2.10.1
|
||||||
LABEL maintainer="TensorFlow authors <tensorflow-haskell@googlegroups.com>"
|
LABEL maintainer="TensorFlow authors <tensorflow-haskell@googlegroups.com>"
|
||||||
|
|
||||||
# The build context directory is the top of the tensorflow-haskell
|
# 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 && \
|
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 && \
|
unzip -d /usr/local protoc-3.13.0-linux-x86_64.zip bin/protoc && \
|
||||||
chmod 755 /usr/local/bin/protoc && \
|
chmod 755 /usr/local/bin/protoc && \
|
||||||
curl -O https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-linux-x86_64-2.3.0.tar.gz && \
|
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.3.0.tar.gz -C /usr/local && \
|
tar zxf libtensorflow-cpu-linux-x86_64-2.10.1.tar.gz -C /usr/local && \
|
||||||
ldconfig && \
|
ldconfig && \
|
||||||
stack setup && \
|
stack setup && \
|
||||||
stack test --only-dependencies
|
stack test --only-dependencies
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Prepare the image with:
|
# Prepare the image with:
|
||||||
# docker build -t tensorflow/haskell:2.3.0 docker
|
# docker build -t tensorflow/haskell:2.10.1 docker
|
||||||
FROM tensorflow/tensorflow:2.3.0
|
FROM tensorflow/tensorflow:2.10.1
|
||||||
LABEL maintainer="TensorFlow authors <tensorflow-haskell@googlegroups.com>"
|
LABEL maintainer="TensorFlow authors <tensorflow-haskell@googlegroups.com>"
|
||||||
|
|
||||||
RUN apt-get update
|
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 && \
|
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 && \
|
unzip -d /usr/local protoc-3.13.0-linux-x86_64.zip bin/protoc && \
|
||||||
chmod 755 /usr/local/bin/protoc && \
|
chmod 755 /usr/local/bin/protoc && \
|
||||||
curl -O https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-linux-x86_64-2.3.0.tar.gz && \
|
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.3.0.tar.gz -C /usr/local && \
|
tar zxf libtensorflow-cpu-linux-x86_64-2.10.1.tar.gz -C /usr/local && \
|
||||||
ldconfig
|
ldconfig
|
||||||
|
|
||||||
ENV LANG en_US.UTF-8
|
ENV LANG en_US.UTF-8
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Prepare the image with:
|
# Prepare the image with:
|
||||||
# docker build -t tensorflow/haskell:2.3.0-gpu docker/gpu
|
# docker build -t tensorflow/haskell:2.10.1-gpu docker/gpu
|
||||||
FROM tensorflow/tensorflow:2.3.0-gpu
|
FROM tensorflow/tensorflow:2.10.1-gpu
|
||||||
LABEL maintainer="TensorFlow authors <tensorflow-haskell@googlegroups.com>"
|
LABEL maintainer="TensorFlow authors <tensorflow-haskell@googlegroups.com>"
|
||||||
|
|
||||||
RUN apt-get update
|
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 && \
|
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 && \
|
unzip -d /usr/local protoc-3.13.0-linux-x86_64.zip bin/protoc && \
|
||||||
chmod 755 /usr/local/bin/protoc && \
|
chmod 755 /usr/local/bin/protoc && \
|
||||||
curl -O https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-gpu-linux-x86_64-2.3.0.tar.gz && \
|
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.3.0.tar.gz -C /usr/local && \
|
tar zxf libtensorflow-gpu-linux-x86_64-2.10.1.tar.gz -C /usr/local && \
|
||||||
ldconfig
|
ldconfig
|
||||||
|
|
||||||
ENV LANG en_US.UTF-8
|
ENV LANG en_US.UTF-8
|
||||||
|
|
|
@ -29,7 +29,7 @@ extra-include-dirs:
|
||||||
|
|
||||||
docker:
|
docker:
|
||||||
enable: false
|
enable: false
|
||||||
image: tensorflow/haskell:2.3.0
|
image: tensorflow/haskell:2.10.1
|
||||||
|
|
||||||
nix:
|
nix:
|
||||||
enable: false
|
enable: false
|
||||||
|
|
Loading…
Reference in a new issue