From 9ebee8c03e79eadfca183bfee9e4fe1c4e5b7ab5 Mon Sep 17 00:00:00 2001 From: Sebastian Limbach Date: Sun, 16 Apr 2017 21:17:07 +0200 Subject: [PATCH 1/3] Delete all Docker related files The Docker images are outsourced to https://github.com/bastilimbach/docker-MagicMirror --- .dockerignore | 72 -------------------------------------------- Dockerfile | 27 ----------------- docker-entrypoint.sh | 11 ------- 3 files changed, 110 deletions(-) delete mode 100644 .dockerignore delete mode 100644 Dockerfile delete mode 100644 docker-entrypoint.sh diff --git a/.dockerignore b/.dockerignore deleted file mode 100644 index 3b40663030..0000000000 --- a/.dockerignore +++ /dev/null @@ -1,72 +0,0 @@ -# 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 -.* diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 4ee863fb46..0000000000 --- a/Dockerfile +++ /dev/null @@ -1,27 +0,0 @@ -FROM izone/arm:node - -# Set env variables -ENV NODE_ENV production -ENV MM_PORT 8080 - -WORKDIR /opt/magic_mirror - -# Cache node_modules -COPY package.json /opt/magic_mirror -RUN npm install - -# Copy all needed files -COPY . /opt/magic_mirror - -# Save/Cache config and modules folder for docker-entrypoint -COPY /modules /opt/magic_mirror/unmount_modules -COPY /config /opt/magic_mirror/unmount_config - -# Convert docker-entrypoint.sh to unix format and grant execution privileges -RUN apk update \ - && apk add dos2unix --update-cache --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ --allow-untrusted \ - && dos2unix docker-entrypoint.sh \ - && chmod +x docker-entrypoint.sh - -EXPOSE $MM_PORT -ENTRYPOINT ["/opt/magic_mirror/docker-entrypoint.sh"] diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh deleted file mode 100644 index 3ab9750210..0000000000 --- a/docker-entrypoint.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh - -if [ ! -f /opt/magic_mirror/modules ]; then - cp -Rn /opt/magic_mirror/unmount_modules/. /opt/magic_mirror/modules -fi - -if [ ! -f /opt/magic_mirror/config ]; then - cp -Rn /opt/magic_mirror/unmount_config/. /opt/magic_mirror/config -fi - -node serveronly From ac53d64ffc2c7767087193719df397b576131e5c Mon Sep 17 00:00:00 2001 From: Sebastian Limbach Date: Sun, 16 Apr 2017 21:17:52 +0200 Subject: [PATCH 2/3] Change docker hub url --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 29e5b65f09..c19ee20f18 100644 --- a/README.md +++ b/README.md @@ -59,7 +59,7 @@ docker run -d \ --volume ~/magic_mirror/config:/opt/magic_mirror/config \ --volume ~/magic_mirror/modules:/opt/magic_mirror/modules \ --name magic_mirror \ - michmich/magicmirror + bastilimbach/docker-magicmirror ``` | **Volumes** | **Description** | @@ -75,6 +75,8 @@ var config = { }; ``` +If you want to run the server on a raspberry pi, use the `raspberry` tag. (bastilimbach/docker-magicmirror:raspberry) + #### Manual 1. Download and install the latest Node.js version. From 058b4bbe6cc3c037b02ced87b74996875b0dc312 Mon Sep 17 00:00:00 2001 From: Sebastian Limbach Date: Sun, 16 Apr 2017 22:48:05 +0200 Subject: [PATCH 3/3] Add changes to changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 675db64592..29dd6b5034 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ This project adheres to [Semantic Versioning](http://semver.org/). ## [2.1.2] - Unreleased ### Changed +- Revert Docker related changes in favor of [docker-MagicMirror](https://github.com/bastilimbach/docker-MagicMirror). All Docker images are outsourced. ([#856](https://github.com/MichMich/MagicMirror/pull/856)) - Change Docker base image (Debian + Node) to an arm based distro (AlpineARM + Node) ([#846](https://github.com/MichMich/MagicMirror/pull/846)) - Fix the dockerfile to have it running from the first time.