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

Validate Terraform 1.5.7 and add tool validation pipeline #208

Merged
merged 1 commit into from
Feb 9, 2024

Conversation

mpagot
Copy link
Collaborator

@mpagot mpagot commented Feb 7, 2024

Commit description

Improve the Dockerfile to use Terraform 1.5.7 and Python 3.11.
Add virtual env in the Dockerfile to fix a bug that prevented pip installation of python packages.
Add bash script to validate the docker image.
Add githubaction to build the container image and run the validation
test.

Context

These project needs some tools to be pre-installed on the JumpHost to perform the deployment. Two of them are Python and Terraform. There's no way for the project to have control over what is installed, so tools version for these two are only suggested in the project main readme.

Dockerfile is not the main way this deployment is used, openQA is not running the qe-sap-deployment code from within a container.

PR purpose

This PR is about:

  • creating a test bench to validate external dependency not directly under control of this project (Terraform and Python)
  • test created in this PR are not enough to say that a new version of Python or Terraform are good to be used with qe-sap-deployment ...
  • ... but it is a good starting point 🥇

Pro n Cons

  • What I do not like about this PR is that version of Terraform and Python are spread in many places:
    • In the main readme
    • Dockerfile
    • In some YAML to define the GH pipeline

If something fails during the execution of the new pipeline is not so easy to understand what was wrong

The new pipeline could fails due to external issues, the Dockerfile are installing stuff from the web

Ticket

TEAM-9050

Verification

VR is the PR pipeline, took to the one named tools https://github.com/SUSE/qe-sap-deployment/actions/runs/7822845007/job/21342714076?pr=208

Improve the Dockerfile to use Terraform 1.5.7 and Python 3.11.
Add virtual env in the Dockerfile to fix a bug that prevented pip installation of python packages.
Add bash script to validate the docker image.
Add githubaction to build the container image and run the validation
test.
@mpagot mpagot marked this pull request as ready for review February 8, 2024 00:12
@mpagot mpagot changed the title Move to terraform 1.5.7 and add Dockerfile validation Validate Terraform 1.5.7 and add tool validation pipeline Feb 8, 2024
Copy link
Collaborator

@BillAnastasiadis BillAnastasiadis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Collaborator

@lpalovsky lpalovsky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mpagot mpagot merged commit 3049284 into SUSE:main Feb 9, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants