Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Docker stack
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
Python
Docker stack
Commits
017a2b1a
Verified
Commit
017a2b1a
authored
6 months ago
by
Olivier Benz
Browse files
Options
Downloads
Patches
Plain Diff
scipy: Add build arg CTAN_REPO_BUILD_LATEST
- Set CTAN_REPO to CTAN_REPO_BUILD_LATEST during build
parent
a7b0d855
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
scipy/.gitlab-ci.yml
+3
-0
3 additions, 0 deletions
scipy/.gitlab-ci.yml
scipy/latest.Dockerfile
+7
-1
7 additions, 1 deletion
scipy/latest.Dockerfile
with
10 additions
and
1 deletion
scipy/.gitlab-ci.yml
+
3
−
0
View file @
017a2b1a
.env
:
variables
:
PYTHON_VERSION
:
"
3.12.5"
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 PYTHON_VERSION
--build-arg CTAN_REPO_BUILD_LATEST
--build-arg BUILD_START=$(date -uIseconds)
-t $CI_APP_REPO:$CI_APP_TAG-linux-amd64
-t $CI_APP_REPO:latest-linux-amd64
...
...
@@ -107,6 +109,7 @@ build:latest-linux-arm64v8:
docker build --pull
--build-arg BUILD_ON_IMAGE
--build-arg PYTHON_VERSION
--build-arg CTAN_REPO_BUILD_LATEST
--build-arg BUILD_START=$(date -uIseconds)
-t $CI_APP_REPO:$CI_APP_TAG-linux-arm64v8
-t $CI_APP_REPO:latest-linux-arm64v8
...
...
This diff is collapsed.
Click to expand it.
scipy/latest.Dockerfile
+
7
−
1
View file @
017a2b1a
...
...
@@ -12,13 +12,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}${PYTHON_VERSION:+:}${PYTHON_VERSION} \
QUARTO_VERSION=${QUARTO_VERSION} \
CTAN_REPO=${CTAN_REPO} \
BUILD_DATE=${BUILD_START}
ENV
HOME=/root \
...
...
@@ -56,6 +56,9 @@ RUN dpkgArch="$(dpkg --print-architecture)" \
&& apt-get -y purge equivs \
&& apt-get -y autoremove \
## 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 \
...
...
@@ -82,6 +85,7 @@ RUN dpkgArch="$(dpkg --print-architecture)" \
oberdiek \
titling \
&& tlmgr path add \
&& tlmgr option repository ${CTAN_REPO_ORIG} \
&& chown -R root:${NB_GID} /opt/TinyTeX \
&& chmod -R g+w /opt/TinyTeX \
&& chmod -R g+wx /opt/TinyTeX/bin \
...
...
@@ -141,6 +145,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