/
Dockerfile
33 lines (28 loc) · 1.15 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
FROM continuumio/miniconda3:4.8.2
# 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
RUN chmod -R 777 /opt/conda \
&& mkdir -p /.conda \
&& chmod -R 777 /.conda
# install tools lib dependencies
RUN apt-get update && apt-get install -y \
libncurses5 libncurses5-dev \
tcl environment-modules \
&& apt-get clean autoclean
# 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 && cd /XMOS \
&& wget -q https://github0.xmos.com/raw/xmos-int/get_tools/master/get_tools.py \
&& chmod a+x get_tools.py \
&& echo "export MODULES_SILENT_SHELL_DEBUG=1\nexport MODULEPATH=/XMOS/modulefiles:/XMOS/template_modulefiles\nexport PATH=$PATH:/XMOS" \
>> /etc/profile.d/xmos_tools.sh \
&& chmod a+x /etc/profile.d/xmos_tools.sh
# install compiler
RUN apt-get install -y build-essential
# set login shell
SHELL ["/bin/bash", "-l", "-c"]