Skip to content

Commit

Permalink
Revert "Revert "[KAG-1585] Convert install pages to use Cloudsmith"" (#…
Browse files Browse the repository at this point in the history
…5859)

Revert "Revert "[KAG-1585] Convert install pages to use Cloudsmith" (#5847)"

This reverts commit 043c9fc.
  • Loading branch information
curiositycasualty committed Jul 28, 2023
1 parent 363c489 commit fb116c2
Show file tree
Hide file tree
Showing 37 changed files with 2,163 additions and 475 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/install-instructions-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Install Instructions
on: workflow_dispatch

jobs:
install-instructions:
env:
BASE_URL: https://docs.konghq.com
strategy:
fail-fast: false
matrix:
distro: [ubuntu, rhel, amazon-linux, debian, centos]
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v3
with:
submodules: "recursive"

- name: Run Install tests
env:
DISTRO: ${{ matrix.distro }}
CONTINUE_ON_ERROR: 1
IGNORE_SKIPS: 1
EXPECTED_FAILURES_EXIT_CODE: 0
run: |
cd tools/install-tester
npm ci
node index.js
16 changes: 16 additions & 0 deletions app/_data/installation/gateway.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
"33":
rsa_key: 4EABB1776918A36F
gpg_key: 3B738D8FCD250236
"32":
rsa_key: D2E081E2873698A3
gpg_key: 998DFF461A62FF7C
"31":
gpg_key: 54094882E62F5A09
"30":
gpg_key: B7F44A4F4D65A99D
"28":
rsa_key: 6508D42FDA3B3FB4
gpg_key: 1A2F35336774EA56
"legacy":
rsa_key: E0115B89C2DBD3AD
gpg_key: 998DFF461A62FF7C
7 changes: 7 additions & 0 deletions app/_plugins/generators/versions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,15 @@ def generate(site) # rubocop:disable Metrics/PerceivedComplexity, Metrics/Method

page.data['release'] = current['release']
page.data['version'] = current['version']
page.data['versions'] = {
'ce' => current['ce-version'],
'ee' => current['ee-version']
}
end

# Add a `major_minor_version` property which is used for cloudsmith install pages
page.data['major_minor_version'] = page.data['release'].gsub('.x', '').gsub('.', '') if page.data['release']

