Skip to content

Commit b7bc09a

Browse files
committed
dnm - Containerfile repos
Signed-off-by: Brendan Shephard <[email protected]>
1 parent aba58ae commit b7bc09a

File tree

3 files changed

+76
-15
lines changed

3 files changed

+76
-15
lines changed

bootc/Containerfile.centos9

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,17 @@ ARG PACKAGES="\
1010
chrony \
1111
cloud-init \
1212
crudini \
13+
cronie \
1314
crypto-policies-scripts \
1415
device-mapper-multipath \
1516
driverctl \
1617
grubby \
18+
grub2-tools \
1719
iproute-tc \
1820
iptables-services \
1921
iscsi-initiator-utils \
2022
jq \
23+
libvirt \
2124
lvm2 \
2225
NetworkManager-ovs \
2326
nftables \
@@ -36,26 +39,13 @@ ARG PACKAGES="\
3639

3740
ARG ENABLE_UNITS="openvswitch"
3841

39-
RUN dnf -y update && dnf -y install $PACKAGES && dnf clean all && systemctl enable $ENABLE_UNITS
42+
RUN sudo dnf install centos-release-nfv-openvswitch centos-release-openstack-antelope -y && dnf -y update && dnf -y install $PACKAGES && dnf clean all && systemctl enable $ENABLE_UNITS
4043

4144
# Template systemd service for services
4245
COPY embedded-services/quadlets/systemd/service-template.kube /usr/share/containers/systemd/[email protected]
4346

4447
## Service specific quadlets
45-
COPY embedded-services/quadlets/ovn-controller/ovn_controller.yaml /usr/share/containers/systemd/ovn_controller.yaml
46-
COPY embedded-services/quadlets/ovn-controller/ovn_controller.image /usr/share/containers/systemd/ovn_controller.image
47-
COPY embedded-services/quadlets/iscsid/iscsid.yaml /usr/share/containers/systemd/iscsid.yaml
48-
COPY embedded-services/quadlets/iscsid/iscsid.image /usr/share/containers/systemd/iscsid.image
49-
COPY embedded-services/quadlets/nova_compute/nova_compute.yaml /usr/share/containers/systemd/nova_compute.yaml
50-
COPY embedded-services/quadlets/nova_compute/nova_compute.image /usr/share/containers/systemd/nova_compute.image
51-
COPY embedded-services/quadlets/ovn_metadata_agent/ovn_metadata_agent.yaml /usr/share/containers/systemd/ovn_metadata_agent.yaml
52-
COPY embedded-services/quadlets/ovn_metadata_agent/ovn_metadata_agent.image /usr/share/containers/systemd/ovn_metadata_agent.image
53-
COPY embedded-services/quadlets/logrotate_crond/logrotate_crond.yaml /usr/share/containers/systemd/logrotate_crond.yaml
54-
COPY embedded-services/quadlets/logrotate_crond/logrotate_crond.image /usr/share/containers/systemd/logrotate_crond.image
55-
COPY embedded-services/quadlets/multipathd/multipathd.yaml /usr/share/containers/systemd/multipathd.yaml
56-
COPY embedded-services/quadlets/multipathd/multipathd.image /usr/share/containers/systemd/multipathd.image
57-
COPY embedded-services/quadlets/ceilometer_agent_compute/ceilometer_agent_compute.yaml /usr/share/containers/systemd/ceilometer_agent_compute.yaml
58-
COPY embedded-services/quadlets/ceilometer_agent_compute/ceilometer_agent_compute.image /usr/share/containers/systemd/ceilometer_agent_compute.image
48+
COPY embedded-services/quadlets/ /usr/share/containers/systemd/
5949

6050
# Pre-cache containers for each service
6151
RUN podman pull quay.io/podified-antelope-centos9/openstack-ceilometer-compute:current-podified
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[install]
2+
WantedBy=edpm-compute@ovn_controller.service
3+
4+
[Image]
5+
Image=quay.io/prometheus/node-exporter@sha256:39c642b2b337e38c18e80266fb14383754178202f40103646337722a594d984c
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
---
2+
apiVersion: v1
3+
kind: Pod
4+
metadata:
5+
annotations:
6+
bind-mount-options: /var/lib/openstack/healthchecks/node_exporter:z
7+
labels:
8+
app: nodeexporter-pod
9+
name: node_exporter
10+
spec:
11+
containers:
12+
- args:
13+
- --web.config.file=/etc/node_exporter/node_exporter.yaml
14+
- --collector.systemd
15+
- --collector.systemd.unit-include=(edpm_.*|ovs.*|openvswitch|virt.*|rsyslog)\.service
16+
- --web.disable-exporter-metrics
17+
- --no-collector.dmi
18+
- --no-collector.entropy
19+
- --no-collector.thermal_zone
20+
- --no-collector.time
21+
- --no-collector.timex
22+
- --no-collector.uname
23+
- --no-collector.stat
24+
- --no-collector.hwmon
25+
- --no-collector.os
26+
- --no-collector.selinux
27+
- --no-collector.textfile
28+
- --no-collector.powersupplyclass
29+
- --no-collector.pressure
30+
- --no-collector.rapl
31+
env:
32+
- name: OS_ENDPOINT_TYPE
33+
value: internal
34+
image: quay.io/prometheus/node-exporter@sha256:39c642b2b337e38c18e80266fb14383754178202f40103646337722a594d984c
35+
name: node_exporter
36+
securityContext:
37+
privileged: true
38+
procMount: Unmasked
39+
volumeMounts:
40+
- mountPath: /etc/node_exporter/node_exporter.yaml
41+
name: var-lib-openstack-config-telemetry-node_exporter.yaml-host-0
42+
- mountPath: /etc/node_exporter/tls
43+
name: var-lib-openstack-certs-telemetry-default-host-1
44+
- mountPath: /var/run/dbus/system_bus_socket
45+
name: var-run-dbus-system_bus_socket-host-2
46+
- mountPath: /openstack
47+
name: var-lib-openstack-healthchecks-node_exporter-host-3
48+
readOnly: true
49+
hostNetwork: true
50+
volumes:
51+
- hostPath:
52+
path: /var/lib/openstack/config/telemetry/node_exporter.yaml
53+
type: File
54+
name: var-lib-openstack-config-telemetry-node_exporter.yaml-host-0
55+
- hostPath:
56+
path: /var/lib/openstack/certs/telemetry/default
57+
type: Directory
58+
name: var-lib-openstack-certs-telemetry-default-host-1
59+
- hostPath:
60+
path: /var/run/dbus/system_bus_socket
61+
type: File
62+
name: var-run-dbus-system_bus_socket-host-2
63+
- hostPath:
64+
path: /var/lib/openstack/healthchecks/node_exporter
65+
type: Directory
66+
name: var-lib-openstack-healthchecks-node_exporter-host-3

0 commit comments

Comments
 (0)