forked from xmos/ai_tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
39 lines (33 loc) · 1.28 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
FROM continuumio/miniconda3:4.11.0
# This Dockerfile is for use by the XMOS CI system
# It provides a minimal environment needed to execute the Jenkinsfile
# Most of the dependecies here are handled conda so we only include:
# - conda setup
# - xmos tools setup
# fix conda perms and config
RUN chmod -R 777 /opt/conda \
&& mkdir -p /.conda \
&& chmod -R 777 /.conda \
&& conda init \
&& conda config --set auto_activate_base false
# install tools lib dependencies
RUN apt-get update && apt-get install -y \
libncurses5 libncurses5-dev \
tcl environment-modules \
&& apt-get clean autoclean
# install gcc-9
RUN apt-get install gcc-9 g++-9 -y \
&& update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 60 --slave /usr/bin/g++ g++ /usr/bin/g++-9 \
&& update-alternatives --config gcc
# install get_tools.py script
# requires connection to XMOS network at build and run time
# if not possible, find another way to install the tools
RUN mkdir -m 777 /XMOS
ADD https://github0.xmos.com/raw/xmos-int/get_tools/master/get_tools.py /XMOS/
RUN cd /XMOS \
&& chmod 755 get_tools.py \
&& echo "export PATH=$PATH:/XMOS" \
>> /etc/profile.d/xmos_tools.sh \
&& chmod a+x /etc/profile.d/xmos_tools.sh
# set login shell
SHELL ["/bin/bash", "-l", "-c"]