Skip to content

Commit

Permalink
Documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
rnc committed Dec 23, 2024
1 parent 70a5719 commit 8dae4bb
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 2 deletions.
36 changes: 35 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,35 @@
# konflux-tooling
# Konflux Tooling

This contains the tooling needed by PNC when running within a Konflux pipeline. The following 'mini-tools' are
provided, all of which are intended to be called from a Tekton pipeline e.g.

```
- name: deploy
image: $(params.JVM_BUILD_SERVICE_REQPROCESSOR_IMAGE)
securityContext:
runAsUser: 0
volumeMounts:
- mountPath: /mnt/trusted-ca
name: trusted-ca
readOnly: true
env:
- name: ACCESS_TOKEN
value: $(params.ACCESS_TOKEN)
args:
- deploy
- --directory=/var/workdir/deployment
- --mvn-repo=$(params.MVN_REPO)
- --mvn-username=$(params.MVN_USERNAME)
- --server-id=$(params.MVN_SERVER_ID)
```

The current tools are:

* Preprocessor : used to preprocess build sources to add a build script and Containerfile.
* Deploy: used (with MavenRepositoryDeployer) to deploy files to a maven repository.
* CopyArtifacts: used by Ant builds to move built artifacts to the correct location.
* Notify: used to notify PNC components that a pipeline has finished.


It is deployed as an image to https://quay.io/repository/redhat-user-workloads/konflux-jbs-pnc-tenant/konflux-tooling?tab=tags&tag=latest
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

/**
* We keep all the options the same between maven, gradle, sbt and ant for now to keep the pipeline setup simpler.
* Some of these may be ignored by different processors
*/
@CommandLine.Command(name = "prepare")
public class Preprocessor implements Runnable {
Expand Down

0 comments on commit 8dae4bb

Please sign in to comment.