Skip to content

Commit

Permalink
feat: add OpenShift Pipeline CLI (tkn) (#145)
Browse files Browse the repository at this point in the history
Signed-off-by: Valeriy Svydenko <vsvydenk@redhat.com>
  • Loading branch information
svor committed Jan 19, 2024
1 parent e7ca2f3 commit 9a4668a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 9 deletions.
17 changes: 9 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,13 @@ docker run -ti --rm \
|---------------------|-------------------------------------|
|--------JAVA---------|-------------------------------------|
| `sdk` |`<https://get.sdkman.io>` |
| `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` |`<via sdkman>` |
| `gradle` |`<via sdkman>` |
| `mandrel` |`<22.1.0.0.r17-mandrel via sdkman>` |
| `jbang` |`<via sdkman>` |
| `jbang` |`<via sdkman>` |
|--------SCALA--------|-------------------------------------|
| `cs` |`<https://get-coursier.io/>` |
| `sbt` |`<sbt launch script>` |
Expand All @@ -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` |`<via pip>` |
| `yq` |`<via pip>` |
|--------RUST---------|-------------------------------------|
Expand All @@ -120,6 +120,7 @@ docker run -ti --rm \
| `camel-k` |`<gh release>` |
|------CLOUD----------|-------------------------------------|
| `oc` |`mirror.openshift.com` |
| `tkn` |`mirror.openshift.com` |
| `podman` |`container-tools:rhel8` |
| `buildah` |`container-tools:rhel8` |
| `skopeo` |`container-tools:rhel8` |
Expand All @@ -132,7 +133,7 @@ docker run -ti --rm \
| `terraform` |`<releases.hashicorp.com>` |
| `docker` |`<download.docker.com>` |
| `docker-compose` |`<gh releases>` |
| `kamel` |`<gh release>` |
| `kamel` |`<gh release>` |
| **TOTAL SIZE** | **8.75GB** (3.6GB compressed) |

### Included libraries
Expand Down
8 changes: 7 additions & 1 deletion universal/ubi8/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 && \
Expand Down Expand Up @@ -437,7 +442,8 @@ RUN dnf -y install bash-completion \
&& rm -rf /var/cache/yum

RUN <<EOF
oc completion bash > /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
Expand Down

0 comments on commit 9a4668a

Please sign in to comment.