Skip to content

Commit

Permalink
Merge pull request #775 from javipolo/ibmcloud
Browse files Browse the repository at this point in the history
Add cloud image for IBM Cloud
  • Loading branch information
rhatdan authored Sep 4, 2024
2 parents d0bb62c + 85fc827 commit c05cd05
Show file tree
Hide file tree
Showing 13 changed files with 40 additions and 3 deletions.
6 changes: 3 additions & 3 deletions training/cloud/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Please refer to the official RHEL AI documentation on how to create machine imag

| Variable | Description | Default |
|---------------------------|-------------------------------------------------|--------------------------------------------------------------|
| CLOUD | Sets the name of the cloud: aws, gcp, azure, ...| ` ` |
| CLOUD | Sets the name of the cloud: aws, gcp, ibm, ... | ` ` |
| HARDWARE | Hardware accelerator RHEL AI source image | `nvidia` |
| VERSION | RHEL AI version | `1.1` |
| REGISTRY | Container Registry for storing container images | `quay.io` |
Expand All @@ -33,13 +33,13 @@ Please refer to the official RHEL AI documentation on how to create machine imag

Simply execute `make cloud-image CLOUD=<cloud_provider> BASEIMAGE=<rhel_ai_base_image>`. For example:

* make cloud-image CLOUD=azure BASEIMAGE=quay.io/ai-lab/nvidia-bootc:1.1
* make cloud-image CLOUD=ibm BASEIMAGE=quay.io/ai-lab/nvidia-bootc:1.1
* make cloud-image CLOUD=gcp BASEIMAGE=quay.io/ai-lab/nvidia-bootc:1.1

Once you have the bootc image, you can use it to create a disk image.
Simply execute `make cloud-disk CLOUD=<cloud_provider>`. For example:

* make cloud-disk CLOUD=azure
* make cloud-disk CLOUD=ibm
* make cloud-disk CLOUD=gcp


Expand Down
1 change: 1 addition & 0 deletions training/cloud/ibm/Makefile.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DISK_TYPE=qcow2
14 changes: 14 additions & 0 deletions training/cloud/ibm/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# IBM Cloud modifications for RHEL AI

## Changes

- Timezone: UTC
- Chrony configuration:
- Change server
- LeapsecTz
- Locale: en_US.UTF-8
- Keymap: us
- X11 layout: us

- Packages
- langpacks-en
7 changes: 7 additions & 0 deletions training/cloud/ibm/cloud-setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

set -o errexit

dnf install -y --nobest \
cloud-init \
langpacks-en \
2 changes: 2 additions & 0 deletions training/cloud/ibm/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[customizations.kernel]

6 changes: 6 additions & 0 deletions training/cloud/ibm/files/etc/X11/xorg.conf.d/00-keyboard.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Do not edit manually, use localectl(1).
Section "InputClass"
Identifier "system-keyboard"
MatchIsKeyboard "on"
Option "XkbLayout" "us"
EndSection
1 change: 1 addition & 0 deletions training/cloud/ibm/files/etc/locale.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
LANG=en_US.UTF-8
1 change: 1 addition & 0 deletions training/cloud/ibm/files/etc/localtime
1 change: 1 addition & 0 deletions training/cloud/ibm/files/etc/vconsole.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
KEYMAP=us

0 comments on commit c05cd05

Please sign in to comment.