-
Epic
-
Resolution: Won't Do
-
Major
-
None
-
None
-
None
-
TSSC Templates which import existing source code from a git repo
-
False
-
-
False
-
Done
-
-
-
Red Hat Advanced Developer Suite
Description
The current templates included with RHTAP incude default application source which provide simple "hello world" applications
This task would create a new template "Import from Source" which replicates the exiting samples but copies the source code into a generated repo from an existing source repo.
he template will prompt the user for a git repository for the source code. The type of project would be a
The template will need to prompt for deployment information reuqired by our gitops http deployment manifests.
- port for service
- memory requirements
- cpu defaults
- dockerfile location for our build pipelines
- build context (source directory)
A stretch goal for this import flow would be to allow existing Catalog entries for git repos to be used as import source ,
Testing
It should be possible to import all of our existing docker based samples using this template and generate and deploy a new application.
An imported sample would have the same behaviour as our existing samples build and deploy with gitops
Documentation requirements
Importing arbitrary user repositorys can be difficult so we need to document the formats and limitaitons expected by this feature.
- dockerfile only
- new repo generated for application
- http application pattern (deployment, service,route
Out of scope
Creating new templates from an existing repository for use by template authors is out of scope for this task and would need to be a separate feature. The existing product templates have an existing way to do this via a script
This script would need to be generalized beyond the current tssc-sample-templates