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

✨ relocate ironic-client to this repository #599

Merged
merged 1 commit into from
Dec 5, 2024
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
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
Loading