| @ -0,0 +1,51 @@ | |||
| export ARQUITECTURA := $(shell lscpu |grep itectur | tr -d ' '| cut -f2 -d':') | |||
| export REGISTRY=localhost:5000 | |||
| #export REGISTRY=registry.reymota.es | |||
| export IMG_VERSION = 0.21 | |||
| export IMG_NGINX_VERSION = 2.4 | |||
| # limpia todo | |||
| all: imagen clean install | |||
| imagen: | |||
| cd ../; make | |||
| install: | |||
| -kubectl create -f namespace.yaml | |||
| -kubectl create -f reg-secret.yaml | |||
| -kubectl create -f env-prod-configmap.yaml | |||
| -kubectl create -f env-prod-db-configmap.yaml | |||
| -kubectl create -f pv-local-jugaralpadel.yaml | |||
| -kubectl create -f jugaralpadel-prod-persistentvolumeclaim.yaml | |||
| -kubectl create -f static-volume-persistentvolumeclaim.yaml | |||
| -kubectl create -f postgres-data-persistentvolumeclaim.yaml | |||
| -kubectl create -f db-deployment.yaml | |||
| -kubectl create -f db-service.yaml | |||
| -envsubst < jugaralpadel-deployment.yaml |kubectl create -f - | |||
| -envsubst < nginx-deployment.yaml |kubectl create -f - | |||
| -kubectl create -f nginx-service.yaml | |||
| clean: | |||
| -envsubst < nginx-deployment.yaml |kubectl delete -f - | |||
| -kubectl delete -f nginx-service.yaml | |||
| -envsubst < jugaralpadel-deployment.yaml |kubectl delete -f - | |||
| -kubectl delete -f db-deployment.yaml | |||
| -kubectl delete -f db-service.yaml | |||
| -kubectl delete -f env-prod-configmap.yaml | |||
| -kubectl delete -f env-prod-db-configmap.yaml | |||
| -kubectl delete -f postgres-data-persistentvolumeclaim.yaml | |||
| -kubectl delete -f static-volume-persistentvolumeclaim.yaml | |||
| -kubectl delete -f jugaralpadel-prod-persistentvolumeclaim.yaml | |||
| -kubectl delete -f pv-local-jugaralpadel.yaml | |||
| -kubectl delete -f reg-secret.yaml | |||
| -kubectl delete -f namespace.yaml | |||
| nginx: | |||
| cd ../nginx; make | |||
| @ -0,0 +1,5 @@ | |||
| sudo mkdir -p /mnt/Externo/jugaralpadel/media | |||
| sudo mkdir -p /mnt/Externo/jugaralpadel/migrations/eventos | |||
| sudo mkdir -p /mnt/Externo/jugaralpadel/migrations/reymotausers | |||
| sudo mkdir -p /mnt/Externo/jugaralpadel/static | |||
| sudo mkdir -p /mnt/Externo/jugaralpadel/pg | |||
| @ -0,0 +1,20 @@ | |||
| {% extends "admin/base_site.html" %} | |||
| {% load i18n %} | |||
| {% block userlinks %} | |||
| {% url 'django-admindocs-docroot' as docsroot %}{% if docsroot %}<a href="{{ docsroot }}">{% translate 'Documentation' %}</a> / {% endif %}{% translate 'Change password' %} / | |||
| <form id="logout-form" method="post" action="{% url 'admin:logout' %}"> | |||
| {% csrf_token %} | |||
| <button type="submit">{% translate 'Log out' %}</button> | |||
| </form> | |||
| {% include "admin/color_theme_toggle.html" %} | |||
| {% endblock %} | |||
| {% block breadcrumbs %} | |||
| <div class="breadcrumbs"> | |||
| <a href="{% url 'admin:index' %}">{% translate 'Home' %}</a> | |||
| › {% translate 'Password change' %} | |||
| </div> | |||
| {% endblock %} | |||
| {% block content %} | |||
| <p>{% translate 'Your password was changed.' %}</p> | |||
| {% endblock %} | |||
| @ -0,0 +1,75 @@ | |||
| {% load i18n static %} | |||
| {% include "_head.html" %} | |||
| <body class="app app-login p-0"> | |||
| <div class="row g-0 app-auth-wrapper"> | |||
| <div class="col-12 col-md-7 col-lg-6 auth-main-col text-center p-5"> | |||
| <div class="d-flex flex-column align-content-end"> | |||
| <div class="app-auth-body mx-auto"> | |||
| {% include "_branding.html" %} | |||
| <h2 class="auth-heading text-center mb-5">Cambio de contraseña</h2> | |||
| {% if form.errors and not form.non_field_errors %} | |||
| <p class="errornote"> | |||
| {% blocktranslate count counter=form.errors.items|length %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktranslate %} | |||
| </p> | |||
| {% endif %} | |||
| <form class="auth-form login-form" action="{{ app_path }}" method="post" id="change-form">{% csrf_token %} | |||
| <p>{% translate 'Please enter your old password, for security’s sake, and then enter your new password twice so we can verify you typed it in correctly.' %}</p> | |||
| <div class="password mb-3"> | |||
| {{ form.old_password.errors }} | |||
| {{ form.old_password.label_tag }} | |||
| </div> | |||
| <div class="password mb-3"> | |||
| {{ form.old_password }} | |||
| </div> | |||
| <div class="password mb-3"> | |||
| {{ form.new_password.errors }} | |||
| {{ form.new_password.label_tag }} | |||
| </div> | |||
| <div class="password mb-3"> | |||
| {{ form.new_password }} | |||
| </div> | |||
| <div class="password mb-3"> | |||
| {{ form.new_password1.errors }} | |||
| {{ form.new_password1.label_tag }} | |||
| </div> | |||
| <div class="password mb-3"> | |||
| {{ form.new_password1 }} | |||
| {% if form.new_password1.help_text %} | |||
| <div class="text mb-e"{% if form.new_password1.id_for_label %} id="{{ form.new_password1.id_for_label }}_helptext"{% endif %}>{{ form.new_password1.help_text|safe }}</div> | |||
| {% endif %} | |||
| </div> | |||
| <div class="password mb-3"> | |||
| {{ form.new_password2.errors }} | |||
| {{ form.new_password2.label_tag }} | |||
| {{ form.new_password2 }}</div> | |||
| </div> | |||
| <div class="password mb-3"> | |||
| {% if form.new_password2.help_text %} | |||
| <div class="help"{% if form.new_password2.id_for_label %} id="{{ form.new_password2.id_for_label }}_helptext"{% endif %}>{{ form.new_password2.help_text|safe }}</div> | |||
| {% endif %} | |||
| </div> | |||
| <div class="text-center"> | |||
| <input type="submit" value="{% translate 'Change my password' %}" class="btn app-btn-primary w-100 theme-btn mx-auto"> | |||
| </div> | |||
| </form> | |||
| </div> | |||
| </div> | |||
| </div> | |||
| </div> | |||
| </div> | |||
| </body> | |||