forked from jendrikseipp/scorpion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApptainer
48 lines (37 loc) · 1.01 KB
/
Apptainer
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
40
41
42
43
44
45
46
47
48
# Stage 1: Compile the planner
Bootstrap: docker
From: ubuntu:22.04
Stage: build
%files
. /planner
%post
## Install all necessary dependencies.
apt-get update
apt-get -y install --no-install-recommends cmake g++ make pypy3
## Clear build directory.
rm -rf /planner/builds
## Build planner.
cd /planner
pypy3 build.py
## Strip binaries.
strip --strip-all /planner/builds/release/bin/downward /planner/builds/release/bin/preprocess-h2
# Stage 2: Run the planner
Bootstrap: docker
From: ubuntu:22.04
Stage: run
%files from build
/planner/driver
/planner/fast-downward.py
/planner/builds/release/bin
%post
apt-get update
apt-get -y install --no-install-recommends pypy3
apt-get clean
rm -rf /var/lib/apt/lists/*
%runscript
#!/bin/bash
pypy3 /planner/fast-downward.py "$@"
%labels
Name Scorpion
Description Classical planning system with state-of-the-art cost partitioning algorithms
Authors Jendrik Seipp <jendrik.seipp@liu.se>