This repository has been archived by the owner on May 15, 2021. It is now read-only.
forked from hakimel/reveal.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from HackerHappyHour/publish-docker
Publish docker
- Loading branch information
Showing
9 changed files
with
145 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,12 @@ | ||
.PHONY: build markdown | ||
IMAGE_NAME=hackerhappyhour/reveal | ||
|
||
.PHONY: build build-dev build-markdown | ||
|
||
build: | ||
docker build -f docker/Dockerfile -t hackerhappyhour/reveal:latest ./docker | ||
docker build -f docker/Dockerfile -t ${IMAGE_NAME}:latest ./docker | ||
|
||
build-dev: | ||
docker build -f docker/dev/Dockerfile -t ${IMAGE_NAME}:dev ./docker | ||
|
||
markdown: | ||
docker build -f docker/markdown/Dockerfile -t hackerhappyhour/reveal:markdown ./docker | ||
build-markdown: | ||
docker build -f docker/markdown/Dockerfile -t ${IMAGE_NAME}:markdown ./docker |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
FROM node:10 | ||
|
||
LABEL source="https://github.com/HackerHappyHour/reveal" | ||
|
||
RUN cd /tmp \ | ||
&& npm install @h3/reveal \ | ||
&& mv node_modules/@h3/reveal / \ | ||
&& cd /reveal \ | ||
&& npm install \ | ||
&& npm cache clean --force | ||
|
||
WORKDIR /reveal | ||
|
||
EXPOSE 8000 35729 | ||
|
||
CMD ["npm", "start"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Example docker-compose.yml file implementation | ||
version: '3' | ||
services: | ||
reveal: | ||
image: hackerhappyhour/reveal:dev | ||
ports: | ||
- "8000:8000" | ||
- "35729:35729" # live-reload server | ||
volumes: | ||
- ./index.html:/reveal/index.html | ||
# - ./css/main.css:/reveal/css/main.css | ||
# - ./images:/reveal/images |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> | ||
|
||
<title>reveal.js</title> | ||
|
||
<link rel="stylesheet" href="css/reveal.css"> | ||
<link rel="stylesheet" href="css/theme/black.css"> | ||
|
||
<!-- Theme used for syntax highlighting of code --> | ||
<link rel="stylesheet" href="lib/css/zenburn.css"> | ||
|
||
<!-- Printing and PDF exports --> | ||
<script> | ||
var link = document.createElement( 'link' ); | ||
link.rel = 'stylesheet'; | ||
link.type = 'text/css'; | ||
link.href = window.location.search.match( /print-pdf/gi ) ? 'css/print/pdf.css' : 'css/print/paper.css'; | ||
document.getElementsByTagName( 'head' )[0].appendChild( link ); | ||
</script> | ||
</head> | ||
<body> | ||
<div class="reveal"> | ||
<div class="slides"> | ||
<section>Slide 1</section> | ||
<section>Slide 2</section> | ||
</div> | ||
</div> | ||
|
||
<script src="lib/js/head.min.js"></script> | ||
<script src="js/reveal.js"></script> | ||
|
||
<script> | ||
// More info about config & dependencies: | ||
// - https://github.com/hakimel/reveal.js#configuration | ||
// - https://github.com/hakimel/reveal.js#dependencies | ||
Reveal.initialize({ | ||
dependencies: [ | ||
{ src: 'plugin/markdown/marked.js' }, | ||
{ src: 'plugin/markdown/markdown.js' }, | ||
{ src: 'plugin/notes/notes.js', async: true }, | ||
{ src: 'plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } } | ||
] | ||
}); | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
version: "3" | ||
services: | ||
revealjs: | ||
image: reveal.js | ||
reveal: | ||
image: reveal | ||
build: . | ||
ports: | ||
- "8080:8080" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters