Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Follow-up to build image from source #324

Merged
merged 1 commit into from
Nov 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ironic-rpm-list.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ openstack-ironic-api
openstack-ironic-conductor
openstack-ironic-inspector
python3-dracclient
python3-gunicorn
python3-ibmcclient
python3-ironic-prometheus-exporter
python3-proliantutils
Expand Down
1 change: 1 addition & 0 deletions ironic-source-list.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
crudini
gunicorn
ironic @ git+https://opendev.org/openstack/ironic
ironic-inspector @ git+https://opendev.org/openstack/ironic-inspector
ironic-prometheus-exporter
Expand Down
10 changes: 7 additions & 3 deletions prepare-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ fi

# SOURCE install #
if [[ $INSTALL_TYPE == "source" ]]; then
BUILD_DEPS="python3-pip python3-devel gcc git-core"
dnf upgrade -y
dnf install -y python3-pip python3-devel gcc git-core
pip3 install --upgrade pip
dnf install -y $BUILD_DEPS
pip3 install pip==21.3.1
pip3 install --prefix /usr -r $IRONIC_PKG_LIST -c https://raw.githubusercontent.com/openstack/requirements/master/upper-constraints.txt

# ironic and ironic-inspector system configuration
Expand All @@ -31,6 +32,9 @@ if [[ $INSTALL_TYPE == "source" ]]; then
getent passwd ironic >/dev/null || useradd -r -g ironic -s /sbin/nologin ironic -d /var/lib/ironic
getent group ironic-inspector >/dev/null || groupadd -r ironic-inspector
getent passwd ironic-inspector >/dev/null || useradd -r -g ironic-inspector -s /sbin/nologin ironic-inspector -d /var/lib/ironic-inspector

# clean installed build dependencies
dnf remove -y $BUILD_DEPS
fi

xargs -rtd'\n' dnf install -y < /tmp/${PKGS_LIST}
Expand All @@ -41,7 +45,7 @@ if [[ ! -z ${EXTRA_PKGS_LIST:-} ]]; then
fi
fi

dnf install -y --enablerepo=epel inotify-tools python3-gunicorn
dnf install -y --enablerepo=epel inotify-tools

dnf clean all
rm -rf /var/cache/{yum,dnf}/*
Expand Down