redhat-perl-dancer-template

by joaquinito2051

Helm chartv0.0.2App 0.0.2

This content is experimental, do not use it in production. An example Dancer application with no database. For more information about using this template, including OpenShift considerations, see https://github.com/sclorg/dancer-ex/blob/master/README.md.

About this chart

Perl application template with no database helm chart

A Helm chart for building and deploying a Dancer-ex application on OpenShift.

For more information about helm charts see the official Helm Charts Documentation.

You need to have access to a cluster for each operation with OpenShift 4, like deploying and testing.

Values

Below is a table of each value used to configure this chart.

ValueDescriptionDefaultAdditional Information
nameThe name assigned to all of the frontend objects defined in this helm chart.dancer-example
namespaceThe OpenShift Namespace where the ImageStream resides.dancer-example
perl_version Specify PERL imagestream tag.5.30-ubi8
memory_limitMaximum amount of memory the container can use.521Mi
application_domainThe exposed hostname that will route to the httpd service, if left blank a value will be defaulted.
context_dirSet this to the relative path to your project if it is not in the root of your repository.
cpan_mirrorThe custom CPAN mirror URL.
github_webhook_secretGithub trigger secret. A difficult to guess string encoded as part of the webhook URL. Not encrypted.
source_repository_urlThe URL of the repository with your application source code.https://github.com/sclorg/cakephp-ex.git
source_repository_refSet this to a branch name, tag or other ref of your repository if you are not using the default branch.master
perl_apache2_reloadSet this to "true" to enable automatic reloading of modified Perl modules.
secret_key_baseYour secret key for verifying the integrity of signed cookies.

Deploy redhat-perl-dancer-template with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has redhat-perl-dancer-template on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartredhat-perl-dancer-template is pinned at v0.0.2 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply