forked from tliron/turandot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild-csars
More file actions
executable file
·56 lines (43 loc) · 1.15 KB
/
build-csars
File metadata and controls
executable file
·56 lines (43 loc) · 1.15 KB
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
49
50
51
52
53
54
55
56
#!/bin/bash
set -e
HERE=$(dirname "$(readlink --canonicalize "$BASH_SOURCE")")
. "$HERE/../../../scripts/_env"
. "$ROOT/scripts/_trap"
mkdir --parents "$ROOT/dist"
function build () {
local ARCHIVE=$1
local WORK=$(mktemp --directory)
pushd "$HERE/.." > /dev/null
rsync --recursive --relative "${@:2}" "$WORK/"
popd > /dev/null
pushd "$ROOT/assets/tosca" > /dev/null
rsync --recursive --relative profiles "$WORK/"
popd > /dev/null
puccini-csar "$ROOT/dist/$ARCHIVE.csar" "$WORK"
rm --recursive --force "$WORK"
m "built $ROOT/dist/$ARCHIVE.csar"
}
mkdir --parents "$HERE/../artifacts/binaries/"
cp "$(which puccini-clout)" "$HERE/../artifacts/binaries/"
build telephony-network-service \
telephony-network-service.yaml \
profiles
build asterisk-cnf \
asterisk-cnf.yaml \
profiles \
artifacts/scripts \
artifacts/binaries \
artifacts/asterisk \
artifacts/images/asterisk-cnf.tar.gz
build asterisk-vnf \
asterisk-vnf.yaml \
profiles \
artifacts/scripts \
artifacts/binaries \
artifacts/asterisk \
artifacts/keypairs \
artifacts/cloud-config \
artifacts/images/asterisk-vnf.tar.gz
build simple-data-plane \
simple-data-plane.yaml \
profiles