You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.
There should be a instant-app type template that specifies a Docker build strategy and uses the Dockerfile and other application files from a git repo.
Scenario:
I have a github repo containing my app and a Dockerfile
to spin the app at pathfinder all I want to do is pick a "docker-git-repo" template from the catalog and paste the link to my git repo, specifiy the options for the route and such
the model should be like the one for the current nodejs template, but rather than depend on the redhat image for node, simpler to switch to a docker strategy and build from docker file
The text was updated successfully, but these errors were encountered:
I have created the template and tested successfully to deploy bca-api. To use it, until the template has been promoted to root namespace, copy the yaml file to your local folder and run
oc create -f dockerfile-over-git.yaml
for updating existing template, run
oc replace -f dockerfile-over-git.yaml
instead.
There are several imperfections/caveats due to limited programbility within a template:
Not only you have to specify git URL of Dockerfile, you also have to redundantly specify base image and tag which is in the FROM clause of Dockerfile.
OpenShift cannot convert a parameter from string to number or vice versa (see Cannot specify integer/bool/base64 types in templates openshift/origin#3946) so not only I cannot obtain what port the docker is exposing the service by parsing the Dockerfile, but also I cannot even ask user to enter it as parameter. As a result, I have to hard code it to 8080. If this is incorrect for your Dockerfile, you have to change it in the runtime service instance after launch.
There should be a instant-app type template that specifies a Docker build strategy and uses the Dockerfile and other application files from a git repo.
Scenario:
The text was updated successfully, but these errors were encountered: