[Resolved] How to pass login and key values in Containerfile

How to pass login and key in Containerfile when building a RedHat image using Podman?

Hi @rizwan, thanks for starting this thread.

Just for reference, here is the Installation Guide with our recommended instructions for installing SDV Enterprise.

Are you running into issues? It would be helpful if you could explain in a little bit more detail what challenges you are running into. I’m not as familiar with the RedHat/Podman tech stack, so any information about what you tried, what issues you are encountering, etc. would be helpful.

In the meantime, I am providing a few instructions for bypassing the username/password interactivity. I’m guessing it might be useful for your case since you are installing it in a container.

Login/Password Interactivity

Currently, the SDV Installer will prompt you to input your username and password interactively as shown below.

% sdv-installer install --upgrade
Username: <email>
License Key: <license key>

In some cases you may want to bypass this interactive element, for eg. if you’d like to create a pipeline that automatically installs and uses SDV Enterprise. Is this the challenge you are currently facing?

If so, I would recommend going through these instructions for directly inputting your username/password into the installation command.

Alternatively, you can also choose to do an offline installation, meaning that you first download the package locally (where you are able to interactively input your username/password), and then transferring the package into its final destination before completing the installation. Instructions for that are available here.

Hope that helps! Please feel free to provide any other information about what you tried, what issues you are facing, etc. so that we can better help. Thanks!

Hi @neha , thank you very much for a thorough explanation. Sorry, I did not explain very well about the issue that I was having. I installed the Enterprise version successfully. I was looking for a way to build a RedHat image with Enterprise version of SDV. The issue was that it was asking for username and key while executing the commands from the Containerfile. But as you explained, I can download the package locally and then transfer the package through Containerfile. It is a two step process but a clean way to build a Podman Container with RedHat, required libraries, Python, PIP and SDV.

No problem – and thanks for confirming!

Yes, the two-step (offline) installation would work for your case. I would make sure that the local installation is done with the final destination in mind – this section explains more details about downloading for a different environment than the one you may currently be on.

Always happy to help if you run into any problems with this!

I was able to build the RedHat image and install SDV Enterprise packages using offline mode. Thank you for your help!

1 Like

Great – thanks for confirming! (I’m not sure why the pip install instructions weren’t working but we’ll have a better solution for that soon as well.)

I’ll mark this thread as resolved. Please feel free to start a new thread for any other topics (or reply more to this one if relevant).

The pip install works fine. I was looking for a solution to create a complete RedHat image with SDV Enterprise packages and required libraries via Containerfile and it doesn’t allow data input. Hence, it failed. So, as you suggested to download the packages and install offline. That worked very well.

1 Like

Hi @rizwan, starting from today’s release, you should be able to provide your username/license key credentials within a single command.

I realize you already have a solution for your current project, but just wanted to flag this change in case it’s useful to you down the road.

# first upgrade SDV Installer
% pip install sdv-installer --upgrade

# now you can input your username and license key direclty into the command
% sdv-installer install --username user@company.com --license-key 123

Source: See the release notes.

Hi @neha , thank you for adding that functionality. This will bring a seamless process of creating a Linux image with SDV Enterprise version installed. Much appreciated.

1 Like