From c4278004cf1cffa873a45802117e936919269755 Mon Sep 17 00:00:00 2001 From: John Cudd Date: Wed, 14 Aug 2024 11:31:42 -0400 Subject: [PATCH] Updated documentation --- .../docs/getting-started/install-porter.md | 19 ++++++++++++++++--- scripts/bundle/bundle-linux.sh | 2 +- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/docs/content/docs/getting-started/install-porter.md b/docs/content/docs/getting-started/install-porter.md index 76d07ed0c..e755c0be5 100644 --- a/docs/content/docs/getting-started/install-porter.md +++ b/docs/content/docs/getting-started/install-porter.md @@ -32,9 +32,7 @@ curl -L https://cdn.porter.sh/$VERSION/install-mac.sh | bash ``` **Linux** - -```bash -export VERSION="v1.1.0" +```bash export VERSION="v1.1.0" curl -L https://cdn.porter.sh/$VERSION/install-linux.sh | bash ``` @@ -113,6 +111,21 @@ You will need to create a [PowerShell Profile][ps-link] if you do not have one. ``` iwr "https://cdn.porter.sh/latest/install-windows.ps1" -UseBasicParsing | iex ``` +## Air-gapped Install + +To run the installation script in an air-gapped environment, create an air-gapped installation package with the `bundle-linux.sh` script. + +``` +curl -L https://raw.githubusercontent.com/getporter/porter/main/scripts/bundle/bundle-linux.sh | bash +``` + +Then extract and install Porter. + +``` +echo "tar -xzf porter-air-gapped-install-latest.tar.gz -C ." +echo "cd porter-air-gapped-install-latest" +echo "bash install-linux.sh" +``` ## Canary diff --git a/scripts/bundle/bundle-linux.sh b/scripts/bundle/bundle-linux.sh index 0fad5a526..aab344b57 100755 --- a/scripts/bundle/bundle-linux.sh +++ b/scripts/bundle/bundle-linux.sh @@ -11,7 +11,7 @@ PORTER_VERSION=${PORTER_VERSION:-latest} MONGO_IMAGE_FILE="mongo_image.tar" MONGO_IMAGE_URL="docker.io/library/mongo:4.0-xenial" -BUNDLE_NAME="porter-offline-install-$PORTER_VERSION" +BUNDLE_NAME="porter-air-gapped-install-$PORTER_VERSION" DOWNLOAD_DIR="/tmp/$BUNDLE_NAME" mkdir -p $DOWNLOAD_DIR