# Clean up nav_items for generated pages as there's an
# additional level of nesting
page.data['nav_items'] = page.data['nav_items']['items'] if page.data['nav_items'].is_a?(Hash)
Expand Down
18 changes: 12 additions & 6 deletions app/_src/gateway/install/docker/build-custom-images.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,18 @@ chmod +x docker-entrypoint.sh
```

1. Download the {{site.base_gateway}} package:
* **Debian and Ubuntu**: [.deb]({{ site.links.download }}/gateway-3.x-ubuntu-focal/pool/all/k/kong-enterprise-edition/kong-enterprise-edition_{{page.versions.ee}}_amd64.deb).
* **Alpine**: .apk ([amd64]({{ site.links.download }}/gateway-3.x-alpine/kong-enterprise-edition-{{page.versions.ee}}.amd64.apk.tar.gz), [arm64]({{ site.links.download }}/gateway-3.x-alpine/kong-enterprise-edition-{{page.versions.ee}}.arm64.apk.tar.gz))
*
{% if_version eq:3.0.x %} **RHEL**:[ .rpm]({{ site.links.download }}/gateway-3.x-rhel-8/Packages/k/kong-enterprise-edition-{{page.versions.ee}}.rhel8.6.amd64.rpm){% endif_version %}
{% if_version gte:3.1.x %} **RHEL**:[ .rpm]({{ site.links.download }}/gateway-3.x-rhel-8/Packages/k/kong-enterprise-edition-{{page.versions.ee}}.rhel8.amd64.rpm){% endif_version %}

* **Debian and Ubuntu**: [.deb]({{ site.links.cloudsmith }}/public/gateway-{{ page.major_minor_version }}/deb/ubuntu/pool/bionic/main/k/ko/kong-enterprise-edition_{{page.versions.ee}}/kong-enterprise-edition_{{page.versions.ee}}_amd64.deb).
{% comment %}
not all of the older alpine "packages" met Cloudsmith's definition for what an alpine package must be
so some are uploaded there as "raw" artifacts instead and must be linked to differently
{% endcomment %}
{% if_version eq:3.0.x %}
* **Alpine**: [.apk]({{ site.links.cloudsmith }}/public/gateway-{{ page.major_minor_version }}/raw/names/kong-enterprise-edition-x86_64/versions/{{page.versions.ee}}/kong-enterprise-edition-{{page.versions.ee}}.x86_64.apk.tar.gz)
{% endif_version %}
{% if_version lt:3.0.x gte:3.1.x %}
* **Alpine**: [.apk]({{ site.links.cloudsmith }}/public/gateway-{{ page.major_minor_version }}/alpine/any-version/main/x86_64/kong-enterprise-edition-{{page.versions.ee}}.apk)
{% endif_version %}
* **RHEL**:[ .rpm]({{ site.links.cloudsmith }}/public/gateway-{{ page.major_minor_version }}/rpm/el/8/x86_64/kong-enterprise-edition-{{page.versions.ee}}.el8.x86_64.rpm)

1. Create a `Dockerfile`, ensuring you replace the filename by the first `COPY` with the name of the {{site.base_gateway}} file you downloaded in step 2:

Expand Down
17 changes: 8 additions & 9 deletions app/_src/gateway/install/linux/amazon-linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ Install {{site.base_gateway}} on Amazon Linux from the command line.
{% navtabs_ee codeblock %}
{% navtab Kong Gateway %}
```bash
curl -Lo kong-enterprise-edition-{{page.versions.ee}}.aws.amd64.rpm "{{ site.links.download }}/gateway-3.x-amazonlinux-2/Packages/k/kong-enterprise-edition-{{page.versions.ee}}.aws.amd64.rpm"
curl -Lo kong-enterprise-edition-{{page.versions.ee}}.rpm $(rpm --eval {{ site.links.cloudsmith }}/public/gateway-{{ page.major_minor_version }}/rpm/amzn/%{amzn}/x86_64/kong-enterprise-edition-{{page.versions.ee}}.aws.x86_64.rpm)
```
{% endnavtab %}
{% navtab Kong Gateway (OSS) %}
```bash
curl -Lo kong-{{page.versions.ce}}.aws.amd64.rpm "{{ site.links.download }}/gateway-3.x-amazonlinux-2/Packages/k/kong-{{page.versions.ce}}.aws.amd64.rpm"
curl -Lo kong-{{page.versions.ce}}.rpm $(rpm --eval {{ site.links.cloudsmith }}/public/gateway-{{ page.major_minor_version }}/rpm/amzn/%{amzn}/x86_64/kong-{{page.versions.ce}}.aws.x86_64.rpm)
```
{% endnavtab %}
{% endnavtabs_ee %}
Expand All @@ -49,12 +49,12 @@ curl -Lo kong-{{page.versions.ce}}.aws.amd64.rpm "{{ site.links.download }}/gate
{% navtabs_ee codeblock %}
{% navtab Kong Gateway %}
```bash
sudo yum install kong-enterprise-edition-{{page.versions.ee}}.aws.amd64.rpm
sudo yum install -y kong-enterprise-edition-{{page.versions.ee}}.rpm
```
{% endnavtab %}
{% navtab Kong Gateway (OSS) %}
```bash
sudo yum install kong-{{page.versions.ce}}.aws.amd64.rpm
sudo yum install -y kong-{{page.versions.ce}}.rpm
```
{% endnavtab %}
{% endnavtabs_ee %}
Expand All @@ -67,11 +67,10 @@ sudo yum install kong-{{page.versions.ce}}.aws.amd64.rpm

Install the YUM repository from the command line.

{% include_cached /md/gateway/rpm-gpg-key-2023.md kong_version=page.kong_version %}

1. Download the Kong YUM repository:
```bash
curl https://download.konghq.com/gateway-3.x-amazonlinux-2/config.repo | sudo tee /etc/yum.repos.d/kong.repo
curl -1sLf "{{ site.links.cloudsmith }}/public/gateway-{{ page.major_minor_version }}/config.rpm.txt?distro=amzn&codename=$(rpm --eval '%{amzn}')" | sudo tee /etc/yum.repos.d/kong-gateway-{{ page.major_minor_version }}.repo > /dev/null
sudo yum -q makecache -y --disablerepo='*' --enablerepo='kong-gateway-{{ page.major_minor_version }}'
```

2. Install Kong:
Expand All @@ -80,12 +79,12 @@ Install the YUM repository from the command line.
{% navtabs_ee codeblock %}
{% navtab Kong Gateway %}
```bash
sudo yum install kong-enterprise-edition-{{page.versions.ee}}
sudo yum install -y kong-enterprise-edition-{{page.versions.ee}}
```
{% endnavtab %}
{% navtab Kong Gateway (OSS) %}
```bash
sudo yum install kong-{{page.versions.ce}}
sudo yum install -y kong-{{page.versions.ce}}
```
{% endnavtab %}
{% endnavtabs_ee %}
Expand Down
32 changes: 14 additions & 18 deletions app/_src/gateway/install/linux/debian.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,13 @@ Install {{site.base_gateway}} on Debian from the command line.
{% navtabs_ee codeblock %}
{% navtab Kong Gateway %}
```bash
curl -Lo kong-enterprise-edition-{{page.versions.ee}}.all.deb "{{ site.links.download }}/gateway-3.x-debian-$(lsb_release -cs)/pool/all/k/kong-enterprise-edition/kong-enterprise-edition_{{page.versions.ee}}_amd64.deb"
curl -Lo kong-enterprise-edition-{{page.versions.ee}}.amd64.deb "{{ site.links.cloudsmith }}/public/gateway-{{ page.major_minor_version }}/deb/debian/pool/bullseye/main/k/ko/kong-enterprise-edition_{{page.versions.ee}}/kong-enterprise-edition_{{page.versions.ee}}_amd64.deb"
```
{% endnavtab %}
{% navtab Kong Gateway (OSS) %}
```bash
curl -Lo kong-{{page.versions.ce}}.amd64.deb "{{ site.links.download }}/gateway-3.x-debian-$(lsb_release -cs)/pool/all/k/kong/kong_{{page.versions.ce}}_amd64.deb"
curl -Lo kong-{{page.versions.ce}}.amd64.deb "{{ site.links.cloudsmith }}/public/gateway-{{ page.major_minor_version }}/deb/ubuntu/pool/bionic/main/k/ko/kong_{{page.versions.ce}}/kong_{{page.versions.ce}}_amd64.deb"

