From 9035282c5226f1f841c7651b3a1679057ed0fe53 Mon Sep 17 00:00:00 2001
From: Eesaan Atluri <atlurie@uab.edu>
Date: Wed, 11 Dec 2024 08:30:02 -0500
Subject: [PATCH] Avoid building base instead use base img as src img

This will save time during image build. If you need base image build it
separtely and use the new image as src for build.
---
 openstack-login/nodeimage.pkr.hcl | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/openstack-login/nodeimage.pkr.hcl b/openstack-login/nodeimage.pkr.hcl
index 008b768..057cc3e 100644
--- a/openstack-login/nodeimage.pkr.hcl
+++ b/openstack-login/nodeimage.pkr.hcl
@@ -35,15 +35,6 @@ source "openstack" "image" {
 
 build {
   sources = ["source.openstack.image"]
-
-  provisioner "shell" {
-    inline = [
-      "sudo yum install -y libselinux-python3 python3 python3-pip tmux vim git bash-completion curl wget unzip",
-      "sudo python3 -m pip install --upgrade pip",
-      "sudo pip3 install s3cmd==2.3.0 ansible==4.10.0 python-openstackclient==5.8.0"
-    ]
-  }
-
   provisioner "ansible" {
     use_proxy     = false
     user          = var.ssh_username
-- 
GitLab