Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
base
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
JupyterLab
CUDA
R
base
Commits
f3e12df4
Verified
Commit
f3e12df4
authored
6 months ago
by
Olivier Benz
Browse files
Options
Downloads
Patches
Plain Diff
verse: Add build arg CTAN_REPO_BUILD_LATEST
- Set CTAN_REPO to CTAN_REPO_BUILD_LATEST during build
parent
3ec57124
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#31088
passed
6 months ago
Stage: build1
Stage: build2
Stage: .post
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
verse/.gitlab-ci.yml
+3
-0
3 additions, 0 deletions
verse/.gitlab-ci.yml
verse/latest.Dockerfile
+8
-2
8 additions, 2 deletions
verse/latest.Dockerfile
with
11 additions
and
2 deletions
verse/.gitlab-ci.yml
+
3
−
0
View file @
f3e12df4
.env
:
variables
:
R_VERSION
:
"
4.4.1"
CTAN_REPO_BUILD_LATEST
:
"
https://mirror.init7.net/ctan/systems/texlive/tlnet"
TAG_VERSION_MAJ_MIN
:
"
false"
TAG_VERSION_MAJ
:
"
false"
...
...
@@ -65,6 +66,7 @@ build:latest-linux-amd64:
docker build --pull
--build-arg BUILD_ON_IMAGE
--build-arg R_VERSION
--build-arg CTAN_REPO_BUILD_LATEST
--build-arg NCPUS=$((`nproc`/2+1))
--build-arg BUILD_START=$(date -uIseconds)
-t $CI_APP_REPO:$CI_APP_TAG-linux-amd64
...
...
@@ -108,6 +110,7 @@ build:latest-linux-arm64v8:
docker build --pull
--build-arg BUILD_ON_IMAGE
--build-arg R_VERSION
--build-arg CTAN_REPO_BUILD_LATEST
--build-arg NCPUS=$((`nproc`/2+1))
--build-arg BUILD_START=$(date -uIseconds)
-t $CI_APP_REPO:$CI_APP_TAG-linux-arm64v8
...
...
This diff is collapsed.
Click to expand it.
verse/latest.Dockerfile
+
8
−
2
View file @
f3e12df4
...
...
@@ -14,13 +14,13 @@ ARG BUILD_ON_IMAGE
ARG
CODE_BUILTIN_EXTENSIONS_DIR
ARG
QUARTO_VERSION
ARG
CTAN_REPO
ARG
CTAN_REPO_BUILD_LATEST
ARG
BUILD_START
USER
root
ENV
PARENT_IMAGE=${BUILD_ON_IMAGE}:${R_VERSION} \
QUARTO_VERSION=${QUARTO_VERSION} \
CTAN_REPO=${CTAN_REPO} \
BUILD_DATE=${BUILD_START}
ENV
HOME=/root \
...
...
@@ -90,7 +90,10 @@ RUN dpkgArch="$(dpkg --print-architecture)" \
&& dpkg -i texlive-local.deb \
&& apt-get -y purge equivs \
&& apt-get -y autoremove \
## Admin-based install of TinyTeX:
## Admin-based install of TinyTeX
&& CTAN_REPO_ORIG=${CTAN_REPO} \
&& CTAN_REPO=${CTAN_REPO_BUILD_LATEST:-$CTAN_REPO} \
&& export CTAN_REPO \
&& wget -qO- "https://yihui.org/tinytex/install-unx.sh" \
| sh -s - --admin --no-path \
&& mv ${HOME}/.TinyTeX /opt/TinyTeX \
...
...
@@ -117,6 +120,7 @@ RUN dpkgArch="$(dpkg --print-architecture)" \
oberdiek \
titling \
&& tlmgr path add \
&& tlmgr option repository ${CTAN_REPO_ORIG} \
&& Rscript -e "tinytex::r_texmf()" \
&& chown -R root:${NB_GID} /opt/TinyTeX \
&& chmod -R g+w /opt/TinyTeX \
...
...
@@ -176,6 +180,8 @@ RUN dpkgArch="$(dpkg --print-architecture)" \
## Switch back to ${NB_USER} to avoid accidental container runs as root
USER
${NB_USER}
ENV
CTAN_REPO=${CTAN_REPO}
ENV
HOME=/home/${NB_USER}
WORKDIR
${HOME}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment