Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
Presentation
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
Package Registry
Model registry
Operate
Environments
Terraform modules
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
nimrod
Presentation
Commits
6218c13a
Commit
6218c13a
authored
7 years ago
by
nimrod
Browse files
Options
Downloads
Patches
Plain Diff
Use the runas entrypoint downloaded from my blog.
parent
349dadec
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
.dockerignore
+1
-9
1 addition, 9 deletions
.dockerignore
Dockerfile
+6
-5
6 additions, 5 deletions
Dockerfile
README.md
+1
-1
1 addition, 1 deletion
README.md
entrypoint
+0
-5
0 additions, 5 deletions
entrypoint
example/README.md
+2
-2
2 additions, 2 deletions
example/README.md
with
10 additions
and
22 deletions
.dockerignore
+
1
−
9
View file @
6218c13a
.git/
.gitignore
.dockerignore
*.md
*.dot
*.pdf
example/
*.swp
Dockerfile
*
This diff is collapsed.
Click to expand it.
Dockerfile
+
6
−
5
View file @
6218c13a
...
...
@@ -21,8 +21,9 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
texlive-luatex
\
texlive-publishers
&&
\
rm
-rf
/tmp/
*
/var/tmp/
*
/var/lib/apt/lists/
*
/var/cache/apt/archives/
*
VOLUME
/project
WORKDIR
/project
COPY
entrypoint /entrypoint
ENTRYPOINT
["/entrypoint"]
CMD
["on-change", ".", "make"]
ADD
[ "https://www.shore.co.il/blog/static/runas", "/entrypoint" ]
ENTRYPOINT
[ "/bin/sh", "/entrypoint" ]
VOLUME
/volume
WORKDIR
/volume
ENV
HOME /volume
CMD
[ "on-change", ".", "make" ]
This diff is collapsed.
Click to expand it.
README.md
+
1
−
1
View file @
6218c13a
...
...
@@ -8,7 +8,7 @@ Markdown or DOT).
`docker run -itv "$PWD:/project" adarnimrod/presentation`
Will watch the current directory and run
`make`
whenever a file changes. One can
add a shell alias
`alias presentation='docker run -itv "$PWD:/
project
"
add a shell alias
`alias presentation='docker run -itv "$PWD:/
volume
"
adarnimrod/presentation'`
for easier use.
See the example folder for more details.
...
...
This diff is collapsed.
Click to expand it.
entrypoint
deleted
100755 → 0
+
0
−
5
View file @
349dadec
#!/bin/sh
set
-eu
uid
=
"
$(
stat
.
--format
'%u'
)
"
gid
=
"
$(
stat
.
--format
'%g'
)
"
sudo
-Eu
"#
$uid
"
-g
"#
$gid
"
--
"
$@
"
This diff is collapsed.
Click to expand it.
example/README.md
+
2
−
2
View file @
6218c13a
...
...
@@ -7,8 +7,8 @@ An example presentation written in Markdown and DOT.
To watch the current directory and build the presentation whenever a change
occurs
`docker run -tv "$PWD:/
project
" adarnimrod/presentation`
`docker run -tv "$PWD:/
volume
" adarnimrod/presentation`
To build the presentation and exit
`docker run -tv "$PWD:/
project
" adarnimrod/presentation make`
`docker run -tv "$PWD:/
volume
" adarnimrod/presentation make`
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