blob: 424b9ee480ef88aedae7ce9581cb06c2f3a0f4e6 [file] [log] [blame]
gatici5f205112023-07-31 16:02:17 +03001# Licensed under the Apache License, Version 2.0 (the "License");
2# you may not use this file except in compliance with the License.
3# You may obtain a copy of the License at
4#
5# http://www.apache.org/licenses/LICENSE-2.0
6#
7# Unless required by applicable law or agreed to in writing, software
8# distributed under the License is distributed on an "AS IS" BASIS,
9# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
10# implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13########################################################################################
14name: resource-orchestrator
15summary: An image for OSM RO
16description: |
17 OSM Resource Orchestrator image.
18version: master_beta_1 # version format: <upstream-version>_<base-version>_<version>
19license: Apache-2.0
20base: ubuntu:22.04
21platforms:
22 amd64:
23
24parts:
25 non-root-user:
26 plugin: nil
27 overlay-script: |
28 chroot ${CRAFT_OVERLAY}
29 mkdir -p /app/osm_ro
30 mkdir -p /app/storage/kafka
31 mkdir -p /app/log
32 groupadd -g 1001 appuser
33 useradd -u 1001 -g 1001 -d /app appuser
34 chown -R appuser:appuser /app
35
36 common:
37 source: https://osm.etsi.org/gerrit/osm/common.git
38 source-branch: master
39 plugin: python
40 python-requirements:
41 - requirements.txt
42 stage-packages:
43 - python3.10-venv
44 build-environment:
45 - PYTHONDONTWRITEBYTECODE: "1" # This does not work as expected, there is a bug and still not fixed.
46 # Workaround for conflicts related with the bug of PYTHONDONTWRITEBYTECODE
47 override-build: |
48 craftctl default
49 find "$CRAFT_PART_INSTALL" -name '*.pyc' -exec rm {} \;
50 stage:
51 - -bin/activate
52 - -bin/activate.csh
53 - -bin/activate.fish
54 - -lib/python3.10/site-packages/pip-23.2.1.dist-info/RECORD
55 - -lib/python3.10/site-packages/wheel-0.41.0.dist-info/RECORD
56 - -lib/python3.10/site-packages/charset_normalizer-3.1.0.dist-info/RECORD
57
58 ro:
59 plugin: python
60 source: https://osm.etsi.org/gerrit/osm/RO.git
61 source-tag: master
62 python-requirements:
63 - requirements.txt
64 stage-packages:
65 - python3.10-venv
66 python-packages:
67 - pip
68 - setuptools
69 - wheel
70 - ./NG-RO
71 - ./RO-plugin
72 - ./RO-VIM-vmware
73 - ./RO-VIM-openstack
74 - ./RO-VIM-openvim
75 - ./RO-VIM-aws
76 - ./RO-VIM-azure
77 - ./RO-SDN-dynpac
78 - ./RO-SDN-ietfl2vpn
79 - ./RO-SDN-onos_vpls
80 - ./RO-SDN-onos_openflow
81 - ./RO-SDN-odl_openflow
82 - ./RO-SDN-floodlight_openflow
83 - ./RO-SDN-arista_cloudvision
84 - ./RO-SDN-juniper_contrail
85 - ./RO-VIM-gcp
86 - ./RO-SDN-tapi
87 build-packages:
88 - wget
89 - genisoimage
90 - netbase
91