Skip to content

Latest commit

 

History

History
52 lines (36 loc) · 1.54 KB

README.md

File metadata and controls

52 lines (36 loc) · 1.54 KB

awsclirepo

Wrapper for SRPM building tools for awscli on RHEL. RHEL 7 has a working version published via EPEL, but it's out of date, so this provides an RPM based upgrade path.

Building awscli

Ideally, install "mock" and use that to build for both RHEL 6 and RHEL

  • make cfgs # Create local .cfg configs for "mock".
    • centos+epel-7-x86_64.cfg # Used for some makefiles
    • centos-stream+epel-8-x86_64.cfg
    • centos-stream+epel-9-x86_64.cfg

# awsclirepo-7-x86_64.cfg

# awsclirepo-8-x86_64.cfg

# awsclirepo-9-x86_64.cfg

  • make repos # Creates local local yum repositories in $PWD/awsclirepo

    • awsclirepo/el/7
  • make # Make all distinct versions using "mock"

Building a compoenent, without "mock" and in the local working system, can also be done for testing.

  • make build

awscli has strong dependencies on other python modules that may, or may not, be available in a particular OS. These are listed in the Makefile

Installing Awscli

The relevant yum repository is built locally in awsclireepo. To enable the repository, use this:

  • make repo

Then install the .repo file in /etc/yum.repos.d/ as directed. This requires root privileges, which is why it's not automated.

Awscli RPM Build Security

There is a significant security risk with enabling yum repositories for locally built components. Generating GPF signed packages and ensuring that the compneents are in this build location are securely and safely built is not addressed in this test setup.

	Nico Kadel-Garcia <nkadel@gmail.com>