Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mdshow
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Monitor
Service Desk
Analyze
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
Docker
mdshow
Commits
27a026ca
Commit
27a026ca
authored
4 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
Incorporate changes from @jceb's review
parent
4a5030b3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#69122
failed
4 years ago
Stage: build
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
Dockerfile
+2
-1
2 additions, 1 deletion
Dockerfile
bin/docker-entrypoint.sh
+2
-1
2 additions, 1 deletion
bin/docker-entrypoint.sh
bin/mdshow
+3
-1
3 additions, 1 deletion
bin/mdshow
mdshow
+1
-1
1 addition, 1 deletion
mdshow
with
8 additions
and
4 deletions
Dockerfile
+
2
−
1
View file @
27a026ca
...
...
@@ -23,7 +23,7 @@ RUN echo "Adding system components" && \
ADD
bin/* /usr/local/bin/
RUN
echo
"Setup
MdS
how"
&&
\
RUN
echo
"Setup
mds
how"
&&
\
mdshow setup
&&
\
ln
-s
/opt/mdshow/reveal.js/node_modules/gulp/bin/gulp.js /usr/bin/gulp
&&
\
mkdir
-p
/opt/mdshow/theme
&&
\
...
...
@@ -40,5 +40,6 @@ RUN echo "Setup MdShow" && \
rm
-rf
/root/.npm
&&
\
echo
"Completed"
WORKDIR
/mdshow
ENTRYPOINT
["docker-entrypoint.sh"]
CMD
["/bin/bash"]
This diff is collapsed.
Click to expand it.
bin/docker-entrypoint.sh
+
2
−
1
View file @
27a026ca
#!/bin/sh
#!/bin/
ba
sh
set
-e
set
-u
# first arg is `-f` or `--some-option`
if
[
"
${
1
#-
}
"
!=
"
$1
"
]
;
then
...
...
This diff is collapsed.
Click to expand it.
bin/mdshow
+
3
−
1
View file @
27a026ca
...
...
@@ -7,7 +7,9 @@
SHELL
:=
/bin/bash
MDSHOW_CONFIG
=
/opt/mdshow
CONFIG_PATH
=
${
HOME
}
/.config
MDSHOW_CONFIG
=
$(
CONFIG_PATH
)
/mdshow
SLIDES
=
slides.md
BUILD_DIR
=
.build_
$(
basename
$(
SLIDES
))
PORT
=
3000
...
...
This diff is collapsed.
Click to expand it.
mdshow
+
1
−
1
View file @
27a026ca
...
...
@@ -4,4 +4,4 @@ if [[ -n $MDSHOW_THEME_PATH ]]; then
THEME
=
--volume
=
${
MDSHOW_THEME_PATH
}
:/opt/mdshow/theme/
$(
basename
${
MDSHOW_THEME_PATH
}
)
fi
docker run
--user
=
$(
id
-u
)
--rm
-it
--net
=
host
${
THEME
}
--volume
=
$(
pwd
)
:/mdshow
--workdir
=
/mdshow
registry.lakedrops.com/docker/mdshow mdshow
$@
docker run
--user
=
$(
id
-u
)
--rm
-it
--net
=
host
${
THEME
}
--volume
=
$(
pwd
)
:/mdshow registry.lakedrops.com/docker/mdshow mdshow
CONFIG_PATH
=
/opt
$@
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