Skip to content

Commit

Permalink
Merge pull request #1 from tradingAI/lw
Browse files Browse the repository at this point in the history
rm_source
  • Loading branch information
SnakeHacker authored Mar 20, 2020
2 parents d931942 + 4a9ef41 commit 5dd6c2a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 23 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
## ubuntu base images
- [bazel.Dockerfile](bazel.Dockerfile): `registry.cn-hangzhou.aliyuncs.com/aiminders/bazel:latest`
- ubuntu
- [bazel.Dockerfile](bazel.Dockerfile): `tradingai/bazel:latest`
- ubuntu
- golang
- python
- bazel
- [bazel.gpu.Dockerfile](bazel.gpu.Dockerfile): `registry.cn-hangzhou.aliyuncs.com/aiminders/bazel:gpu-latest`
- [bazel.gpu.Dockerfile](bazel.gpu.Dockerfile): `tradingai/bazel:gpu-latest`
- nvidia/cuda
- golang
- python
Expand Down
11 changes: 1 addition & 10 deletions bazel.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ ENV PYTHON_VERSION 3.7.6
ENV PROTOBUF_VERSION=3.6.1
ENV NODEJS_VERSION 12

# 更换为阿里云境像
RUN sed -i "s/archive.ubuntu.com/mirrors.aliyun.com/g" /etc/apt/sources.list

RUN (apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
build-essential \
Expand Down Expand Up @@ -56,8 +53,7 @@ RUN update-alternatives --install /usr/bin/pip pip /usr/local/python3/bin/pip3 1
RUN update-alternatives --config python
RUN update-alternatives --config pip
RUN pip install --upgrade pip
RUN (pip install -i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com grpcio numpy && \
touch /root/WORKSPACE)
RUN (pip install grpcio numpy && touch /root/WORKSPACE)

# Install Golang
RUN (curl -L https://dl.google.com/go/go$GOLANG_VERSION.linux-amd64.tar.gz | tar zx -C /usr/local)
Expand Down Expand Up @@ -109,11 +105,6 @@ rm -rf /root/.cache/pip

WORKDIR /root

RUN mkdir /root/.pip
RUN echo "[global]" >> /root/.pip/pip.conf
RUN echo "index-url=http://mirrors.aliyun.com/pypi/simple/" >> /root/.pip/pip.conf
RUN echo "trusted-host=mirrors.aliyun.com" >> /root/.pip/pip.conf

RUN update-alternatives --install /usr/bin/python3 python3 /usr/local/python3/bin/python3 1
RUN update-alternatives --install /usr/bin/pip3 pip3 /usr/local/python3/bin/pip3 1
RUN update-alternatives --config python3
Expand Down
11 changes: 1 addition & 10 deletions bazel.gpu.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ ENV PYTHON_VERSION 3.7.6
ENV PROTOBUF_VERSION=3.6.1
ENV NODEJS_VERSION 12

# 更换为阿里云境像
RUN sed -i "s/archive.ubuntu.com/mirrors.aliyun.com/g" /etc/apt/sources.list

RUN (apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
build-essential \
Expand Down Expand Up @@ -61,8 +58,7 @@ RUN update-alternatives --install /usr/bin/pip pip /usr/local/python3/bin/pip3 1
RUN update-alternatives --config python
RUN update-alternatives --config pip
RUN pip install --upgrade pip
RUN (pip install -i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com grpcio numpy && \
touch /root/WORKSPACE)
RUN (pip install grpcio numpy && touch /root/WORKSPACE)

# Install Golang
RUN (curl -L https://dl.google.com/go/go$GOLANG_VERSION.linux-amd64.tar.gz | tar zx -C /usr/local)
Expand Down Expand Up @@ -115,11 +111,6 @@ rm -rf /root/.cache/pip

WORKDIR /root

RUN mkdir /root/.pip
RUN echo "[global]" >> /root/.pip/pip.conf
RUN echo "index-url=http://mirrors.aliyun.com/pypi/simple/" >> /root/.pip/pip.conf
RUN echo "trusted-host=mirrors.aliyun.com" >> /root/.pip/pip.conf

RUN update-alternatives --install /usr/bin/python3 python3 /usr/local/python3/bin/python3 1
RUN update-alternatives --install /usr/bin/pip3 pip3 /usr/local/python3/bin/pip3 1
RUN update-alternatives --config python3
Expand Down

0 comments on commit 5dd6c2a

Please sign in to comment.