Skip to content

Commit b5f6877

Browse files
committed
feat: build Cinder container with our Cinder driver code
Create a build of the Cinder container which will also install our Cinder driver code.
1 parent deaaa49 commit b5f6877

File tree

3 files changed

+30
-1
lines changed

3 files changed

+30
-1
lines changed

.github/workflows/containers.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
strategy:
3434
matrix:
3535
# if you add a container here, add it to the 'clean_containers' job below
36-
project: [ironic, neutron, keystone, nova, openstack-client]
36+
project: [ironic, neutron, keystone, nova, openstack-client, cinder]
3737

3838
steps:
3939
- name: setup docker buildx

components/images-openstack.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,15 @@ images:
9090
# skyline
9191
skyline: "quay.io/airshipit/skyline:latest"
9292
skyline_db_sync: "quay.io/airshipit/skyline:latest"
93+
94+
# cinder
95+
cinder_api: "ghcr.io/rackerlabs/understack/cinder:2024.2-ubuntu_jammy"
96+
cinder_db_sync: "ghcr.io/rackerlabs/understack/cinder:2024.2-ubuntu_jammy"
97+
cinder_scheduler: "ghcr.io/rackerlabs/understack/cinder:2024.2-ubuntu_jammy"
98+
cinder_volume: "ghcr.io/rackerlabs/understack/cinder:2024.2-ubuntu_jammy"
99+
cinder_volume_usage_audit: "ghcr.io/rackerlabs/understack/cinder:2024.2-ubuntu_jammy"
100+
cinder_db_purge: "ghcr.io/rackerlabs/understack/cinder:2024.2-ubuntu_jammy"
101+
cinder_backup: "ghcr.io/rackerlabs/understack/cinder:2024.2-ubuntu_jammy"
102+
cinder_storage_init: "docker.io/openstackhelm/ceph-config-helper:latest-ubuntu_jammy"
103+
cinder_backup_storage_init: "docker.io/openstackhelm/ceph-config-helper:latest-ubuntu_jammy"
93104
...

containers/cinder/Dockerfile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# syntax=docker/dockerfile:1
2+
3+
ARG OPENSTACK_VERSION="required_argument"
4+
FROM docker.io/openstackhelm/cinder:${OPENSTACK_VERSION}-ubuntu_jammy AS builder
5+
6+
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
7+
8+
COPY python/cinder-understack /tmp/cinder-understack
9+
10+
RUN --mount=type=cache,target=/root/.cache/uv \
11+
cd /tmp/cinder-understack && \
12+
uv build --wheel --out-dir /tmp/wheels/
13+
14+
FROM docker.io/openstackhelm/cinder:${OPENSTACK_VERSION}-ubuntu_jammy AS final
15+
16+
RUN --mount=type=cache,target=/root/.cache/pip \
17+
--mount=from=builder,source=/tmp/wheels,target=/tmp/wheels \
18+
/var/lib/openstack/bin/python -m pip install --no-input --find-links /tmp/wheels/ cinder-understack

0 commit comments

Comments
 (0)