Skip to content

Commit 60f254e

Browse files
committed
Latest updates for airgap installs
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
1 parent ea2a440 commit 60f254e

File tree

1 file changed

+39
-1
lines changed

1 file changed

+39
-1
lines changed

docs/edge/airgap.md

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,26 @@ faas-cli airfaas download images \
5353
functions
5454
```
5555

56+
For example, if you wanted the env and nodeinfo functions from the OpenFaaS Store, create a file and run:
57+
58+
```bash
59+
cat > stack.yaml << EOF
60+
provider:
61+
name: openfaas
62+
63+
functions:
64+
env:
65+
image: ghcr.io/openfaas/alpine:latest
66+
fprocess: env
67+
skip_build: true
68+
nodeinfo:
69+
image: ghcr.io/openfaas/nodeinfo:latest
70+
skip_build: true
71+
EOF
72+
```
73+
74+
Then run the command to download the images as per above.
75+
5676
## Transfer the images
5777

5878
Transfer the `./images` directory to the air-gapped machine using your preferred method. This could be a USB drive, SCP, rsync, or any other method you prefer.
@@ -160,14 +180,32 @@ arkade oci install --path . ghcr.io/openfaasltd/faasd-pro-rpm:latest
160180

161181
If you wish to obtain a specific version of the RPM, update the tag from `:latest` to i.e. `:0.2.18`. Browse available versions via `crane ls ghcr.io/openfaasltd/faasd-pro-rpm`.
162182

163-
Then copy all `openfaas-edge-*.rpm` files to the air-gapped machine, and run:
183+
Then copy all `openfaas-edge-*.rpm` files to the air-gapped machine.
164184

165185
Before installing OpenFaaS Edge ensure all other required packages are installed on the air-gapped system:
166186

167187
```sh
168188
sudo dnf install runc iptables-services
169189
```
170190

191+
If you have no way to source the required packages in the offline environment, you can download them on the online machine with:
192+
193+
```bash
194+
mkdir -p ~/rpm
195+
cd ~/rpm
196+
197+
sudo dnf install dnf-plugins-core
198+
sudo dnf download --resolve --alldeps ./openfaas-edge*.rpm
199+
```
200+
201+
> Note: If your online machine is not running a RHEL-like OS, you could use Docker and mount a folder in for persistence.
202+
203+
Then copy the folder to the remote machine, and install those packages first with:
204+
205+
```bash
206+
sudo dnf install --disablerepo="*" ./rpm/*.rpm
207+
```
208+
171209
Then install the OpenFaaS Edge RPM package:
172210

173211
```bash

0 commit comments

Comments
 (0)