dell / csm

Dell Container Storage Modules (CSM)
Apache License 2.0
71 stars 15 forks source link

Base image support for CSM artifacts #1457

Closed eric-young closed 2 months ago

eric-young commented 2 months ago

Description

Adds a base image, based upon RedHat UBI Micro, for Dell CSM artifacts to use as a base image. This centralizes and simplifies the management and updating of the image.

Checklist:

gallacher commented 2 months ago

@eric-young, is there an opportunity to provide some information in the README file with some build usage instructions?

eric-young commented 2 months ago

@eric-young, is there an opportunity to provide some information in the README file with some build usage instructions?

Done. Also added the ability to build as non-root users

gallacher commented 2 months ago

@eric-young, is there an opportunity to provide some information in the README file with some build usage instructions?

Done. Also added the ability to build as non-root users

Thank you @eric-young!

donatwork commented 2 months ago

I see one error:

$ make docker Building base image from registry.access.redhat.com/ubi9/ubi-micro@sha256:9dbba858e5c8821fbe1a36c376ba23b83ba00f100126f2073baa32df2c8e183a and loading dependencies... cd base-image && ./build-base-image.sh -u "registry.access.redhat.com/ubi9/ubi-micro@sha256:9dbba858e5c8821fbe1a36c376ba23b83ba00f100126f2073baa32df2c8e183a" -t ""sample_registry""/""csm-base-image"":""test"" acl gnutls device-mapper-multipath e2fsprogs gnutls gzip hostname kmod libaio libblockdev libuuid libxcrypt-compat nettle nfs-utils nfs4-acl-tools numactl openssl rpm systemd tar util-linux which xfsprogs Building base image from registry.access.redhat.com/ubi9/ubi-micro@sha256:9dbba858e5c8821fbe1a36c376ba23b83ba00f100126f2073baa32df2c8e183a And creating sample_registry/csm-base-image:test With packages of: acl gnutls device-mapper-multipath e2fsprogs gnutls gzip hostname kmod libaio libblockdev libuuid libxcrypt-compat nettle nfs-utils nfs4-acl-tools numactl openssl rpm systemd tar util-linux which xfsprogs Error: There are no enabled repositories in "/etc/yum.repos.d/". Unable to detect release version (use '--releasever' to specify release version) 0 files removed 47e4e5190bd5f42cd7d501edd90fd3ddb4eb3f23c6d6a0e314a1734d6fe11e89 Getting image source signatures Copying blob 4092f1e3e312 skipped: already exists Copying blob a7a506debb5f done | Copying config 71dc853854 done | Writing manifest to image destination 71dc853854514b6dfe4d1f2a79a900fd1ec48d6940891ca1b407dbe202171340 Built base image: sample_registry/csm-base-image:test

eric-young commented 2 months ago

I see one error:

$ make docker Building base image from registry.access.redhat.com/ubi9/ubi-micro@sha256:9dbba858e5c8821fbe1a36c376ba23b83ba00f100126f2073baa32df2c8e183a and loading dependencies... cd base-image && ./build-base-image.sh -u "registry.access.redhat.com/ubi9/ubi-micro@sha256:9dbba858e5c8821fbe1a36c376ba23b83ba00f100126f2073baa32df2c8e183a" -t ""sample_registry""/""csm-base-image"":""test"" acl gnutls device-mapper-multipath e2fsprogs gnutls gzip hostname kmod libaio libblockdev libuuid libxcrypt-compat nettle nfs-utils nfs4-acl-tools numactl openssl rpm systemd tar util-linux which xfsprogs Building base image from registry.access.redhat.com/ubi9/ubi-micro@sha256:9dbba858e5c8821fbe1a36c376ba23b83ba00f100126f2073baa32df2c8e183a And creating sample_registry/csm-base-image:test With packages of: acl gnutls device-mapper-multipath e2fsprogs gnutls gzip hostname kmod libaio libblockdev libuuid libxcrypt-compat nettle nfs-utils nfs4-acl-tools numactl openssl rpm systemd tar util-linux which xfsprogs Error: There are no enabled repositories in "/etc/yum.repos.d/". Unable to detect release version (use '--releasever' to specify release version) 0 files removed 47e4e5190bd5f42cd7d501edd90fd3ddb4eb3f23c6d6a0e314a1734d6fe11e89 Getting image source signatures Copying blob 4092f1e3e312 skipped: already exists Copying blob a7a506debb5f done | Copying config 71dc853854 done | Writing manifest to image destination 71dc853854514b6dfe4d1f2a79a900fd1ec48d6940891ca1b407dbe202171340 Built base image: sample_registry/csm-base-image:test

This needs to run on RHEL, not openSuSE. I added a check to make sure that the user is on RHEL