-
Notifications
You must be signed in to change notification settings - Fork 1
/
rockcraft.yaml
40 lines (36 loc) · 1.1 KB
/
rockcraft.yaml
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
name: keystone
summary: Openstack Keystone
license: Apache-2.0
description: |
Ubuntu distribution of OpenStack Keystone
version: antelope
base: ubuntu:22.04
platforms:
amd64:
# Disabled until rockcraft supports
# overlay packages from repositories
# package-repositories:
# - type: apt
# cloud: antelope
# priority: always
services:
wsgi-keystone:
override: replace
command: apachectl -D FOREGROUND
parts:
keystone:
plugin: nil
overlay-packages:
- software-properties-common
overlay-script: |
mount /etc/resolv.conf $CRAFT_OVERLAY/etc/resolv.conf --bind
mount proc $CRAFT_OVERLAY/proc -t proc
mount sysfs $CRAFT_OVERLAY/sys -t sysfs
mount /dev $CRAFT_OVERLAY/dev --rbind --make-private
chroot $CRAFT_OVERLAY add-apt-repository cloud-archive:antelope
chroot $CRAFT_OVERLAY apt update
chroot $CRAFT_OVERLAY bash -c "DEBIAN_FRONTEND=noninteractive apt install sudo keystone --yes"
umount --recursive $CRAFT_OVERLAY/dev
umount $CRAFT_OVERLAY/sys
umount $CRAFT_OVERLAY/proc
umount $CRAFT_OVERLAY/etc/resolv.conf