-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Sebastian Limbach
committed
Jan 31, 2017
1 parent
8010e62
commit 354b745
Showing
6 changed files
with
121 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
# Various Node ignoramuses. | ||
|
||
logs | ||
*.log | ||
npm-debug.log* | ||
pids | ||
*.pid | ||
*.seed | ||
lib-cov | ||
coverage | ||
.grunt | ||
.lock-wscript | ||
build/Release | ||
node_modules | ||
jspm_modules | ||
.npm | ||
.node_repl_history | ||
|
||
# Various Windows ignoramuses. | ||
Thumbs.db | ||
ehthumbs.db | ||
Desktop.ini | ||
$RECYCLE.BIN/ | ||
*.cab | ||
*.msi | ||
*.msm | ||
*.msp | ||
*.lnk | ||
|
||
# Various OSX ignoramuses. | ||
.DS_Store | ||
.AppleDouble | ||
.LSOverride | ||
Icon | ||
._* | ||
.DocumentRevisions-V100 | ||
.fseventsd | ||
.Spotlight-V100 | ||
.TemporaryItems | ||
.Trashes | ||
.VolumeIcon.icns | ||
.AppleDB | ||
.AppleDesktop | ||
Network Trash Folder | ||
Temporary Items | ||
.apdisk | ||
|
||
# Various Linux ignoramuses. | ||
|
||
.fuse_hidden* | ||
.directory | ||
.Trash-* | ||
|
||
# Various Magic Mirror ignoramuses and anti-ignoramuses. | ||
|
||
# Don't ignore the node_helper core module. | ||
!/modules/node_helper | ||
!/modules/node_helper/** | ||
|
||
# Ignore all modules except the default modules. | ||
/modules/** | ||
!/modules/default/** | ||
|
||
# Ignore changes to the custom css files. | ||
/css/custom.css | ||
|
||
# Ignore unnecessary files for docker | ||
CHANGELOG.md | ||
LICENSE.md | ||
README.md | ||
Gruntfile.js | ||
.* |
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,15 @@ | ||
FROM node:latest | ||
|
||
WORKDIR /opt/magic_mirror | ||
COPY . . | ||
COPY /modules unmount_modules | ||
COPY /config unmount_config | ||
|
||
ENV NODE_ENV production | ||
ENV MM_PORT 8080 | ||
|
||
RUN npm install | ||
RUN ["chmod", "+x", "docker-entrypoint.sh"] | ||
|
||
EXPOSE $MM_PORT | ||
ENTRYPOINT ["/opt/magic_mirror/docker-entrypoint.sh"] |
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,11 @@ | ||
#!/bin/bash | ||
|
||
if [ ! -f /opt/magic_mirror/modules ]; then | ||
cp -R /opt/magic_mirror/unmount_modules/. /opt/magic_mirror/modules | ||
fi | ||
|
||
if [ ! -f /opt/magic_mirror/config ]; then | ||
cp -R /opt/magic_mirror/unmount_config/. /opt/magic_mirror/config | ||
fi | ||
|
||
node serveronly |
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