-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
switch horizon image to use horizon-rxt
use multi-stage build Signed-off-by: Kevin Carter <[email protected]>
- Loading branch information
Showing
2 changed files
with
15 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,14 @@ | ||
ARG VERSION=master-ubuntu_jammy | ||
FROM openstackhelm/horizon:${VERSION} | ||
FROM openstackhelm/horizon:${VERSION} as build | ||
ARG PLUGIN_VERSION=master | ||
RUN /var/lib/openstack/bin/pip install --constraint=https://releases.openstack.org/constraints/upper/${PLUGIN_VERSION} \ | ||
heat-dashboard \ | ||
octavia-dashboard | ||
RUN apt update && apt install -y git | ||
RUN /var/lib/openstack/bin/pip install --upgrade --force-reinstall pip | ||
RUN export ORIG_PLUGIN_VERSION="${PLUGIN_VERSION}"; \ | ||
if [ "${PLUGIN_VERSION}" != 'master' ]; then export PLUGIN_VERSION=stable/${PLUGIN_VERSION}; fi; \ | ||
. /var/lib/openstack/bin/activate; \ | ||
/var/lib/openstack/bin/pip install --constraint=https://releases.openstack.org/constraints/upper/${ORIG_PLUGIN_VERSION} \ | ||
git+https://opendev.org/openstack/heat-dashboard@${PLUGIN_VERSION}#egg=heat_dashboard \ | ||
git+https://opendev.org/openstack/octavia-dashboard@${PLUGIN_VERSION}#egg=octavia_dashboard | ||
RUN find /var/lib/openstack -regex '^.*\(__pycache__\|\.py[co]\)$' -delete | ||
FROM openstackhelm/horizon:${VERSION} | ||
COPY --from=build /var/lib/openstack/. /var/lib/openstack/ |