Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tic
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wenyuanbo
tic
Commits
9d741ef7
Unverified
Commit
9d741ef7
authored
Feb 06, 2020
by
Tianqi Chen
Committed by
GitHub
Feb 06, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CI][DOCKER] Update ci-gpu torch1.4 and onnx1.6 (#4826)
parent
b88de43d
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
21 additions
and
14 deletions
+21
-14
docker/Dockerfile.ci_gpu
+1
-3
docker/bash.sh
+0
-1
docker/build.sh
+9
-2
docker/install/ubuntu_install_onnx.sh
+2
-2
docker/install/ubuntu_install_python.sh
+5
-2
docker/install/ubuntu_install_python_package.sh
+1
-1
docker/install/ubuntu_install_sphinx.sh
+3
-3
No files found.
docker/Dockerfile.ci_gpu
View file @
9d741ef7
...
...
@@ -16,7 +16,7 @@
# under the License.
# CI docker GPU env
# tag: v0.
56
# tag: v0.
60
FROM nvidia/cuda:10.0-cudnn7-devel-ubuntu16.04
# Base scripts
...
...
@@ -87,8 +87,6 @@ RUN bash /install/ubuntu_install_caffe2.sh
COPY install/ubuntu_install_dgl.sh /install/ubuntu_install_dgl.sh
RUN bash /install/ubuntu_install_dgl.sh
RUN pip3 install "Pillow<7"
COPY install/ubuntu_install_vulkan.sh /install/ubuntu_install_vulkan.sh
RUN bash /install/ubuntu_install_vulkan.sh
...
...
docker/bash.sh
View file @
9d741ef7
...
...
@@ -94,4 +94,3 @@ ${DOCKER_BINARY} run --rm --pid=host\
${
DOCKER_IMAGE_NAME
}
\
bash
--login
/docker/with_the_same_user
\
${
COMMAND
[@]
}
docker/build.sh
View file @
9d741ef7
...
...
@@ -79,8 +79,14 @@ if [ "$#" -lt 1 ] || [ ! -e "${SCRIPT_DIR}/Dockerfile.${CONTAINER_TYPE}" ]; then
fi
# Use nvidia-docker if the container is GPU.
if
[[
"
${
CONTAINER_TYPE
}
"
==
*
"gpu"
*
]]
;
then
DOCKER_BINARY
=
"nvidia-docker"
if
[[
"
${
DOCKER_IMAGE_NAME
}
"
==
*
"gpu"
*
]]
;
then
if
!
type
"nvidia-docker"
1> /dev/null 2> /dev/null
then
DOCKER_BINARY
=
"docker"
CUDA_ENV
=
" --gpus all "
${
CUDA_ENV
}
else
DOCKER_BINARY
=
"nvidia-docker"
fi
else
DOCKER_BINARY
=
"docker"
fi
...
...
@@ -143,6 +149,7 @@ ${DOCKER_BINARY} run --rm --pid=host \
-e
"CI_BUILD_UID=
$(
id
-u
)
"
\
-e
"CI_BUILD_GROUP=
$(
id
-g
-n
)
"
\
-e
"CI_BUILD_GID=
$(
id
-g
)
"
\
${
CUDA_ENV
}
\
${
CI_DOCKER_EXTRA_PARAMS
[@]
}
\
${
DOCKER_IMG_NAME
}
\
bash
--login
docker/with_the_same_user
\
...
...
docker/install/ubuntu_install_onnx.sh
View file @
9d741ef7
...
...
@@ -21,11 +21,11 @@ set -u
set
-o
pipefail
# fix to certain version for now
pip3 install
onnx
==
1.
5
.0
pip3 install
onnx
==
1.
6
.0
pip3 install
onnxruntime
==
1.0.0
# torch depends on a number of other packages, but unhelpfully, does
# not expose that in the wheel!!!
pip3 install future
pip3 install
torch
==
1.
2.0
torchvision
==
0.4
.0
pip3 install
torch
==
1.
4.0
torchvision
==
0.5
.0
docker/install/ubuntu_install_python.sh
View file @
9d741ef7
...
...
@@ -6,9 +6,9 @@
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
...
...
@@ -35,3 +35,6 @@ rm -f /usr/bin/python3 && ln -s /usr/bin/python3.6 /usr/bin/python3
# Install pip
cd
/tmp
&&
wget
-q
https://bootstrap.pypa.io/get-pip.py
&&
python2 get-pip.py
&&
python3.6 get-pip.py
# Pin pip version
pip3 install
pip
==
19.3.1
docker/install/ubuntu_install_python_package.sh
View file @
9d741ef7
...
...
@@ -21,4 +21,4 @@ set -u
set
-o
pipefail
# install libraries for python package on ubuntu
pip3 install
pylint
==
1.9.4 six numpy pytest cython decorator scipy tornado typed_ast pytest mypy orderedset antlr4-python3-runtime attrs requests
"Pillow<7"
packaging
pip3 install
pylint
==
1.9.4 six numpy pytest cython decorator scipy tornado typed_ast pytest mypy orderedset antlr4-python3-runtime attrs requests
Pillow
packaging
docker/install/ubuntu_install_sphinx.sh
View file @
9d741ef7
...
...
@@ -6,9 +6,9 @@
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
...
...
@@ -20,4 +20,4 @@ set -e
set
-u
set
-o
pipefail
pip3 install sphinx sphinx-gallery sphinx_rtd_theme sphinx_autodoc_annotation matplotlib Image commonmark>
=
0.7.3 docutils>
=
0.11
pip3 install sphinx sphinx-gallery
==
0.4.0
sphinx_rtd_theme sphinx_autodoc_annotation matplotlib Image commonmark>
=
0.7.3 docutils>
=
0.11
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment