openshift இல் நிறுவுகிறது

திறந்தஉயர்த்து வலைபெயர்ப்பு வார்ப்புரு மூலம், உங்கள் தனிப்பட்ட வலைபெயர்ப்பு நிகழ்வை நொடிகளில் இயங்கும். வலைபெயர்ப்புடின் சார்புநிலைகள் அனைத்தும் ஏற்கனவே சேர்க்கப்பட்டுள்ளன. postgresql இயல்புநிலை தரவுத்தளமாக அமைக்கப்பட்டுள்ளது மற்றும் தொடர்ச்சியான தொகுதி உரிமைகோரல்கள் பயன்படுத்தப்படுகின்றன.

வார்ப்புருவை <https://github.com/weblateorg/openshift/> இல் காணலாம்.

நிறுவல்

The following examples assume you have a working OpenShift v3.x environment, with oc client tool installed. Please check the OpenShift documentation for instructions.

The template.yml is suited for running all components in OpenShift. There is also template-external-postgresql.yml which does not start a PostgreSQL server and allows you to configure external PostgreSQL server.

வலை கன்சோல்

Copy the raw content from template.yml and import them into your project, then use the Create button in the OpenShift web console to create your application. The web console will prompt you for the values for all of the parameters used by the template.

கிளி

To upload the Weblate template to your current project’s template library, pass the template.yml file with the following command:

$ oc create -f https://raw.githubusercontent.com/WeblateOrg/openshift/main/template.yml \
   -n <PROJECT>

வலை கன்சோல் அல்லது சி.எல்.ஐ ஐப் பயன்படுத்தி தேர்வுக்கு வார்ப்புரு இப்போது கிடைக்கிறது.

அளவுருக்கள்

நீங்கள் மேலெழுதக்கூடிய அளவுருக்கள் வார்ப்புருவின் அளவுருக்கள் பிரிவில் பட்டியலிடப்பட்டுள்ளன. பின்வரும் கட்டளையைப் பயன்படுத்துவதன் மூலமும், பயன்படுத்த வேண்டிய கோப்பைக் குறிப்பிடுவதன் மூலமும் அவற்றை cli உடன் பட்டியலிடலாம்:

$ oc process --parameters -f https://raw.githubusercontent.com/WeblateOrg/openshift/main/template.yml

# If the template is already uploaded
$ oc process --parameters -n <PROJECT> weblate

வழங்கல்

வார்ப்புருக்கள் செயலாக்க நீங்கள் cli ஐப் பயன்படுத்தலாம் மற்றும் உடனடியாக பொருள்களை உருவாக்க உருவாக்கப்படும் உள்ளமைவைப் பயன்படுத்தலாம்.

$ oc process -f https://raw.githubusercontent.com/WeblateOrg/openshift/main/template.yml \
    -p APPLICATION_NAME=weblate \
    -p WEBLATE_VERSION=4.3.1-1 \
    -p WEBLATE_SITE_DOMAIN=weblate.app-openshift.example.com \
    -p POSTGRESQL_IMAGE=docker-registry.default.svc:5000/openshift/postgresql:9.6 \
    -p REDIS_IMAGE=docker-registry.default.svc:5000/openshift/redis:3.2 \
    | oc create -f

The Weblate instance should be available after successful migration and deployment at the specified WEBLATE_SITE_DOMAIN parameter.

After container setup, you can sign in as admin user with password provided in WEBLATE_ADMIN_PASSWORD, or a random password generated on first start if that was not set.

To reset admin password, restart the container with WEBLATE_ADMIN_PASSWORD set to new password in the respective Secret.

அகற்றவும்

$ oc delete all -l app=<APPLICATION_NAME>
$ oc delete configmap -l app= <APPLICATION_NAME>
$ oc delete secret -l app=<APPLICATION_NAME>
# ATTENTION! The following command is only optional and will permanently delete all of your data.
$ oc delete pvc -l app=<APPLICATION_NAME>

$ oc delete all -l app=weblate \
    && oc delete secret -l app=weblate \
    && oc delete configmap -l app=weblate \
    && oc delete pvc -l app=weblate

உள்ளமைவு

By processing the template a respective ConfigMap will be created and which can be used to customize the Weblate image. The ConfigMap is directly mounted as environment variables and triggers a new deployment every time it is changed. For further configuration options, see கப்பல்துறை சூழல் மாறிகள் for full list of environment variables.