Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build for raspberry pi image is failing #1

Closed
khassel opened this issue Apr 19, 2017 · 5 comments
Closed

Build for raspberry pi image is failing #1

khassel opened this issue Apr 19, 2017 · 5 comments
Assignees
Milestone

Comments

@khassel
Copy link
Contributor

khassel commented Apr 19, 2017

Hi,
there are only 2 versions in docker store, latest and alpine. raspberry is missing.
Thanks,
Karsten.

@khassel
Copy link
Contributor Author

khassel commented Apr 20, 2017

O.K., found this a moment ago:
"The raspberry image is currently failing on Docker Hub. I'm on it."
(from MagicMirrorOrg/MagicMirror#856 )

@bastilimbach bastilimbach self-assigned this Apr 20, 2017
@bastilimbach bastilimbach added this to the v1.1.0 milestone Apr 20, 2017
@bastilimbach bastilimbach changed the title image for raspberry missing in docker store Build for raspberry pi image is failing Apr 20, 2017
@khassel
Copy link
Contributor Author

khassel commented Apr 20, 2017

Looked into this, something with syntax of "docker-entrypoint.sh" seems to be wrong. Thats strange, this works with other images.
Substituted for testing purpuses
ENTRYPOINT ["/opt/magic_mirror/docker-entrypoint.sh"]
with
ENTRYPOINT ["node", "serveronly"]
and this works.

@khassel
Copy link
Contributor Author

khassel commented Apr 20, 2017

Yesterday I pushed this to docker: https://store.docker.com/community/images/karsten13/mm_hyp
See Dockerfile below. This works.

FROM hypriot/rpi-node:latest

ENV NODE_ENV production
ENV MM_PORT 8080

RUN apt-get update
RUN apt-get upgrade

needed later in run command:

RUN apt-get -y install dos2unix

not needed:

#RUN apt-get -y install curl wget git build-essential unzip

only for having nano as editor:

RUN apt-get -y install nano

only needed for the module MMM-NetworkScanner:

RUN apt-get -y install arp-scan

getting MagicMirror from github

RUN cd /opt
RUN git clone https://github.com/MichMich/MagicMirror.git /opt/magic_mirror/
WORKDIR /opt/magic_mirror
RUN cd /opt/magic_mirror
RUN git checkout origin/develop

install (without param the mirror remains black):

RUN npm install --unsafe-perm

copy sample to real config:

RUN cp config/config.js.sample config/config.js

create copies for unmount:

COPY /modules unmount_modules
COPY /config unmount_config

RUN ["dos2unix", "docker-entrypoint.sh"]
RUN ["chmod", "+x", "docker-entrypoint.sh"]

EXPOSE $MM_PORT
ENTRYPOINT ["/opt/magic_mirror/docker-entrypoint.sh"]

@bastilimbach
Copy link
Owner

bastilimbach commented Apr 20, 2017

Yeah, it's pretty strange. That's the reason I couldn't get it to work. I don't know where exactly the error is. I'll try the base image hypriot/rpi-node:latest which you used. Will look into this tomorrow.

@bastilimbach
Copy link
Owner

Fixed with the workaround of using travis instead of docker hub to build the arm version. See travis file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants