From 1399cddec9c8b35da2270b23ebbcb8e877c98901 Mon Sep 17 00:00:00 2001 From: "Fifo F." Date: Tue, 11 Jun 2024 06:26:05 +0000 Subject: [PATCH] =?UTF-8?q?Update=20.gitlab-ci.yml=20file:=20Make=20sure?= =?UTF-8?q?=20the=20resulting=20image=E2=80=99s=20original=20entry=20point?= =?UTF-8?q?=20is=20preserved?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitlab-ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 27031f7..ae2ced0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,6 +6,7 @@ variables: IMAGE_NAME: ${CI_REGISTRY}/${CI_PROJECT_PATH}/sharelatex:with_texlive_full ARCHIVED_IMAGE: sharelatex_with_texlive_full.tar TEXLIVE_REPO: https://ftp.tu-chemnitz.de/pub/tug/historic/systems/texlive/2023/tlnet-final + IMAGE_ENTRYPOINT: "/sbin/my_init" build: stage: build @@ -18,8 +19,8 @@ build: - | if [ ! -f $ARCHIVED_IMAGE ]; then docker pull sharelatex/sharelatex:latest - docker run --name temp /bin/bash sharelatex/sharelatex:latest -c "tlmgr option repository $TEXLIVE_REPO && tlmgr update --self --all && tlmgr install scheme-full" - docker commit temp $IMAGE_NAME + docker run --name temp --entrypoint /bin/bash sharelatex/sharelatex:latest -c "tlmgr option repository $TEXLIVE_REPO && tlmgr update --self --all && tlmgr install scheme-full" + docker commit --change "ENTRYPOINT $IMAGE_ENTRYPOINT" temp $IMAGE_NAME docker save -o $ARCHIVED_IMAGE $IMAGE_NAME fi artifacts: