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 name: life-cycle-manager
16 summary: An image for OSM LCM
18 OSM Life Cycle Manager image.
19 version: master_beta_1 # version format: <upstream-version>_<base-version>_<version>
28 suites: [kubernetes-xenial]
29 # curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | gpg --import-options show-only --import | grep "^pub" -A1 | head -n2 | tail -1 | xargs
30 key-id: A362B822F6DEDC652817EA46B53DC80D13EDEF05
31 url: https://apt.kubernetes.io/
37 chroot ${CRAFT_OVERLAY}
39 mkdir -p /app/storage/kafka
41 groupadd -g 1001 appuser
42 useradd -u 1001 -g 1001 -d /app appuser
43 chown -R appuser:appuser /app
46 source: https://osm.etsi.org/gerrit/osm/common.git
54 - PYTHONDONTWRITEBYTECODE: "1" # This does not work as expected, there is a bug and still not fixed.
59 - -lib/python3.10/site-packages/*/RECORD
60 # Workaround for conflicts related with the bug of PYTHONDONTWRITEBYTECODE
65 source: https://get.helm.sh/helm-v2.17.0-linux-amd64.tar.gz
67 helm: usr/local/bin/helm
73 source: https://get.helm.sh/helm-v3.11.3-linux-amd64.tar.gz
75 helm: usr/local/bin/helm3
80 source: https://osm.etsi.org/gerrit/osm/N2VC.git
87 - kubectl=1.26.5-00 # TODO: Do we need to lock the version of kubectl?
89 # NOTE: `ca-certificates` needs to be in overlay-packages for some reason. See:
90 # https://github.com/canonical/rockcraft/issues/334
94 - PYTHONDONTWRITEBYTECODE: "1" # This does not work as expected, there is a bug and still not fixed.
99 - -lib/python3.10/site-packages/*/RECORD
100 # Workaround for conflicts related with the bug of PYTHONDONTWRITEBYTECODE
105 source: https://osm.etsi.org/gerrit/osm/LCM.git
106 source-branch: master