Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
polytechnique
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
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
typographix
polytechnique
Commits
7dabf4fe
Commit
7dabf4fe
authored
1 month ago
by
Thomas FOURIER
Browse files
Options
Downloads
Patches
Plain Diff
Docker
parent
bb47aa6c
No related branches found
Branches containing commit
No related tags found
1 merge request
!14
Docker
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
.gitignore
+2
-2
2 additions, 2 deletions
.gitignore
.gitlab-ci.yml
+30
-8
30 additions, 8 deletions
.gitlab-ci.yml
Dockerfile
+29
-0
29 additions, 0 deletions
Dockerfile
guide/installation.pdf
+0
-0
0 additions, 0 deletions
guide/installation.pdf
source/polytechnique.pdf
+0
-0
0 additions, 0 deletions
source/polytechnique.pdf
with
61 additions
and
10 deletions
.gitignore
+
2
−
2
View file @
7dabf4fe
...
@@ -6,5 +6,5 @@
...
@@ -6,5 +6,5 @@
*.out
*.out
*.out
*.out
*.toc
*.toc
source/polytechnique
.fdb_latexmk
*
.fdb_latexmk
source/polytechnique
.fls
*
.fls
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
+
30
−
8
View file @
7dabf4fe
# This file is a template, and might need editing before it works on your project.
#global variables
# use docker image with latex preinstalled
variables
:
# since there is no official latex image, use https://github.com/blang/latex-docker
IMAGE_TAG
:
$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME
# possible alternative: https://github.com/natlownes/docker-latex
image
:
blang/latex:ctanfull
build
:
stages
:
-
ship
-
test
test
:
stage
:
test
image
:
$IMAGE_TAG
script
:
script
:
-
cd source
-
cd source
-
latex polytechnique.ins
-
latex polytechnique.ins
-
pdf
latex polytechnique.dtx
-
latex
mk -pdf
polytechnique.dtx
-
cp * ../guide/
-
cp * ../guide/
-
cd ../guide
-
cd ../guide
-
pdf
latex installation.tex
-
latex
mk -pdf
installation.tex
artifacts
:
artifacts
:
paths
:
paths
:
-
"
source/polytechnique.sty"
-
"
source/polytechnique.sty"
-
"
source/polytechnique.pdf"
-
"
source/polytechnique.pdf"
-
"
guide/installation.pdf"
-
"
guide/installation.pdf"
ship:docker
:
stage
:
ship
image
:
docker:stable
services
:
-
docker:dind
cache
:
{}
variables
:
DOCKER_HOST
:
tcp://docker:2375/
DOCKER_DRIVER
:
overlay2
# For disabling TLS in docker-in-docker (not needed)
DOCKER_TLS_CERTDIR
:
'
'
script
:
-
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
-
docker build --pull -t $IMAGE_TAG .
-
docker push $IMAGE_TAG
This diff is collapsed.
Click to expand it.
Dockerfile
0 → 100644
+
29
−
0
View file @
7dabf4fe
FROM
debian:latest
ENV
DEBIAN_FRONTEND=noninteractive
RUN
apt-get update
-q
\
&&
apt-get
install
-qy
build-essential wget libfontconfig1 rsync
\
&&
rm
-rf
/var/lib/apt/lists/
*
# Install TexLive with scheme-basic
RUN
wget http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz
;
\
mkdir
/install-tl-unx
;
\
tar
-xvf
install-tl-unx.tar.gz
-C
/install-tl-unx
--strip-components
=
1
;
\
echo
"selected_scheme scheme-basic"
>>
/install-tl-unx/texlive.profile
;
\
/install-tl-unx/install-tl
-profile
/install-tl-unx/texlive.profile
;
\
rm
-r
/install-tl-unx
;
\
rm
install-tl-unx.tar.gz
ENV
PATH="/usr/local/texlive/2024/bin/x86_64-linux:${PATH}"
RUN
.
/etc/profile
WORKDIR
/data
# Install latex packages
RUN
tlmgr
install
latexmk babel-french csquotes xcolor titlesec lastpage hypdoc
VOLUME
["/data"]
COPY
source ./source
COPY
install ./install
RUN
cd install
;
./unix.sh
This diff is collapsed.
Click to expand it.
guide/installation.pdf
+
0
−
0
View file @
7dabf4fe
No preview for this file type
This diff is collapsed.
Click to expand it.
source/polytechnique.pdf
+
0
−
0
View file @
7dabf4fe
No preview for this file type
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