Skip to content

Commit

Permalink
Merge pull request #599 from Nordix/tuomo/relocate-ironic-client
Browse files Browse the repository at this point in the history
✨ relocate ironic-client to this repository
  • Loading branch information
metal3-io-bot authored Dec 5, 2024
2 parents 6f0f2ee + 8c0cb4e commit 276cd0e
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .github/workflows/build-images-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,15 @@ jobs:
QUAY_USERNAME: ${{ secrets.QUAY_USERNAME }}
QUAY_PASSWORD: ${{ secrets.QUAY_PASSWORD }}
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
build_client:
name: build ironic-client image
if: github.repository == 'metal3-io/ironic-image'
uses: metal3-io/project-infra/.github/workflows/container-image-build.yml@main
with:
image-name: 'ironic-client'
dockerfile-directory: resources/ironic-client
pushImage: true
secrets:
QUAY_USERNAME: ${{ secrets.QUAY_USERNAME }}
QUAY_PASSWORD: ${{ secrets.QUAY_PASSWORD }}
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
4 changes: 3 additions & 1 deletion docs/releasing.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,9 @@ For that, please continue following the instructions provided in

## Keeping sync with other images and tools

- The [sushy-tools and vbmc](https://github.com/metal3-io/ironic-image/tree/main/resources)
- The [sushy-tools](<https://github.com/metal3-io/ironic-image/tree/main/resources/sushy-tools>),
[vbmc](https://github.com/metal3-io/ironic-image/tree/main/resources/vbmc)
and [ironic-client](https://github.com/metal3-io/ironic-image/tree/main/resources/ironic-client)
images won't be versioned, we expect them to work with any version.
- The [ipa-downloader](https://github.com/metal3-io/ironic-ipa-downloader)
image uses the [ironic-python-agent](https://opendev.org/openstack/ironic-python-agent)
Expand Down
13 changes: 13 additions & 0 deletions resources/ironic-client/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM quay.io/centos/centos:stream9

# Help people find the actual baremetal command
COPY scripts/openstack /usr/bin/openstack

RUN dnf install -y python3 python3-pip genisoimage && \
pip install python-ironicclient --prefix /usr --no-cache-dir && \
chmod +x /usr/bin/openstack && \
dnf update -y && \
dnf clean all && \
rm -rf /var/cache/{yum,dnf}/*

ENTRYPOINT ["/usr/bin/baremetal"]
9 changes: 9 additions & 0 deletions resources/ironic-client/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Metal3 Ironic Client Container

This repo contains the files needed to build a container image with the Ironic
CLI utilities, which are useful for debugging via Ironic APIs.

## Description

When updated, builds are automatically triggered on
[Quay](https://quay.io/repository/metal3-io/ironic-client).
4 changes: 4 additions & 0 deletions resources/ironic-client/scripts/openstack
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh

echo "Please use /usr/bin/baremetal instead"
exit 1

0 comments on commit 276cd0e

Please sign in to comment.