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

Bundle script for Offline Installation of Porter #3205

Closed
wants to merge 9 commits into from

Conversation

jmcudd
Copy link
Contributor

@jmcudd jmcudd commented Aug 14, 2024

What does this change

Give a summary of the change, and how it affects end-users. It's okay to copy/paste your commit messages.

The new bundle-linux.sh script automates the creation of a tarball containing all the necessary artifacts for installing the Porter CLI, including the MongoDB Docker image and the Porter installation files. It pulls a specific version of the MongoDB image and packages all the downloaded assets into a compressed tarball, providing clear instructions for extracting the bundle and executing the installation script. This makes it easy for users to set up Porter in air-gapped environments.

The install-linux.sh script has been updated to handle offline installations by installing local binaries and the MongoDB image if they are present. It now checks for the existence of the mongo_image.tar file, loads the MongoDB image into Docker, and runs a MongoDB container during installation if it is not already running. Additionally, the script allows the use of a local porter-linux-amd64 binary if it is available, allowing for an fully offline installation.

What issue does it fix

Closes #3198

Notes for the reviewer

The bundle-linux.sh script pulls the latest version of the install-linux.sh from the CDN, so when testing you will need to replace the downloaded install-linux.sh file with the one from this branch.

Checklist

  • Did you write tests?
  • Did you write documentation?
  • Did you change porter.yaml or a storage document record? Update the corresponding schema file.
  • If this is your first pull request, please add your name to the bottom of our Contributors list. Thank you for making Porter better! 🙇‍♀️

Copy link
Contributor

@kichristensen kichristensen left a comment

Choose a reason for hiding this comment

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

Thank you very much for the PR

scripts/bundle/bundle-linux.sh Show resolved Hide resolved
Copy link
Contributor

@kichristensen kichristensen left a comment

Choose a reason for hiding this comment

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

I do understand the change you are implementing here, but I'm a little concerned about the complexity it adds to the installation script.
Also preferably it should be implemented for the Powershell installation script.
Would it be possible for you to join the community meeting, so we can discuss the different options here? The next community meeting is on Thursday

docs/content/docs/getting-started/install-porter.md Outdated Show resolved Hide resolved
kichristensen and others added 8 commits August 19, 2024 17:25
* The plugin logger should use verbosity level

The log level is meant to be used only for log files.

Signed-off-by: Kim Christensen <[email protected]>

* Correctly detect log level from plugin logs

The constants used before was numbers, causing the writing to always
fall back to writing as debug

Signed-off-by: Kim Christensen <[email protected]>

* Correct the documentation

Signed-off-by: Kim Christensen <[email protected]>

* Do not log information messages from the plugin infrastructure

Signed-off-by: Kim Christensen <[email protected]>

---------

Signed-off-by: Kim Christensen <[email protected]>
Co-authored-by: schristoff <[email protected]>
Signed-off-by: John Cudd <[email protected]>
Signed-off-by: John Cudd <[email protected]>
Signed-off-by: John Cudd <[email protected]>
Signed-off-by: John Cudd <[email protected]>
@jmcudd jmcudd mentioned this pull request Aug 20, 2024
4 tasks
@jmcudd jmcudd closed this Aug 20, 2024
@jmcudd
Copy link
Contributor Author

jmcudd commented Aug 20, 2024

Closed in favor of #3210

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.

Offline Environment Error: Unable to Pull Mongo Image in Porter v1.1.0
2 participants