-
Notifications
You must be signed in to change notification settings - Fork 0
/
airl_env_base.py
38 lines (27 loc) · 963 Bytes
/
airl_env_base.py
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
#!/usr/bin/env python
"""
AIRL Base image
Base Image: ubuntu:20.04
Contents:
- robot_dart
- sferes
- visu_server
"""
import hpccm
from airl_building_blocks import *
# Set to 'docker' to generate a Dockerfile or set to 'singularity' to
# generate a Singularity definition file
hpccm.config.set_container_format('singularity')
print(hpccm.primitives.baseimage(image='ubuntu:20.04',_docker_env=False))
print(hpccm.primitives.label(metadata={'Author': '[email protected]', 'Version':'v2.2'}))
## ==== Common dependencies ====
print(hpccm.building_blocks.python(python2=False))
print(hpccm.primitives.shell(commands=['ln -s /usr/bin/python3 /usr/bin/python']))
#print(hpccm.building_blocks.llvm())
print(hpccm.building_blocks.gnu())
## ==== Composition of building blocks ====
print(hpccm.building_blocks.packages(ospackages=['emacs', 'vim', 'less', 'gdb']))
# print(hexapod_common())
print(robot_dart())
print(sferes())
print(visu_server())