Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
gitlab ci pandoc
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
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tetras-libre
docker images
gitlab ci pandoc
Commits
20023ec5
Unverified
Commit
20023ec5
authored
4 years ago
by
David Beniamine
Browse files
Options
Downloads
Patches
Plain Diff
New cleaner image
parent
74b21351
No related branches found
No related tags found
No related merge requests found
Pipeline
#338
passed
4 years ago
Stage: test
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
Dockerfile
+4
-15
4 additions, 15 deletions
Dockerfile
Readme.md
+32
-0
32 additions, 0 deletions
Readme.md
puppeteerConfigFile.json
+0
-7
0 additions, 7 deletions
puppeteerConfigFile.json
with
36 additions
and
22 deletions
Dockerfile
+
4
−
15
View file @
20023ec5
FROM
pandoc/latex
FROM
pandoc/latex
RUN
apk add
--no-cache
\
RUN
apk add
--no-cache
\
chromium
\
make
\
make
\
nodejs
\
nodejs
\
npm
npm
ENV
CHROME_BIN="/usr/bin/chromium-browser" \
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD="true"
RUN
npm
install
mermaid-filter
RUN
npm
install
mermaid-filter
ENV
PATH=${PATH}:/data/node_modules/.bin
ENV
PATH=${PATH}:/data/node_modules/.bin
RUN
tlmgr
install
textpos
RUN
tlmgr
install
textpos
ARG
GID=1000
ARG
UID=1000
# Add user so we don't need --no-sandbox.
RUN
addgroup
-S
pptruser
-g
$GID
&&
adduser
-S
-G
pptruser
-u
$UID
pptruser
\
&&
mkdir
-p
/home/pptruser
\
&&
chown
-R
pptruser:pptruser /home/pptruser
\
&&
chown
-R
pptruser:pptruser /data
\
&&
chmod
o+w /opt/texlive/texdir/texmf-var
# Run everything after as non-privileged user.
USER
pptruser
WORKDIR
/home/pptruser
COPY
puppeteerConfigFile.json /home/pptruser/.puppeteer.json
ENTRYPOINT
/bin/sh
ENTRYPOINT
/bin/sh
This diff is collapsed.
Click to expand it.
Readme.md
+
32
−
0
View file @
20023ec5
...
@@ -16,3 +16,35 @@ pages:
...
@@ -16,3 +16,35 @@ pages:
only
:
only
:
-
master
-
master
```
```
## Troubleshooting
If you got an issue like :
```
events.js:292
throw er; // Unhandled 'error' event
^
Error: ENOENT: no such file or directory, open '/tmp/tmp-11UOaQJNu37LGm.tmp.png'
Emitted 'error' event on ReadStream instance at:
at internal/fs/streams.js:136:12
at FSReqCallback.oncomplete (fs.js:156:23) {
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: '/tmp/tmp-11UOaQJNu37LGm.tmp.png'
}
Error running filter mermaid-filter:
Filter returned error status 1
```
To fix it, create a file called
`.puppeteer.json`
in the directory you run pandoc, that contains
```
{
"executablePath": "/usr/bin/chromium-browser",
"args": ["--no-sandbox"]
}
```
This diff is collapsed.
Click to expand it.
puppeteerConfigFile.json
deleted
100644 → 0
+
0
−
7
View file @
74b21351
{
"args"
:
[
"--no-sandbox"
,
"--disable-setuid-sandbox"
,
"--disable-dev-shm-usage"
],
}
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