```
{% endnavtab %}
{% endnavtabs_ee %}
Expand All @@ -50,39 +51,34 @@ curl -Lo kong-{{page.versions.ce}}.amd64.deb "{{ site.links.download }}/gateway-
{% navtabs_ee codeblock %}
{% navtab Kong Gateway %}
```bash
sudo dpkg -i kong-enterprise-edition-{{page.versions.ee}}.all.deb
sudo apt install -y ./kong-enterprise-edition-{{page.versions.ee}}.amd64.deb
```
{% endnavtab %}
{% navtab Kong Gateway (OSS) %}
```bash
sudo dpkg -i kong-{{page.versions.ce}}.amd64.deb
sudo apt install -y ./kong-{{page.versions.ce}}.amd64.deb
```
{% endnavtab %}
{% endnavtabs_ee %}
{% endcapture %}

{{ install_package | indent | replace: " </code>", "</code>" }}

{% navtabs_ee %}
{% navtab Kong Gateway %}
{:.note .no-icon}
> Once {{ site.base_gateway }} is installed, you may want to run `sudo apt-mark hold kong-enterprise-edition`. This will prevent an accidental upgrade to a new version.
{% endnavtab %}
{% navtab Kong Gateway (OSS) %}
{:.note .no-icon}
> Once {{ site.base_gateway }} is installed, you may want to run `sudo apt-mark hold kong`. This will prevent an accidental upgrade to a new version.
{% endnavtab %}
{% endnavtabs_ee %}

{% endnavtab %}
{% navtab APT repository %}

Install the APT repository from the command line.

{% assign gpg_key = site.data.installation.gateway[page.major_minor_version].gpg_key %}
{% unless gpg_key %}
{% assign gpg_key = site.data.installation.gateway.legacy.gpg_key %}
{% endunless %}

1. Download the Kong APT repository:
```bash
echo "deb [trusted=yes] {{ site.links.download }}/gateway-3.x-debian-$(lsb_release -sc)/ \
default all" | sudo tee /etc/apt/sources.list.d/kong.list
curl -1sLf "{{ site.links.cloudsmith }}/public/gateway-{{ page.major_minor_version }}/gpg.{{ gpg_key }}.key" | gpg --dearmor | sudo tee /usr/share/keyrings/kong-gateway-{{ page.major_minor_version }}-archive-keyring.gpg > /dev/null
curl -1sLf "{{ site.links.cloudsmith }}/public/gateway-{{ page.major_minor_version }}/config.deb.txt?distro=debian&codename=$(lsb_release -sc)" | sudo tee /etc/apt/sources.list.d/kong-gateway-{{ page.major_minor_version }}.list > /dev/null
```
2. Update the repository:
```bash
Expand All @@ -94,12 +90,12 @@ Install the APT repository from the command line.
{% navtabs_ee codeblock %}
{% navtab Kong Gateway %}
```bash
apt install -y kong-enterprise-edition={{page.versions.ee}}
sudo apt install -y kong-enterprise-edition={{page.versions.ee}}
```
{% endnavtab %}
{% navtab Kong Gateway (OSS) %}
```bash
apt install -y kong={{page.versions.ce}}
sudo apt install -y kong={{page.versions.ce}}
```
{% endnavtab %}
{% endnavtabs_ee %}
Expand Down
17 changes: 8 additions & 9 deletions app/_src/gateway/install/linux/rhel.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ Install {{site.base_gateway}} on RHEL from the command line.
{% navtabs_ee codeblock %}
{% navtab Kong Gateway %}
```bash
curl -Lo kong-enterprise-edition-{{page.versions.ee}}.rpm $( rpm --eval "{{ site.links.download }}/gateway-3.x-rhel-%{rhel}/Packages/k/kong-enterprise-edition-{{page.versions.ee}}.rhel%{rhel}.amd64.rpm")
curl -Lo kong-enterprise-edition-{{page.versions.ee}}.rpm $(rpm --eval {{ site.links.cloudsmith }}/public/gateway-{{ page.major_minor_version }}/rpm/el/%{rhel}/x86_64/kong-enterprise-edition-{{page.versions.ee}}.el%{rhel}.x86_64.rpm)
```
{% endnavtab %}
{% navtab Kong Gateway (OSS) %}
```bash
curl -Lo kong-{{page.versions.ce}}.rpm $(rpm --eval "{{ site.links.download }}/gateway-3.x-rhel-%{rhel}/Packages/k/kong-{{page.versions.ce}}.rhel%{rhel}.amd64.rpm")
curl -Lo kong-{{page.versions.ce}}.rpm $(rpm --eval {{ site.links.cloudsmith }}/public/gateway-{{ page.major_minor_version }}/rpm/el/%{rhel}/x86_64/kong-{{page.versions.ce}}.el%{rhel}.x86_64.rpm)
```
{% endnavtab %}
{% endnavtabs_ee %}
Expand All @@ -50,12 +50,12 @@ curl -Lo kong-{{page.versions.ce}}.rpm $(rpm --eval "{{ site.links.download }}/g
{% navtabs_ee codeblock %}
{% navtab Kong Gateway %}
```bash
sudo yum install kong-enterprise-edition-{{page.versions.ee}}.rpm
sudo yum install -y kong-enterprise-edition-{{page.versions.ee}}.rpm
```
{% endnavtab %}
{% navtab Kong Gateway (OSS) %}
```bash
sudo yum install kong-{{page.versions.ce}}.rpm
sudo yum install -y kong-{{page.versions.ce}}.rpm
```
{% endnavtab %}
{% endnavtabs_ee %}
Expand All @@ -81,24 +81,23 @@ rpm -iv kong-{{page.versions.ce}}.rpm
Install the YUM repository from the command line.
{% include_cached /md/gateway/rpm-gpg-key-2023.md kong_version=page.kong_version %}
1. Download the Kong YUM repository:
```bash
curl $(rpm --eval "{{ site.links.download }}/gateway-3.x-rhel-%{rhel}/config.repo") | sudo tee /etc/yum.repos.d/kong.repo
curl -1sLf "{{ site.links.cloudsmith }}/public/gateway-{{ page.major_minor_version }}/config.rpm.txt?distro=el&codename=$(rpm --eval '%{rhel}')" | sudo tee /etc/yum.repos.d/kong-gateway-{{ page.major_minor_version }}.repo
sudo yum -q makecache -y --disablerepo='*' --enablerepo='kong-gateway-{{ page.major_minor_version }}'
```
2. Install Kong:
{% capture install_from_repo %}
{% navtabs_ee codeblock %}
{% navtab Kong Gateway %}
```bash
sudo yum install kong-enterprise-edition-{{page.versions.ee}}
sudo yum install -y kong-enterprise-edition-{{page.versions.ee}}
```
{% endnavtab %}
{% navtab Kong Gateway (OSS) %}
```bash
sudo yum install kong-{{page.versions.ce}}
sudo yum install -y kong-{{page.versions.ce}}
```
{% endnavtab %}
{% endnavtabs_ee %}
Expand Down
19 changes: 12 additions & 7 deletions app/_src/gateway/install/linux/ubuntu.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ Once {{ site.base_gateway }} is running, you may want to do the following:
You can install {{site.base_gateway}} by downloading an installation package or using our APT repository.

{:.note .no-icon}
> * We currently package {{ site.base_gateway }} for Ubuntu Bionic and Focal. If you are using a different release, replace `$(lsb_release -sc)` with `focal` in the commands below. To check your release name run `lsb_release -sc`.
> * We currently package {{ site.base_gateway }} for Ubuntu Bionic, Focal, and Jammy. If you are using a different release, replace `$(lsb_release -sc)` with `jammy` in the commands below. To check your release name, run `lsb_release -sc`.
> * {{site.base_gateway}} supports running on [AWS Graviton processors](https://aws.amazon.com/ec2/graviton/). It can run in all AWS Regions where AWS Graviton is supported.
{% navtabs %}
Expand All @@ -84,12 +84,12 @@ Install {{site.base_gateway}} on Ubuntu from the command line.
{% navtabs_ee codeblock %}
{% navtab Kong Gateway %}
```bash
curl -Lo kong-enterprise-edition-{{page.versions.ee}}.amd64.deb "{{ site.links.download }}/gateway-3.x-ubuntu-$(lsb_release -sc)/pool/all/k/kong-enterprise-edition/kong-enterprise-edition_{{page.versions.ee}}_amd64.deb"
curl -Lo kong-enterprise-edition-{{page.versions.ee}}.amd64.deb "{{ site.links.cloudsmith }}/public/gateway-{{ page.major_minor_version }}/deb/ubuntu/pool/bionic/main/k/ko/kong-enterprise-edition_{{page.versions.ee}}/kong-enterprise-edition_{{page.versions.ee}}_amd64.deb"
```
{% endnavtab %}
{% navtab Kong Gateway (OSS) %}
```bash
curl -Lo kong-{{page.versions.ce}}.amd64.deb "{{ site.links.download }}/gateway-3.x-ubuntu-$(lsb_release -sc)/pool/all/k/kong/kong_{{page.versions.ce}}_amd64.deb"
curl -Lo kong-{{page.versions.ce}}.amd64.deb "{{ site.links.cloudsmith }}/public/gateway-{{ page.major_minor_version }}/deb/ubuntu/pool/bionic/main/k/ko/kong_{{page.versions.ce}}/kong_{{page.versions.ce}}_amd64.deb"
```
{% endnavtab %}
{% endnavtabs_ee %}
Expand Down Expand Up @@ -132,10 +132,15 @@ sudo apt install -y ./kong-{{page.versions.ce}}.amd64.deb

Install the APT repository from the command line.

{% assign gpg_key = site.data.installation.gateway[page.major_minor_version].gpg_key %}
{% unless gpg_key %}
{% assign gpg_key = site.data.installation.gateway.legacy.gpg_key %}
{% endunless %}

1. Setup the Kong APT repository:
```bash
echo "deb [trusted=yes] {{ site.links.download }}/gateway-3.x-ubuntu-$(lsb_release -sc)/ \
default all" | sudo tee /etc/apt/sources.list.d/kong.list
curl -1sLf "{{ site.links.cloudsmith }}/public/gateway-{{ page.major_minor_version }}/gpg.{{ gpg_key }}.key" | gpg --dearmor | sudo tee /usr/share/keyrings/kong-gateway-{{ page.major_minor_version }}-archive-keyring.gpg > /dev/null
curl -1sLf "{{ site.links.cloudsmith }}/public/gateway-{{ page.major_minor_version }}/config.deb.txt?distro=ubuntu&codename=focal" | sudo tee /etc/apt/sources.list.d/kong-gateway-{{ page.major_minor_version }}.list > /dev/null
```

2. Update the repository:
Expand All @@ -149,12 +154,12 @@ Install the APT repository from the command line.
{% navtabs_ee codeblock %}
{% navtab Kong Gateway %}
```bash
sudo apt install -y kong-enterprise-edition={{page.versions.ee}}
sudo apt-get install -y kong-enterprise-edition={{page.versions.ee}}
```
{% endnavtab %}
{% navtab Kong Gateway (OSS) %}
```bash
apt install -y kong={{page.versions.ce}}
sudo apt-get install -y kong={{page.versions.ce}}
```
{% endnavtab %}
{% endnavtabs_ee %}
Expand Down
16 changes: 8 additions & 8 deletions app/_src/gateway/kong-enterprise/fips-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ The FIPS compliant Ubuntu 20.04 and Ubuntu 22.04 packages can be installed using

1. Set up the Kong APT repository:
```bash
echo "deb [trusted=yes] {{ site.links.download }}/gateway-3.x-ubuntu-$(lsb_release -sc)/ \
default all" | sudo tee /etc/apt/sources.list.d/kong.list
curl -1sLf "{{ site.links.cloudsmith }}/public/gateway-{{ page.major_minor_version }}/gpg.{{ gpg_key }}.key" | gpg --dearmor >> /usr/share/keyrings/kong-gateway-{{ page.major_minor_version }}-archive-keyring.gpg
curl -1sLf "{{ site.links.cloudsmith }}/public/gateway-{{ page.major_minor_version }}/config.deb.txt?distro=ubuntu&codename=$(lsb_release -sc)" > /etc/apt/sources.list.d/kong-gateway-{{ page.major_minor_version }}.list
```

2. Update the repository:
Expand All @@ -46,8 +46,8 @@ The FIPS compliant Ubuntu 20.04 package can be installed using the package disti

1. Set up the Kong APT repository:
```bash
echo "deb [trusted=yes] {{ site.links.download }}/gateway-3.x-ubuntu-$(lsb_release -sc)/ \
default all" | sudo tee /etc/apt/sources.list.d/kong.list
curl -1sLf "{{ site.links.cloudsmith }}/public/gateway-{{ page.major_minor_version }}/gpg.{{ gpg_key }}.key" | gpg --dearmor >> /usr/share/keyrings/kong-gateway-{{ page.major_minor_version }}-archive-keyring.gpg
curl -1sLf "{{ site.links.cloudsmith }}/public/gateway-{{ page.major_minor_version }}/config.deb.txt?distro=ubuntu&codename=$(lsb_release -sc)" > /etc/apt/sources.list.d/kong-gateway-{{ page.major_minor_version }}.list
```

2. Update the repository:
Expand All @@ -72,8 +72,7 @@ The FIPS compliant Red Hat 8 package can be installed using the package distinct
1. Download the FIPS package:

```sh
curl -Lo kong-enterprise-edition-fips-{{page.versions.ee}}.rpm \
$( rpm --eval "{{ site.links.download }}/gateway-3.x-rhel-%{rhel}/Packages/k/kong-enterprise-edition-fips-{{page.versions.ee}}.rhel%{rhel}.amd64.rpm")
curl -Lo kong-enterprise-edition-fips-{{page.versions.ee}}.rpm $(rpm --eval {{ site.links.cloudsmith }}/public/gateway-{{ page.major_minor_version }}/rpm/el/%{rhel}/x86_64/kong-enterprise-edition-fips-{{page.versions.ee}}.el%{rhel}.x86_64.rpm)
```

2. Install the {{site.base_gateway}} FIPS package:
Expand All @@ -87,7 +86,8 @@ The FIPS compliant Red Hat 8 package can be installed using the package distinct
1. Set up the Kong Yum repository:

```bash
curl $(rpm --eval "{{ site.links.download }}/gateway-3.x-rhel-%{rhel}/config.repo") | sudo tee /etc/yum.repos.d/kong.repo
curl -1sLf "{{ site.links.cloudsmith }}/public/gateway-{{ page.major_minor_version }}/config.rpm.txt?distro=el&codename=$(rpm --eval '%{rhel}')" | sudo tee /etc/yum.repos.d/kong-gateway-{{ page.major_minor_version }}.repo
sudo yum -q makecache -y --disablerepo='*' --enablerepo='kong-gateway-{{ page.major_minor_version }}'
```

2. Install the {{site.base_gateway}} FIPS package:
Expand Down Expand Up @@ -118,4 +118,4 @@ export KONG_FIPS=on
```

{:.important .no-icon}
> Migrating from non-FIPS to FIPS mode and backwards is not supported.
> Migrating from non-FIPS to FIPS mode and backwards is not supported.
Loading

0 comments on commit fb116c2

Please sign in to comment.