-
Notifications
You must be signed in to change notification settings - Fork 0
/
Maplefile
36 lines (30 loc) · 1.17 KB
/
Maplefile
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
# Maplefile for BoxKit
# Name of the base image which will
# be used to build the local image
base = "ubuntu"
# Name of the local image that will be
# used to pour the container and add layers
image = "boxkit"
# Commands for building local image and
# installing dependencies
build = [
"export TZ=US/Michigan",
"ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone",
"apt-get update -y && apt-get install -y apt-utils && apt-get upgrade -y",
"apt-get install -y libhdf5-openmpi-dev openmpi-bin",
"apt-get install -y python3 python3-dev python3-pip",
"apt-get install -y python-is-python3",
"apt-get install -y libboost-all-dev",
"pip3 install click",
]
# Name of the local container that will be used
# to run/modify the image
# Note: 'container' is a writable instance of an 'image'
container = "boxkit"
# Commands to execute inside the container and update the image
publish = [
"export CXX=g++ BOOST_LIB_DIR=usr/lib BOOST_INCLUDE_DIR=/usr/include && python3 setup.py develop && python3 setup.py build && python3 setup.py install --with-cbox",
"./setup clean",
]
# Backend for service docker/singularity
backend = "docker"