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
/* | |
* Viktor's Roam gallery PoC v0.2 | |
* author: @ViktorTabori | |
* | |
* How to install it: | |
* - go to page [[roam/js]] | |
* - create a node with: {{[[roam/js]]}} | |
* - create a clode block under it, and change its type from clojure to javascript | |
* - allow the running of the javascript on the {{[[roam/js]]}} node | |
* - reload Roam |
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
Copy this to roam/js page, including the "{{[[roam/js]]}}" node: | |
- {{[[roam/js]]}} | |
- ```javascript | |
/* | |
* Roam template PoC by @ViktorTabori | |
* 0.1alpha | |
* | |
* How to install it: | |
* - go to `roam/js` page` |
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
FROM node:6.9.1-alpine | |
MAINTAINER vidhill | |
RUN apk add --no-cache add python build-base # build base includes g++ and gcc and Make | |
COPY service.tgz /service/ | |
RUN cd /service && tar xvf service.tgz && rm service.tgz && cd package | |
RUN cd /service/package && npm install |
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
# Runtime image | |
# Following https://github.com/nodejs/docker-node/blob/master/docs/BestPractices.md | |
FROM node:7.7-alpine | |
# Add tini | |
RUN apk add --no-cache tini | |
ENTRYPOINT ["/sbin/tini", "--"] | |
WORKDIR /usr/src/app/ |