-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Provide Dockers and final check for 0.1 release. (#178)
* provide a Docker file for KungFu GPU. * update Docker files. * fix ldconfig * Add GOBIN * Update README. * README for 0.1 release. * add commands for docker run.
- Loading branch information
Showing
6 changed files
with
50 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
FROM tensorflow/tensorflow:1.13.1-py3 | ||
|
||
RUN apt update && apt install -y cmake wget | ||
RUN wget -q https://dl.google.com/go/go1.13.linux-amd64.tar.gz && \ | ||
tar -C /usr/local -xf go1.13.linux-amd64.tar.gz && \ | ||
rm go1.13.linux-amd64.tar.gz | ||
ENV PATH=${PATH}:/usr/local/go/bin | ||
|
||
ADD . /src/kungfu | ||
WORKDIR /src/kungfu | ||
|
||
RUN pip3 install --no-index -U . | ||
RUN GOBIN=/usr/bin go install -v ./srcs/go/cmd/kungfu-run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,13 @@ | ||
FROM tensorflow/tensorflow:1.12.0-gpu-py3 AS builder | ||
FROM tensorflow/tensorflow:1.13.1-gpu-py3 | ||
|
||
ADD docker/sources.list.aliyun /etc/apt/sources.list | ||
RUN rm -fr /etc/apt/sources.list.d/* && \ | ||
apt update && \ | ||
apt install -y cmake wget | ||
RUN wget -q https://dl.google.com/go/go1.11.linux-amd64.tar.gz && \ | ||
tar -C /usr/local -xf go1.11.linux-amd64.tar.gz && \ | ||
rm go1.11.linux-amd64.tar.gz | ||
RUN apt update && apt install -y cmake wget | ||
RUN wget -q https://dl.google.com/go/go1.13.linux-amd64.tar.gz && \ | ||
tar -C /usr/local -xf go1.13.linux-amd64.tar.gz && \ | ||
rm go1.13.linux-amd64.tar.gz | ||
ENV PATH=${PATH}:/usr/local/go/bin | ||
|
||
ADD scripts /src/scripts | ||
RUN PREFIX=/usr /src/scripts/install-nccl.sh && \ | ||
rm /usr/lib/x86_64-linux-gnu/libnccl.so.2 | ||
|
||
ADD . /src/kungfu | ||
WORKDIR /src/kungfu | ||
|
||
# RUN pip3 install --no-index -U . | ||
RUN ldconfig /usr/local/cuda-10.0/targets/x86_64-linux/lib/stubs && pip3 install --no-index -U . | ||
RUN GOBIN=/usr/bin go install -v ./srcs/go/cmd/kungfu-run |