Skip to content

Commit

Permalink
temp script for building IPA images
Browse files Browse the repository at this point in the history
  • Loading branch information
msherman64 committed Feb 6, 2024
1 parent b1a7165 commit f46abbe
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions build_ipa.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#!/bin/bash

set -euo pipefail
set -x

image_name_base="cc-ipa"

#distro="centos"
#release="9-stream"

distro="debian-minimal"
release="bookworm"

openstack_branch="stable/2023.1"
# openstack_branch="stable/xena"

# arch="amd64"
arch="arm64"

branch_shortname="$(echo ${openstack_branch} | cut -d "/" -f 2)"
image_name_full="${image_name_base}-${branch_shortname}-${distro}-${release}-${arch}"
image_name_cache="${image_name_base}-${distro}-${release}"
echo "${image_name_full}"
image_output_base="/opt/scratch/cc-images/build/images"
image_cache_base="/opt/scratch/cc-images/build/cache"

DIB_IMAGE_CACHE="${image_cache_base}/${image_name_cache}" \
ironic-python-agent-builder \
--lzma \
-b "${openstack_branch}" \
--extra-args "-a ${arch}" \
-o "${image_output_base}/${image_name_full}" \
-r "${release}" "${distro}"

0 comments on commit f46abbe

Please sign in to comment.