1 # 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
5 # http://www.apache.org/licenses/LICENSE-2.0
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
11 # See the License for the specific language governing permissions and
12 # limitations under the License.
13 ########################################################################################
15 summary: An image for OSM MON
18 version: master_beta_1 # version format: <upstream-version>_<base-version>_<version>
28 chroot ${CRAFT_OVERLAY}
30 groupadd -g 1001 appuser
31 useradd -u 1001 -g 1001 -d /app appuser
32 chown -R appuser:appuser /app
35 source: https://osm.etsi.org/gerrit/osm/common.git
43 - PYTHONDONTWRITEBYTECODE: "1" # This does not work as expected, there is a bug and still not fixed.
44 # Workaround for conflicts related with the bug of PYTHONDONTWRITEBYTECODE
47 find "$CRAFT_PART_INSTALL" -name '*.pyc' -exec rm {} \;
52 - -lib/python3.10/site-packages/pip-23.2.1.dist-info/RECORD
53 - -lib/python3.10/site-packages/wheel-0.41.1.dist-info/RECORD
54 - -lib/python3.10/site-packages/charset_normalizer-3.1.0.dist-info/RECORD
57 source: https://osm.etsi.org/gerrit/osm/N2VC.git
65 - PYTHONDONTWRITEBYTECODE: "1" # This does not work as expected, there is a bug and still not fixed.
66 # Workaround for conflicts related with the bug of PYTHONDONTWRITEBYTECODE
69 find "$CRAFT_PART_INSTALL" -name '*.pyc' -exec rm {} \;
74 - -lib/python3.10/site-packages/pip-23.2.1.dist-info/RECORD
75 - -lib/python3.10/site-packages/wheel-0.41.1.dist-info/RECORD
76 - -lib/python3.10/site-packages/charset_normalizer-3.1.0.dist-info/RECORD
80 source: https://osm.etsi.org/gerrit/osm/MON.git
83 docker/scripts/start.sh: app/osm_mon/start.sh
85 - app/osm_mon/start.sh
88 source: https://osm.etsi.org/gerrit/osm/MON.git