Last active
August 22, 2018 18:41
-
-
Save paulfantom/ea694aad705250e80087e224bd054887 to your computer and use it in GitHub Desktop.
OpenShift-client flatpak
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
flatpak-builder client com.openshift.client.json | |
flatpak-builder --run client com.openshift.client.json oc version | |
echo "Do you want to create local flatpak repo and install package? [Y/n]" | |
read -r -p RSP | |
if [[ "$RSP" =~ ^([yY][eE][sS]|[yY])+$ ]]; then | |
flatpak-builder --repo=repo --force-clean client com.openshift.client.json | |
flatpak --user remote-add --no-gpg-verify my-repo repo | |
flatpak --user install my-repo com.openshift.client | |
echo "You can now run OpenShift Client with `flatpak run com.openshift.client`" | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"app-id": "com.openshift.client", | |
"runtime": "org.freedesktop.Platform", | |
"runtime-version": "18.08", | |
"sdk": "org.freedesktop.Sdk", | |
"command": "oc", | |
"finish-args": [ | |
"--share=network", | |
"--persist=.kube" | |
], | |
"modules": [ | |
{ | |
"name": "openshift-client", | |
"no-autogen": true, | |
"buildsystem": "simple", | |
"build-commands": [ | |
"install -D oc /app/bin/oc" | |
], | |
"sources": [ | |
{ | |
"type": "archive", | |
"url": "https://github.com/openshift/origin/releases/download/v3.10.0/openshift-origin-client-tools-v3.10.0-dd10d17-linux-64bit.tar.gz", | |
"sha256": "0f54235127884309d19b23e8e64e347f783efd6b5a94b49bfc4d0bf472efb5b8" | |
} | |
] | |
} | |
] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"only-arches": ["x86_64"] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment