From 9a4668acf86728c8ff78feec351d74a0a257fdaf Mon Sep 17 00:00:00 2001 From: Valerii Svydenko Date: Fri, 19 Jan 2024 15:27:29 +0200 Subject: [PATCH] feat: add OpenShift Pipeline CLI (tkn) (#145) Signed-off-by: Valeriy Svydenko --- README.md | 17 +++++++++-------- universal/ubi8/Dockerfile | 8 +++++++- 2 files changed, 16 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 7d1eddc8..123cee53 100644 --- a/README.md +++ b/README.md @@ -78,13 +78,13 @@ docker run -ti --rm \ |---------------------|-------------------------------------| |--------JAVA---------|-------------------------------------| | `sdk` |`` | -| `java` |`<8.0.332-tem via sdkman>` | -| `java` |`<11.0.15-tem via sdkman>/default` | -| `java` |`<17.0.3-tem via sdkman>` | +| `java` |`<8.0.332-tem via sdkman>` | +| `java` |`<11.0.15-tem via sdkman>/default` | +| `java` |`<17.0.3-tem via sdkman>` | | `maven` |`` | | `gradle` |`` | | `mandrel` |`<22.1.0.0.r17-mandrel via sdkman>` | -| `jbang` |`` | +| `jbang` |`` | |--------SCALA--------|-------------------------------------| | `cs` |`` | | `sbt` |`` | @@ -107,9 +107,9 @@ docker run -ti --rm \ |--------.NET---------|-------------------------------------| | `dotnet` |`dotnet-sdk-6.0` | |------PYTHON---------|-------------------------------------| -| `python` |`python3.11` | -| `setuptools` |`python3.11-setuptools` | -| `pip` |`python3.11-pip` | +| `python` |`python3.11` | +| `setuptools` |`python3.11-setuptools` | +| `pip` |`python3.11-pip` | | `pylint` |`` | | `yq` |`` | |--------RUST---------|-------------------------------------| @@ -120,6 +120,7 @@ docker run -ti --rm \ | `camel-k` |`` | |------CLOUD----------|-------------------------------------| | `oc` |`mirror.openshift.com` | +| `tkn` |`mirror.openshift.com` | | `podman` |`container-tools:rhel8` | | `buildah` |`container-tools:rhel8` | | `skopeo` |`container-tools:rhel8` | @@ -132,7 +133,7 @@ docker run -ti --rm \ | `terraform` |`` | | `docker` |`` | | `docker-compose` |`` | -| `kamel` |`` | +| `kamel` |`` | | **TOTAL SIZE** | **8.75GB** (3.6GB compressed) | ### Included libraries diff --git a/universal/ubi8/Dockerfile b/universal/ubi8/Dockerfile index 297c0bb7..22fd6770 100644 --- a/universal/ubi8/Dockerfile +++ b/universal/ubi8/Dockerfile @@ -200,6 +200,11 @@ ENV OC_VERSION=4.6 RUN curl -L https://mirror.openshift.com/pub/openshift-v4/clients/oc/${OC_VERSION}/linux/oc.tar.gz | tar -C /usr/local/bin -xz \ && chmod +x /usr/local/bin/oc +# OS Pipelines CLI (tkn) +ENV TKN_VERSION=1.13.0 +RUN curl -L https://mirror.openshift.com/pub/openshift-v4/clients/pipelines/${TKN_VERSION}/tkn-linux-amd64.tar.gz | tar -C /usr/local/bin -xz \ + && chmod +x /usr/local/bin/tkn /usr/local/bin/opc /usr/local/bin/tkn-pac + ## podman buildah skopeo RUN dnf -y module enable container-tools:rhel8 && \ dnf -y update && \ @@ -437,7 +442,8 @@ RUN dnf -y install bash-completion \ && rm -rf /var/cache/yum RUN < /usr/share/bash-completion/completions/oc +oc completion bash > /usr/share/bash-completion/completions/oc +tkn completion bash > /usr/share/bash-completion/completions/tkn kubectl completion bash > /usr/share/bash-completion/completions/kubectl cat ${NVM_DIR}/bash_completion > /usr/share/bash-completion/completions/nvm EOF