Procházet zdrojové kódy

Funcionando con versión 5 y añadidos

Celestino Rey před 6 dny
rodič
revize
7da796adf3

+ 1 - 1
deployment/overleaf/overleaf-deployment.yaml

@@ -83,7 +83,7 @@ spec:
             - name: V1_HISTORY_URL
               value: http://sharelatex:3100/api
 #          image: harbor.reymota.es/overleaf/sharelatex:tex-9-full
-          image: harbor.reymota.es/overleaf/sharelatex:tex-11-minimal
+          image: harbor.reymota.es/overleaf/sharelatex:tex-12-cep
           imagePullPolicy: IfNotPresent
 #          image: abompotas/overleaf:5
 #          image: tuetenk0pp/sharelatex-full

+ 1 - 1
overleaf/.current_version

@@ -1 +1 @@
-tex-11
+tex-12

+ 1 - 1
overleaf/.version

@@ -1 +1 @@
-tex-12
+tex-13

+ 17 - 0
overleaf/Dockerfile.cep

@@ -0,0 +1,17 @@
+# Dockerfile para Community Edition Plus
+FROM sharelatex/sharelatex:5
+
+RUN rm /etc/my_init.d/000_check_for_old_env_vars_5.sh
+
+RUN wget "https://mirror.ctan.org/systems/texlive/tlnet/update-tlmgr-latest.sh" \
+        && sh update-tlmgr-latest.sh \
+        && tlmgr --version
+
+# enable tlmgr to install ctex
+RUN tlmgr update texlive-scripts 
+
+# update packages
+RUN tlmgr update --all
+
+# install all the packages
+RUN tlmgr install scheme-full

+ 15 - 0
overleaf/Makefile

@@ -37,6 +37,18 @@ build-minimal:
 	@echo "$(IMG_VERSION)" | sed 's/tex-\([0-9]*\)/tex-\1/' | awk -F'-' '{print "tex-" $$2+1}' > $(VERSION_FILE)
 	@echo "Next version will be: $$(cat $(VERSION_FILE))"
 
+build-cep:
+	@echo "Building image with version: $(IMG_VERSION)-cep"
+	@# Store current version for other targets to use
+	@echo "$(IMG_VERSION)" > .current_version
+	docker build \
+	  --file Dockerfile.cep \
+	  --tag $(OVERLEAF_LATEST)-cep \
+	  .
+	@# Increment version for next build
+	@echo "$(IMG_VERSION)" | sed 's/tex-\([0-9]*\)/tex-\1/' | awk -F'-' '{print "tex-" $$2+1}' > $(VERSION_FILE)
+	@echo "Next version will be: $$(cat $(VERSION_FILE))"
+
 build:
 	@echo "Building image with version: $(IMG_VERSION)"
 	@# Store current version for other targets to use
@@ -52,6 +64,9 @@ build:
 push-full:
 	docker push $(REGISTRO)/sharelatex:$(BUILT_VERSION)-full
 
+push-cep:
+	docker push $(REGISTRO)/sharelatex:$(BUILT_VERSION)-cep
+
 push-minimal:
 	docker push $(REGISTRO)/sharelatex:$(BUILT_VERSION)-minimal
 

+ 7 - 0
overleaf/README.md

@@ -16,3 +16,10 @@ Entrando en el contenedor, he ejecutado:
 
     # install all the packages
     tlmgr install scheme-full
+
+# 2026 08 07
+
+Creo un nuevo Dockerfile con la extensión cep (Community Edition Plus)
+
+Contiene la versión 5, quitando la comprobación de variables SHARELATEX e incluyendo el paquete completo de LaTeX según los comandos anteriores.
+