Переглянути джерело

Shell undeploy y shell para actualizar texlive repositories

Celestino Rey 1 тиждень тому
батько
коміт
86769d3fd6

+ 8 - 1
README.md

@@ -58,4 +58,11 @@ tlmgr install apacite
 
 El fichero overleaf-variables.yaml, le falta una a al comienzo, en ***apiVersion: v1***
 
-Los values.yaml tanto de mongo como de redis, hay que ponerles el tag latest a ambos ya que la que viene por defecto no funciona.
+Los values.yaml tanto de mongo como de redis, hay que ponerles el tag latest a ambos ya que la que viene por defecto no funciona.
+
+Para que los comandos ```tlmgr``` de arriba funcionen, hay que ejecutar la shell ```update-tlmgr-latest.sh```, para lo cual primero hay que copiarla al contenedor con:
+
+    kubectl -n overleave cp update-tlmgr-latest.sh <pos de overleaf>:/overleaf
+
+y ejecutar la shell. Después de esto ya se pueden ejecutar los comandos de arriba.
+

+ 3 - 2
deployment/overleaf/overleaf-deployment.yaml

@@ -77,7 +77,8 @@ spec:
                   name: sharelatex-variables
             - name: V1_HISTORY_URL
               value: http://sharelatex:3100/api
-          image: harbor.reymota.es/overleaf/k8s-overleaf:5
+#          image: harbor.reymota.es/overleaf/k8s-overleaf:5
+          image: abompotas/overleaf:5
           name: overleaf
 #          securityContext:
 #            allowPrivilegeEscalation: false
@@ -108,4 +109,4 @@ spec:
       volumes:
         - name: overleaf-data
           persistentVolumeClaim:
-            claimName: overleaf-data
+            claimName: overleaf-data

+ 14 - 0
deployment/undeploy.sh

@@ -0,0 +1,14 @@
+#!/bin/bash
+
+cd "$(dirname "$0")"
+
+#kubectl create namespace overleaf
+
+
+kubectl delete -n overleaf -f ./overleaf/overleaf-service.yaml -f ./overleaf/overleaf-deployment.yaml -f ./overleaf/overleaf-variables.yaml -f ./overleaf/overleaf-pvc.yaml
+
+helm uninstall mongo  --namespace overleaf 
+helm uninstall redis  --namespace overleaf
+
+## Uncomment following ling to expose the application via ingress
+#kubectl apply -n overleaf -f ./overleaf/overleaf-ingress.yaml

+ 1 - 1
overleaf/Dockerfile

@@ -1,4 +1,4 @@
-FROM sharelatex/sharelatex:5
+FROM sharelatex/sharelatex:latest
 
 RUN rm /etc/my_init.d/000_check_for_old_env_vars_5.sh \
  && rm /etc/my_init.d/100_make_overleaf_data_dirs.sh

Різницю між файлами не показано, бо вона завелика
+ 1276 - 0
update-tlmgr-latest.sh


Деякі файли не було показано, через те що забагато файлів було змінено