Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
ci
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bioroboticslab
automation
ci
Commits
d9c1c5ea
Commit
d9c1c5ea
authored
3 years ago
by
calrama
Browse files
Options
Downloads
Patches
Plain Diff
Fix mistakenly master-merged disabling of several packages
parent
a949faab
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#43184
passed
3 years ago
Stage: build
Stage: deploy
Stage: trigger
Pipeline: interfaces
#43186
Pipeline: behavior_loader
#43185
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
centos/Dockerfile
+88
-88
88 additions, 88 deletions
centos/Dockerfile
with
88 additions
and
88 deletions
centos/Dockerfile
+
88
−
88
View file @
d9c1c5ea
...
...
@@ -319,94 +319,94 @@ RUN yum install -y \
cd
..
&&
\
rm
-rf
opencv-
${
OpenCV_VERSION
}*
opencv_contrib-
${
OpenCV_VERSION
}*
#
# MXNet
#
ENV MXNet_DIR=/opt/mxnet-1.6.0
#
ADD patches/mxnet-1.6.0-manual-cuda-arch-flags.patch /opt/mxnet-1.6.0-manual-cuda-arch-flags.patch
#
RUN version=1.6.0 && \
#
source /etc/profile && \
#
source scl_source enable devtoolset-8 && \
#
cd /opt && \
#
curl -sSLO https://github.com/apache/incubator-mxnet/releases/download/${version}/apache-mxnet-src-${version}-incubating.tar.gz && \
#
tar -xf apache-mxnet-src-${version}-incubating.tar.gz && \
#
rm -f apache-mxnet-src-${version}-incubating.tar.gz && \
#
mv apache-mxnet-src-${version}-incubating mxnet-${version} && \
#
cd mxnet-${version} && \
#
patch -p1 -i /opt/mxnet-1.6.0-manual-cuda-arch-flags.patch && \
#
cmake -S. -B build -G Ninja \
#
-D CMAKE_CXX_STANDARD=14 -D USE_CXX14_IF_AVAILABLE=ON \
#
-D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr/local \
#
-D CMAKE_CUDA_COMPILER=/usr/local/cuda-10.1/bin/nvcc \
#
-D USE_CUDA=ON -D USE_CUDNN=ON -D USE_NCCL=OFF \
#
-D CUDA_ARCH_FLAGS="-gencode;arch=compute_61,code=sm_61;-gencode;arch=compute_30,code=compute_30;-gencode;arch=compute_52,code=compute_52;-gencode;arch=compute_75,code=compute_75" \
#
-D USE_OPENCV=ON -D USE_OPENMP=ON \
#
-D USE_LAPACK=ON -D USE_MKL_IF_AVAILABLE=OFF \
#
-D USE_DIST_KVSTORE=OFF \
#
-D USE_CPP_PACKAGE=ON \
#
-D USE_SIGNAL_HANDLER=ON \
#
-D ENABLE_CUDA_RTC=ON \
#
-D BUILD_CPP_EXAMPLES=OFF \
#
-D USE_GPERFTOOLS=OFF \
#
-D USE_JEMALLOC=OFF \
#
&& \
#
rm /opt/mxnet-1.6.0-manual-cuda-arch-flags.patch && \
#
ninja -C build
#
# pybind11
#
ARG pybind11_VERSION=2.7.1
#
RUN source /etc/profile && \
#
cd /tmp && \
#
curl -sSL -o pybind11-${pybind11_VERSION}.tar.gz https://github.com/pybind/pybind11/archive/v${pybind11_VERSION}.tar.gz && \
#
tar -xf pybind11-${pybind11_VERSION}.tar.gz && \
#
cd pybind11-${pybind11_VERSION} && \
#
cmake -S. -B build -G Ninja \
#
-DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local \
#
-DPYBIND11_TEST=off \
#
&& \
#
ninja -C build install && \
#
cd .. && \
#
rm -rf pybind11-${pybind11_VERSION}*
#
# pylon (Basler cameras)
#
ARG pylon_VERSION=5.2.0.13457
#
RUN cd /tmp && \
#
curl -sSLO https://www.baslerweb.com/fp-1551786516/media/downloads/software/pylon_software/pylon-${pylon_VERSION}-x86_64.tar.gz && \
#
tar -xf pylon-${pylon_VERSION}-x86_64.tar.gz && \
#
cd pylon-${pylon_VERSION}-x86_64 && \
#
tar -xf pylonSDK-${pylon_VERSION}-x86_64.tar.gz && \
#
mv pylon5 /opt/pylon5 && \
#
cd .. && \
#
rm -rf pylon-${pylon_VERSION}*
#
ADD bash/pylon.sh /etc/profile.d/pylon.sh
#
# CGAL
#
ARG CGAL_VERSION=5.2
#
RUN yum install -y \
#
gmp-devel \
#
mpfr-devel \
#
&& \
#
yum clean all && \
#
source /etc/profile && \
#
cd /tmp && \
#
curl -sSLO https://github.com/CGAL/cgal/releases/download/v${CGAL_VERSION}/CGAL-${CGAL_VERSION}.tar.xz && \
#
tar -xf CGAL-${CGAL_VERSION}.tar.xz && \
#
cd CGAL-${CGAL_VERSION} && \
#
cmake -S. -B build -G Ninja \
#
-DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local \
#
-DCGAL_INSTALL_LIB_DIR=lib -DCGAL_INSTALL_CMAKE_DIR="lib/cmake/CGAL" \
#
-DWITH_CGAL_Qt5=ON \
#
&& \
#
ninja -C build install && \
#
cd .. && \
#
rm -rf CGAL-${CGAL_VERSION}*
#
# glm
#
ARG glm_VERSION=0.9.9.8
#
RUN cd /tmp && \
#
curl -sSLO https://github.com/g-truc/glm/releases/download/${glm_VERSION}/glm-${glm_VERSION}.zip && \
#
unzip glm-${glm_VERSION}.zip && \
#
mv glm /opt/glm && \
#
rm -rf glm* && \
#
echo "export glm_DIR=/opt/glm/cmake/glm" > /etc/profile.d/glm.sh
# MXNet
ENV
MXNet_DIR=/opt/mxnet-1.6.0
ADD
patches/mxnet-1.6.0-manual-cuda-arch-flags.patch /opt/mxnet-1.6.0-manual-cuda-arch-flags.patch
RUN
version
=
1.6.0
&&
\
source
/etc/profile
&&
\
source
scl_source
enable
devtoolset-8
&&
\
cd
/opt
&&
\
curl
-sSLO
https://github.com/apache/incubator-mxnet/releases/download/
${
version
}
/apache-mxnet-src-
${
version
}
-incubating
.tar.gz
&&
\
tar
-xf
apache-mxnet-src-
${
version
}
-incubating
.tar.gz
&&
\
rm
-f
apache-mxnet-src-
${
version
}
-incubating
.tar.gz
&&
\
mv
apache-mxnet-src-
${
version
}
-incubating
mxnet-
${
version
}
&&
\
cd
mxnet-
${
version
}
&&
\
patch
-p1
-i
/opt/mxnet-1.6.0-manual-cuda-arch-flags.patch
&&
\
cmake
-S
.
-B
build
-G
Ninja
\
-D
CMAKE_CXX_STANDARD
=
14
-D
USE_CXX14_IF_AVAILABLE
=
ON
\
-D
CMAKE_BUILD_TYPE
=
Release
-D
CMAKE_INSTALL_PREFIX
=
/usr/local
\
-D
CMAKE_CUDA_COMPILER
=
/usr/local/cuda-10.1/bin/nvcc
\
-D
USE_CUDA
=
ON
-D
USE_CUDNN
=
ON
-D
USE_NCCL
=
OFF
\
-D
CUDA_ARCH_FLAGS
=
"-gencode;arch=compute_61,code=sm_61;-gencode;arch=compute_30,code=compute_30;-gencode;arch=compute_52,code=compute_52;-gencode;arch=compute_75,code=compute_75"
\
-D
USE_OPENCV
=
ON
-D
USE_OPENMP
=
ON
\
-D
USE_LAPACK
=
ON
-D
USE_MKL_IF_AVAILABLE
=
OFF
\
-D
USE_DIST_KVSTORE
=
OFF
\
-D
USE_CPP_PACKAGE
=
ON
\
-D
USE_SIGNAL_HANDLER
=
ON
\
-D
ENABLE_CUDA_RTC
=
ON
\
-D
BUILD_CPP_EXAMPLES
=
OFF
\
-D
USE_GPERFTOOLS
=
OFF
\
-D
USE_JEMALLOC
=
OFF
\
&&
\
rm
/opt/mxnet-1.6.0-manual-cuda-arch-flags.patch
&&
\
ninja
-C
build
# pybind11
ARG
pybind11_VERSION=2.7.1
RUN
source
/etc/profile
&&
\
cd
/tmp
&&
\
curl
-sSL
-o
pybind11-
${
pybind11_VERSION
}
.tar.gz https://github.com/pybind/pybind11/archive/v
${
pybind11_VERSION
}
.tar.gz
&&
\
tar
-xf
pybind11-
${
pybind11_VERSION
}
.tar.gz
&&
\
cd
pybind11-
${
pybind11_VERSION
}
&&
\
cmake
-S
.
-B
build
-G
Ninja
\
-DCMAKE_BUILD_TYPE
=
Release
-DCMAKE_INSTALL_PREFIX
=
/usr/local
\
-DPYBIND11_TEST
=
off
\
&&
\
ninja
-C
build
install
&&
\
cd
..
&&
\
rm
-rf
pybind11-
${
pybind11_VERSION
}*
# pylon (Basler cameras)
ARG
pylon_VERSION=5.2.0.13457
RUN
cd
/tmp
&&
\
curl
-sSLO
https://www.baslerweb.com/fp-1551786516/media/downloads/software/pylon_software/pylon-
${
pylon_VERSION
}
-x86_64
.tar.gz
&&
\
tar
-xf
pylon-
${
pylon_VERSION
}
-x86_64
.tar.gz
&&
\
cd
pylon-
${
pylon_VERSION
}
-x86_64
&&
\
tar
-xf
pylonSDK-
${
pylon_VERSION
}
-x86_64
.tar.gz
&&
\
mv
pylon5 /opt/pylon5
&&
\
cd
..
&&
\
rm
-rf
pylon-
${
pylon_VERSION
}*
ADD
bash/pylon.sh /etc/profile.d/pylon.sh
# CGAL
ARG
CGAL_VERSION=5.2
RUN
yum
install
-y
\
gmp-devel
\
mpfr-devel
\
&&
\
yum clean all
&&
\
source
/etc/profile
&&
\
cd
/tmp
&&
\
curl
-sSLO
https://github.com/CGAL/cgal/releases/download/v
${
CGAL_VERSION
}
/CGAL-
${
CGAL_VERSION
}
.tar.xz
&&
\
tar
-xf
CGAL-
${
CGAL_VERSION
}
.tar.xz
&&
\
cd
CGAL-
${
CGAL_VERSION
}
&&
\
cmake
-S
.
-B
build
-G
Ninja
\
-DCMAKE_BUILD_TYPE
=
Release
-DCMAKE_INSTALL_PREFIX
=
/usr/local
\
-DCGAL_INSTALL_LIB_DIR
=
lib
-DCGAL_INSTALL_CMAKE_DIR
=
"lib/cmake/CGAL"
\
-DWITH_CGAL_Qt5
=
ON
\
&&
\
ninja
-C
build
install
&&
\
cd
..
&&
\
rm
-rf
CGAL-
${
CGAL_VERSION
}*
# glm
ARG
glm_VERSION=0.9.9.8
RUN
cd
/tmp
&&
\
curl
-sSLO
https://github.com/g-truc/glm/releases/download/
${
glm_VERSION
}
/glm-
${
glm_VERSION
}
.zip
&&
\
unzip glm-
${
glm_VERSION
}
.zip
&&
\
mv
glm /opt/glm
&&
\
rm
-rf
glm
*
&&
\
echo
"export glm_DIR=/opt/glm/cmake/glm"
>
/etc/profile.d/glm.sh
RUN
python3.6
-m
pip
--no-cache-dir
install
-U
pip
&&
\
python3.6
-m
pip
--no-cache-dir
install
'cryptography<3.4'
&&
\
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment